修改效果
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
/* eslint-disable */
|
||||
// @ts-ignore
|
||||
import request from '@/http/vue-query';
|
||||
import type { CustomRequestOptions } from '@/http/types';
|
||||
|
||||
export interface EnergyMealListQueryBo {
|
||||
merchantId?: number | string;
|
||||
mealName?: string;
|
||||
merchantName?: string;
|
||||
}
|
||||
|
||||
export interface EnergyMealItemVo {
|
||||
id?: number | string;
|
||||
energyMealId?: number | string;
|
||||
dishId?: number | string;
|
||||
quantity?: number;
|
||||
sort?: number;
|
||||
delFlag?: number;
|
||||
merchantDishVo?: Record<string, any>;
|
||||
}
|
||||
|
||||
export interface EnergyMealVo {
|
||||
id?: number | string;
|
||||
merchantId?: number | string;
|
||||
mealName?: string;
|
||||
coverImage?: string;
|
||||
sort?: number;
|
||||
delFlag?: number;
|
||||
remark?: string;
|
||||
merchant?: {
|
||||
id?: number | string;
|
||||
merchantName?: string;
|
||||
logo?: string;
|
||||
merchantAddress?: string;
|
||||
};
|
||||
itemList?: EnergyMealItemVo[];
|
||||
}
|
||||
|
||||
export interface EnergyMealAddCartBo {
|
||||
energyMealId: number | string;
|
||||
count?: number;
|
||||
}
|
||||
|
||||
/** 能量餐分页列表 POST /app/energyMeal/list */
|
||||
export async function appEnergyMealListPost({
|
||||
params,
|
||||
body,
|
||||
options,
|
||||
}: {
|
||||
params: { pageNum: number; pageSize: number };
|
||||
body?: EnergyMealListQueryBo;
|
||||
options?: CustomRequestOptions;
|
||||
}) {
|
||||
return request<{ rows?: EnergyMealVo[]; total?: number }>(
|
||||
'/app/energyMeal/list',
|
||||
{
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
data: body ?? {},
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
/** 能量餐一键加入购物车 POST /app/energyMeal/addCart */
|
||||
export async function appEnergyMealAddCartPost({
|
||||
body,
|
||||
options,
|
||||
}: {
|
||||
body: EnergyMealAddCartBo;
|
||||
options?: CustomRequestOptions;
|
||||
}) {
|
||||
return request<{ data?: number[] }>('/app/energyMeal/addCart', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
@@ -44,3 +44,4 @@ export * from './automaticCookingMachine';
|
||||
export * from './userCoupon';
|
||||
export * from './marketingActivity';
|
||||
export * from './marketActivity';
|
||||
export * from './energyMeal';
|
||||
|
||||
Reference in New Issue
Block a user