mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-12-24 21:40:22 +08:00
11 lines
262 B
TypeScript
11 lines
262 B
TypeScript
export function adapterOfDataWithAdapter(res: Service.RequestResult<ApiDemo.DataWithAdapter>): Demo.DataWithAdapter {
|
|
const { dataId, dataName } = res.data!;
|
|
|
|
const result: Demo.DataWithAdapter = {
|
|
id: dataId,
|
|
name: dataName
|
|
};
|
|
|
|
return result;
|
|
}
|