Merge branch 'master' of https://e.coding.net/g-cphe0354/cashier/cashier-web into dwb
This commit is contained in:
@@ -18,7 +18,7 @@ const MenuApi = {
|
||||
});
|
||||
},
|
||||
get(id: string) {
|
||||
return request<any, MenuVO>({
|
||||
return request<any, SysMenu>({
|
||||
url: `${baseURL}/detail`,
|
||||
method: "get",
|
||||
params: { id }
|
||||
@@ -103,101 +103,59 @@ export interface addRequest {
|
||||
/**
|
||||
* 是否选中父级菜单
|
||||
*/
|
||||
activeMenu?: string;
|
||||
activeMenu?: null | string;
|
||||
/**
|
||||
* 是否缓存
|
||||
*/
|
||||
cache?: number;
|
||||
cache: number | string;
|
||||
/**
|
||||
* 组件
|
||||
*/
|
||||
component?: string;
|
||||
component: number | string;
|
||||
/**
|
||||
* 是否隐藏
|
||||
*/
|
||||
hidden?: number;
|
||||
hidden: number | string;
|
||||
/**
|
||||
* 图标
|
||||
*/
|
||||
icon?: string;
|
||||
icon: string;
|
||||
/**
|
||||
* 是否外链
|
||||
*/
|
||||
iFrame?: number;
|
||||
iFrame: number | string;
|
||||
/**
|
||||
* 菜单排序
|
||||
*/
|
||||
menuSort?: number;
|
||||
menuSort: number;
|
||||
/**
|
||||
* 组件名称
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* 链接地址
|
||||
*/
|
||||
path?: string;
|
||||
path: number | string;
|
||||
/**
|
||||
* 权限表示
|
||||
*/
|
||||
permission?: string;
|
||||
permission?: null | string;
|
||||
/**
|
||||
* 上级菜单,不传递则为顶级菜单
|
||||
*/
|
||||
pid?: number;
|
||||
title: string;
|
||||
pid?: number | string;
|
||||
title: string | string;
|
||||
/**
|
||||
* 菜单类型 0 菜单 1按钮 2接口
|
||||
*/
|
||||
type: number | null;
|
||||
type: number | string;
|
||||
[property: string]: any;
|
||||
}
|
||||
/**
|
||||
* MenuEditDTO
|
||||
*/
|
||||
export interface editRequest {
|
||||
/**
|
||||
* 菜单类型 0 菜单 1按钮 2接口
|
||||
*/
|
||||
type: number;
|
||||
/**
|
||||
* 是否选中父级菜单
|
||||
*/
|
||||
activeMenu?: string;
|
||||
/**
|
||||
* 是否缓存
|
||||
*/
|
||||
cache?: number;
|
||||
/**
|
||||
* 组件
|
||||
*/
|
||||
component?: string;
|
||||
/**
|
||||
* 是否隐藏
|
||||
*/
|
||||
hidden?: number;
|
||||
/**
|
||||
* 图标
|
||||
*/
|
||||
icon?: string;
|
||||
export interface editRequest extends addRequest {
|
||||
id: number | string;
|
||||
/**
|
||||
* 是否外链
|
||||
*/
|
||||
iFrame?: number;
|
||||
/**
|
||||
* 菜单排序
|
||||
*/
|
||||
menuSort?: number;
|
||||
/**
|
||||
* 链接地址
|
||||
*/
|
||||
path?: string;
|
||||
/**
|
||||
* 权限表示
|
||||
*/
|
||||
permission?: string;
|
||||
/**
|
||||
* 上级菜单,不传递则为顶级菜单
|
||||
*/
|
||||
pid: number | string | null;
|
||||
title: string;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -305,4 +263,94 @@ export interface MenuVO {
|
||||
*/
|
||||
updateTime?: string;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 菜单结构
|
||||
*
|
||||
* CzgResult«SysMenu»
|
||||
*/
|
||||
|
||||
export interface SysMenu {
|
||||
/**
|
||||
* 是否选中父级菜单
|
||||
*/
|
||||
activeMenu?: null | string;
|
||||
/**
|
||||
* 缓存
|
||||
*/
|
||||
cache?: boolean | null;
|
||||
/**
|
||||
* 组件
|
||||
*/
|
||||
component?: null | string;
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
createBy?: null | string;
|
||||
/**
|
||||
* 创建日期
|
||||
*/
|
||||
createTime?: null | string;
|
||||
/**
|
||||
* 隐藏
|
||||
*/
|
||||
hidden?: boolean | null;
|
||||
/**
|
||||
* 图标
|
||||
*/
|
||||
icon?: null | string;
|
||||
/**
|
||||
* 是否外链
|
||||
*/
|
||||
iFrame?: boolean | null;
|
||||
/**
|
||||
* 商户使用 0:否;1:是;
|
||||
*/
|
||||
isShop?: number | null;
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
menuId?: number | null;
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
menuSort?: number | null;
|
||||
/**
|
||||
* 组件名称
|
||||
*/
|
||||
name?: null | string;
|
||||
/**
|
||||
* 链接地址
|
||||
*/
|
||||
path?: null | string;
|
||||
/**
|
||||
* 权限
|
||||
*/
|
||||
permission?: null | string;
|
||||
/**
|
||||
* 上级菜单ID
|
||||
*/
|
||||
pid?: number | null;
|
||||
/**
|
||||
* 子菜单数目
|
||||
*/
|
||||
subCount?: number | null;
|
||||
/**
|
||||
* 菜单标题
|
||||
*/
|
||||
title?: null | string;
|
||||
/**
|
||||
* 菜单类型 0 菜单 1按钮 3接口
|
||||
*/
|
||||
type?: number | null;
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
updateBy?: null | string;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
updateTime?: null | string;
|
||||
[property: string]: any;
|
||||
}
|
||||
@@ -24,9 +24,23 @@ const ShopApi = {
|
||||
data,
|
||||
});
|
||||
},
|
||||
get(params: getRequest) {
|
||||
return request<any, ShopInfo>({
|
||||
url: `${baseURL}/detail`,
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
export default ShopApi;
|
||||
export interface getRequest {
|
||||
/**
|
||||
* 店铺id,可不传,不传递则为获取当前用户店铺
|
||||
*/
|
||||
id?: string | number;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* ShopInfoEditDTO
|
||||
@@ -58,3 +72,202 @@ export interface PageQuery {
|
||||
status?: number;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* ShopInfo
|
||||
*/
|
||||
export interface ShopInfo {
|
||||
/**
|
||||
* 详细地址
|
||||
*/
|
||||
address?: null | string;
|
||||
/**
|
||||
* 项目分类
|
||||
*/
|
||||
article?: null | string;
|
||||
/**
|
||||
* 背景图
|
||||
*/
|
||||
backImg?: null | string;
|
||||
/**
|
||||
* 开票系统账号
|
||||
*/
|
||||
bindAccount?: null | string;
|
||||
/**
|
||||
* 台桌预订短信
|
||||
*/
|
||||
bookingSms?: null | string;
|
||||
/**
|
||||
* 营业时间(周结束)
|
||||
*/
|
||||
businessEndDay?: null | string;
|
||||
/**
|
||||
* 营业时间(周开始)
|
||||
*/
|
||||
businessStartDay?: null | string;
|
||||
/**
|
||||
* 营业时间
|
||||
*/
|
||||
businessTime?: null | string;
|
||||
/**
|
||||
* 连锁店扩展店名
|
||||
*/
|
||||
chainName?: null | string;
|
||||
/**
|
||||
* 市
|
||||
*/
|
||||
cities?: null | string;
|
||||
/**
|
||||
* 积分群体 all-所有 vip-仅针对会员
|
||||
*/
|
||||
consumeColony?: null | string;
|
||||
/**
|
||||
* 联系人姓名
|
||||
*/
|
||||
contactName?: null | string;
|
||||
/**
|
||||
* 封面图
|
||||
*/
|
||||
coverImg?: null | string;
|
||||
createTime?: null | string;
|
||||
/**
|
||||
* 店铺简介
|
||||
*/
|
||||
detail?: null | string;
|
||||
/**
|
||||
* 区/县
|
||||
*/
|
||||
districts?: null | string;
|
||||
/**
|
||||
* 就餐模式 堂食 dine-in 外带 take-out
|
||||
*/
|
||||
eatModel?: null | string;
|
||||
/**
|
||||
* 到期时间
|
||||
*/
|
||||
expireTime?: null | string;
|
||||
/**
|
||||
* 门头照
|
||||
*/
|
||||
frontImg?: null | string;
|
||||
/**
|
||||
* 使用系统用户 sys_user id
|
||||
*/
|
||||
id?: number | null;
|
||||
/**
|
||||
* 是否开启会员余额支付
|
||||
*/
|
||||
isAccountPay?: number | null;
|
||||
/**
|
||||
* 是否允许会员自定义金额 1 允许 0 不允许
|
||||
*/
|
||||
isCustomAmount?: number | null;
|
||||
/**
|
||||
* 是否开启会员充值密码 1 启用 0 禁用
|
||||
*/
|
||||
isMemberInPwd?: number | null;
|
||||
/**
|
||||
* 是否启用会员价 0否1是
|
||||
*/
|
||||
isMemberPrice?: number | null;
|
||||
/**
|
||||
* 是否开启会员退款密码 1 启用 0 禁用
|
||||
*/
|
||||
isMemberReturnPwd?: number | null;
|
||||
/**
|
||||
* 是否开启退款密码 1 启用 0 禁用
|
||||
*/
|
||||
isReturnPwd?: number | null;
|
||||
/**
|
||||
* 是否免除桌位费 0否1是
|
||||
*/
|
||||
isTableFee?: number | null;
|
||||
/**
|
||||
* 经纬度
|
||||
*/
|
||||
lat?: null | string;
|
||||
/**
|
||||
* 经纬度
|
||||
*/
|
||||
lng?: null | string;
|
||||
/**
|
||||
* 店铺logo
|
||||
*/
|
||||
logo?: null | string;
|
||||
/**
|
||||
* 主店id
|
||||
*/
|
||||
mainId?: number | null;
|
||||
/**
|
||||
* 0停业 1,正常营业 2,网上售卖
|
||||
*/
|
||||
onSale?: number | null;
|
||||
/**
|
||||
* 操作密码
|
||||
*/
|
||||
operationPwd?: null | string;
|
||||
/**
|
||||
* 店铺收款码
|
||||
*/
|
||||
paymentQrcode?: null | string;
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
phone?: null | string;
|
||||
/**
|
||||
* trial试用版,release正式
|
||||
*/
|
||||
profiles?: null | string;
|
||||
/**
|
||||
* 省
|
||||
*/
|
||||
provinces?: null | string;
|
||||
registerType?: null | string;
|
||||
/**
|
||||
* 数电发票类型
|
||||
*/
|
||||
sdType?: null | string;
|
||||
/**
|
||||
* 店铺名称
|
||||
*/
|
||||
shopName?: null | string;
|
||||
/**
|
||||
* 商家二维码
|
||||
*/
|
||||
shopQrcode?: null | string;
|
||||
/**
|
||||
* 店铺类型 单店--only 连锁店--chain--加盟店join (对应原来 type)
|
||||
*/
|
||||
shopType?: null | string;
|
||||
/**
|
||||
* 小程序码(零点八零首页)
|
||||
*/
|
||||
smallQrcode?: null | string;
|
||||
/**
|
||||
* -1 平台禁用 0-过期,1正式营业,
|
||||
*/
|
||||
status?: number | null;
|
||||
/**
|
||||
* 店铺口号
|
||||
*/
|
||||
subTitle?: null | string;
|
||||
/**
|
||||
* 桌位费
|
||||
*/
|
||||
tableFee?: number | null;
|
||||
/**
|
||||
* 商家标签
|
||||
*/
|
||||
tag?: null | string;
|
||||
/**
|
||||
* 税率
|
||||
*/
|
||||
taxAmount?: null | string;
|
||||
/**
|
||||
* 管理 0否 1是, 1 为直接管理 可切换店铺 0 不可以切换
|
||||
*/
|
||||
tubeType?: number | null;
|
||||
updateTime?: null | string;
|
||||
[property: string]: any;
|
||||
}
|
||||
Reference in New Issue
Block a user