代客下单修改,增加线上店铺装修页面
This commit is contained in:
86
src/api/account/shopExtend.ts
Normal file
86
src/api/account/shopExtend.ts
Normal file
@@ -0,0 +1,86 @@
|
||||
import request from "@/utils/request";
|
||||
import { Account_BaseUrl } from "@/api/config";
|
||||
const baseURL = Account_BaseUrl + "/admin/shopExtend";
|
||||
const API = {
|
||||
get(data: getRequest) {
|
||||
return request<any, ShopExtend>({
|
||||
url: `${baseURL}`,
|
||||
method: "get",
|
||||
params: data
|
||||
});
|
||||
},
|
||||
edit(data: editRequest) {
|
||||
return request({
|
||||
url: `${baseURL}`,
|
||||
method: "put",
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
}
|
||||
export default API;
|
||||
|
||||
export interface getRequest {
|
||||
/**
|
||||
* key名称
|
||||
*/
|
||||
autoKey?: string;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* ShopExtendDTO
|
||||
*/
|
||||
export interface editRequest {
|
||||
/**
|
||||
* 自增id
|
||||
*/
|
||||
autokey: null | string;
|
||||
/**
|
||||
* 值
|
||||
*/
|
||||
value: null | string;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 店铺扩展信息 实体类。
|
||||
*
|
||||
* ShopExtend
|
||||
*/
|
||||
export interface ShopExtend {
|
||||
/**
|
||||
* 自定义key
|
||||
*/
|
||||
autoKey?: null | string;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime?: null | string;
|
||||
detail?: null | string;
|
||||
/**
|
||||
* 自增id
|
||||
*/
|
||||
id?: number | null;
|
||||
/**
|
||||
* 描述
|
||||
*/
|
||||
name?: null | string;
|
||||
/**
|
||||
* 商户Id
|
||||
*/
|
||||
shopId?: number | null;
|
||||
/**
|
||||
* img:图片;text:文本;
|
||||
*/
|
||||
type?: null | string;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
updateTime?: null | string;
|
||||
/**
|
||||
* 值
|
||||
*/
|
||||
value?: null | string;
|
||||
[property: string]: any;
|
||||
}
|
||||
Reference in New Issue
Block a user