Files
cashier-web/src/api/account/shopExtend.ts

86 lines
1.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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;
}