- 新增 AppLinkSelectDialog 组件,用于选择 APP 链接- 新增 NavigationBarCellProperty组件,用于导航栏单元格属性设置 - 新增 CombinationShowcase 和 CombinationTableSelect 组件,用于拼团活动展示和选择- 优化优惠券相关组件,导出所有优惠券相关组件 - 新增 ComponentContainer 组件,用于包裹和样式化 DIY 组件
62 lines
1.6 KiB
TypeScript
62 lines
1.6 KiB
TypeScript
import type { PageParam, PageResult } from '@vben/request';
|
|
|
|
import { requestClient } from '#/api/request';
|
|
|
|
export namespace MallDiyPageApi {
|
|
/** 装修页面 */
|
|
export interface DiyPage {
|
|
/** 页面编号 */
|
|
id?: number;
|
|
/** 模板编号 */
|
|
templateId?: number;
|
|
/** 页面名称 */
|
|
name: string;
|
|
/** 备注 */
|
|
remark: string;
|
|
/** 预览图片地址数组 */
|
|
previewPicUrls: string[];
|
|
/** 页面属性 */
|
|
property: string;
|
|
}
|
|
}
|
|
|
|
/** 查询装修页面列表 */
|
|
export function getDiyPagePage(params: PageParam) {
|
|
return requestClient.get<PageResult<MallDiyPageApi.DiyPage>>(
|
|
'/promotion/diy-page/page',
|
|
{ params },
|
|
);
|
|
}
|
|
|
|
/** 查询装修页面详情 */
|
|
export function getDiyPage(id: number) {
|
|
return requestClient.get<MallDiyPageApi.DiyPage>(
|
|
`/promotion/diy-page/get?id=${id}`,
|
|
);
|
|
}
|
|
|
|
/** 新增装修页面 */
|
|
export function createDiyPage(data: MallDiyPageApi.DiyPage) {
|
|
return requestClient.post('/promotion/diy-page/create', data);
|
|
}
|
|
|
|
/** 修改装修页面 */
|
|
export function updateDiyPage(data: MallDiyPageApi.DiyPage) {
|
|
return requestClient.put('/promotion/diy-page/update', data);
|
|
}
|
|
|
|
/** 删除装修页面 */
|
|
export function deleteDiyPage(id: number) {
|
|
return requestClient.delete(`/promotion/diy-page/delete?id=${id}`);
|
|
}
|
|
|
|
/** 获得装修页面属性 */
|
|
export function getDiyPageProperty(id: number) {
|
|
return requestClient.get(`/promotion/diy-page/get-property?id=${id}`);
|
|
}
|
|
|
|
/** 更新装修页面属性 */
|
|
export function updateDiyPageProperty(data: MallDiyPageApi.DiyPage) {
|
|
return requestClient.put('/promotion/diy-page/update-property', data);
|
|
}
|