优化商品和商品类别管理,添加许愿功能及状态控制
This commit is contained in:
@@ -13,7 +13,7 @@ export interface ProductVO {
|
||||
* 商品名称
|
||||
*/
|
||||
productName: string;
|
||||
|
||||
status: string | number;
|
||||
/**
|
||||
* 商品图片
|
||||
*/
|
||||
@@ -57,7 +57,6 @@ export interface ProductVO {
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ProductForm extends BaseEntity {
|
||||
@@ -65,7 +64,7 @@ export interface ProductForm extends BaseEntity {
|
||||
* ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
status?: string | number;
|
||||
/**
|
||||
* 商品类别id
|
||||
*/
|
||||
@@ -94,7 +93,7 @@ export interface ProductForm extends BaseEntity {
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sortOrder?: number;
|
||||
sortNum?: number;
|
||||
|
||||
/**
|
||||
* 商品状态
|
||||
@@ -105,16 +104,14 @@ export interface ProductForm extends BaseEntity {
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ProductQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 商品类别id
|
||||
*/
|
||||
categoryId?: string | number;
|
||||
|
||||
status?: string | number;
|
||||
/**
|
||||
* 商品名称
|
||||
*/
|
||||
@@ -138,18 +135,15 @@ export interface ProductQuery extends PageQuery {
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sortOrder?: number;
|
||||
sortNum?: number;
|
||||
|
||||
/**
|
||||
* 商品状态
|
||||
*/
|
||||
productStatus?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -61,3 +61,15 @@ export const delProductCategory = (id: string | number | Array<string | number>)
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 获取许愿列表
|
||||
* @param query
|
||||
* @returns
|
||||
*/
|
||||
export const userWishList = (query: any) => {
|
||||
return request({
|
||||
url: '/manage/userWish/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
@@ -3,7 +3,7 @@ export interface ProductCategoryVO {
|
||||
* 唯一标识ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
wishCount?: number | string;
|
||||
/**
|
||||
* 类别
|
||||
*/
|
||||
@@ -28,7 +28,6 @@ export interface ProductCategoryVO {
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ProductCategoryForm extends BaseEntity {
|
||||
@@ -41,7 +40,8 @@ export interface ProductCategoryForm extends BaseEntity {
|
||||
* 类别
|
||||
*/
|
||||
category?: string;
|
||||
|
||||
sortNum?: number;
|
||||
image?: any;
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
@@ -51,11 +51,9 @@ export interface ProductCategoryForm extends BaseEntity {
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ProductCategoryQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 类别
|
||||
*/
|
||||
@@ -64,13 +62,10 @@ export interface ProductCategoryQuery extends PageQuery {
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
firstLevelCategoryOrder?: number;
|
||||
sortNum?: number | string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user