| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875 |
- /**
- * Namespace Api
- *
- * All backend api type
- */
- declare namespace Api {
- namespace Common {
- /** common params of paginating */
- interface PaginatingCommonParams {
- /** current page number */
- current: number;
- /** page size */
- size: number;
- /** total count */
- total: number;
- }
- /** common params of paginating query list data */
- interface PaginatingQueryRecord<T = any> extends PaginatingCommonParams {
- records: T[];
- }
- /** common search params of table */
- type CommonSearchParams = Pick<Common.PaginatingCommonParams, 'current' | 'size'>;
- /**
- * enable status
- *
- * - "1": enabled
- * - "0": disabled
- */
- type EnableStatus = '0' | '1';
- /** common record */
- type CommonRecord<T = any> = {
- /** record id */
- id: number;
- /** record creator */
- createBy: string;
- /** record create time */
- createTime: string;
- /** record updater */
- updateBy: string;
- /** record update time */
- updateTime: string;
- /** record status */
- status: EnableStatus | null;
- } & T;
- /**
- * 通用状态
- */
- type commonStatus = 0 | 1;
- }
- /**
- * namespace Auth
- *
- * backend api module: "auth"
- */
- namespace Auth {
- interface LoginToken {
- token: string;
- refreshToken: string;
- }
- interface UserInfo {
- userId: string;
- username: string;
- roles: string[];
- buttons: string[];
- email: string;
- mobile: string;
- }
- interface UserPassWord {
- password: string;
- newPassword: string;
- }
- }
- /**
- * namespace Route
- *
- * backend api module: "route"
- */
- namespace Route {
- // type ElegantConstRoute = import('@elegant-router/types').ElegantConstRoute;
- interface MenuRoute extends ElegantConstRoute {
- id: string;
- }
- interface UserRoute {
- [x: string]: any;
- routes: MenuRoute[];
- home: import('@elegant-router/types').LastLevelRouteKey;
- }
- }
- /**
- * 商品管理模块
- */
- namespace goods {
- interface ShopCategory {
- children?: ShopCategory[];
- /**
- * 编码
- */
- code?: string;
- /**
- * 前台类目模板id(一级时有)
- */
- frontCategoryId?: number;
- /**
- * 主键
- */
- id?: number;
- /**
- * 是否删除(0 正常 1 已被删除)
- */
- isDelete?: number;
- /**
- * 是否叶子(1-是,2-不是)
- */
- isLeaves?: number;
- /**
- * 类目等级
- */
- level?: number;
- /**
- * 类目名称
- */
- name?: string;
- /**
- * 序号
- */
- num?: number;
- /**
- * 操作人
- */
- operateUser?: string;
- /**
- * 父级分类编码
- */
- parentCode?: string;
- /**
- * 父级分类名称
- */
- parentName?: string;
- /**
- * 门店ID
- */
- shopId?: number;
- [property: string]: any;
- }
- interface tag {
- /**
- * 创建日期
- */
- creationDate?: string;
- /**
- * 主键
- */
- id?: number;
- /**
- * 是否删除(0-未删除,1-已删除)
- */
- isDelete?: number;
- /**
- * 标签名称
- */
- name?: string;
- /**
- * 标签类型
- */
- type?: number;
- [property: string]: any;
- }
- interface ChannelProd {
- /**
- * 渠道ID
- */
- channelId?: number;
- /**
- * 渠道对应商品售价
- */
- channelProdPrice?: number;
- /**
- * 出货价
- */
- deliveryPrice?: number;
- /**
- * 海博商品ID
- */
- hbSkuId?: string;
- /**
- * 主键
- */
- id?: number;
- /**
- * 删除状态(0-正常,1-删除)
- */
- isDelete?: number;
- /**
- * 进货价
- */
- purchasePrice?: number;
- /**
- * 记录时间
- */
- recTime?: string;
- /**
- * 门店ID
- */
- shopId?: number;
- /**
- * 门店名称
- */
- shopName?: string;
- /**
- * 单品ID
- */
- skuId?: number;
- /**
- * 修改时间
- */
- updateTime?: string;
- /**
- * 渠道名称 */
- channelName?: string;
- [property: string]: any;
- }
- interface Sku {
- /**
- * 实际库存
- */
- actualStocks?: number;
- /**
- * 单品编码(海博)
- */
- hbSkuId?: number;
- /**
- * 商品编码(海博)
- */
- hbSpuId?: number;
- /**
- * 0 正常 1 已被删除
- */
- isDelete?: number;
- /**
- * 商品条形码
- */
- modelId?: string;
- /**
- * 原价
- */
- oriPrice?: number;
- /**
- * 商家编码
- */
- partyCode?: string;
- /**
- * sku图片
- */
- pic: string;
- /**
- * 价格
- */
- price?: number;
- /**
- * 商品ID
- */
- prodId?: number;
- /**
- * 商品名称
- */
- prodName?: string;
- /**
- * 销售属性组合字符串,格式是p1:v1;p2:v2
- */
- properties?: string;
- /**
- * 记录时间
- */
- recTime?: string;
- skuCode?: string;
- /**
- * 单品ID
- */
- skuId?: number;
- /**
- * sku名称
- */
- skuName?: string;
- /**
- * 积分价格
- */
- skuScore?: number;
- /**
- * 状态:0禁用 1 启用
- */
- status?: number;
- /**
- * 库存
- */
- stocks?: number;
- /**
- * 修改时间
- */
- updateTime?: string;
- version?: number;
- /**
- * 体积
- */
- volume?: number;
- /**
- * 重量
- */
- weight?: number;
- weightUnit?: string;
- [property: string]: any;
- }
- interface ShopSku {
- /**
- * 渠道商品
- */
- channelProdList?: ChannelProd[];
- /**
- * 门店商品表ID
- */
- id?: number;
- /**
- * 0 正常 1 已被删除
- */
- isDelete?: number;
- /**
- * 记录时间
- */
- recTime?: string;
- /**
- * 门店ID
- */
- shopId?: number;
- /**
- * 商品对应门店价格
- */
- shopSkuPrice?: number;
- /**
- * 商品对应门店库存
- */
- shopSkuStocks?: number;
- /**
- * 单品ID
- */
- skuId?: number;
- /**
- * 商品详细
- */
- sku: Sku;
- /**
- * 修改时间
- */
- updateTime?: string;
- [property: string]: any;
- }
- interface Channel {
- /**
- * 渠道名称
- */
- channelName?: string;
- /**
- * 主键
- */
- id?: number;
- /**
- * 渠道类型(1-企业用户,2-B端用户,3-C端用户)
- */
- type?: string;
- [property: string]: any;
- }
- }
- /**
- * 门店管理模块
- */
- namespace Store {
- interface ShopDetail {
- /**
- * 店铺所在区域(描述)
- */
- area?: string;
- /**
- * 店铺所在区域Id
- */
- areaId?: number;
- /**
- * 营业执照
- */
- businessLicense?: string;
- /**
- * 物品类型
- */
- category?: string;
- /**
- * 店铺所在城市(描述)
- */
- city?: string;
- /**
- * 店铺所在城市Id
- */
- cityId?: number;
- /**
- * 创建时间
- */
- createTime?: string;
- /**
- * 海博门店ID
- */
- hbStationId?: string;
- /**
- * 海博门店编码
- */
- hbStationNo?: string;
- /**
- * 身份证正面
- */
- identityCardFront?: string;
- /**
- * 身份证反面
- */
- identityCardLater?: string;
- /**
- * 店铺简介(可修改)
- */
- intro?: string;
- /**
- * 分销设置(0关闭 1开启)
- */
- isDistribution?: number;
- /**
- * 坐标类型 1 高德|腾讯 2 百度
- */
- mapType?: string;
- /**
- * 店铺绑定的手机(登录账号:唯一)
- */
- mobile?: string;
- /**
- * ERP门店编码
- */
- outStationNo?: string;
- /**
- * 登录密码
- */
- password?: string;
- /**
- * 店铺所在省份(描述)
- */
- province?: string;
- /**
- * 店铺所在省份Id
- */
- provinceId?: number;
- /**
- * 店铺详细地址
- */
- shopAddress?: string;
- /**
- * 配送平台店铺编码
- */
- shopCode?: string;
- /**
- * 店铺id
- */
- shopId?: number;
- /**
- * 店铺所在纬度(可修改)
- */
- shopLat?: string;
- /**
- * 店铺所在经度(可修改)
- */
- shopLng?: string;
- /**
- * 店铺logo(可修改)
- */
- shopLogo?: string;
- /**
- * 店铺名称(数字、中文,英文(可混合,不可有特殊字符),可修改)、不唯一
- */
- shopName?: string;
- /**
- * 店长
- */
- shopOwner?: string;
- /**
- * 店铺状态(-1:未开通 0: 停业中 1:营业中),可修改
- */
- shopStatus?: Api.Common.commonStatus;
- /**
- * 是否同步到配送平台
- */
- sync?: boolean;
- /**
- * 店铺联系电话
- */
- tel?: string;
- /**
- * 第三方id
- */
- thirdPartyCode?: string;
- /**
- * 更新时间
- */
- updateTime?: string;
- /**
- * 店长用户id
- */
- userId?: string;
- /**
- * 经营状态(0:停业,1正常)
- */
- runStatus?: Api.Common.commonStatus;
- /**
- * 营业状态(0:营业,1:打烊)
- */
- businessTime?: { startTime: string; endTime: string }[];
- [property: string]: any;
- }
- }
- /**
- * 政企管理模块
- */
- namespace government {
- /**
- * 积分充值实体类
- *
- * PointsRecharge
- */
- interface PointsRecharge {
- /**
- * 渠道(企业ID)
- */
- channelId?: number;
- /**
- * 渠道(企业)名称
- */
- channelName?: string;
- /**
- * 创建者
- */
- createBy?: string;
- /**
- * 创建时间
- */
- createTime?: string;
- /**
- * 过期日期
- */
- expiryDate?: string;
- /**
- * 主键
- */
- id?: number;
- /**
- * 充值积分
- */
- points?: number;
- /**
- * 充值单号
- */
- rechargeNumber?: string;
- /**
- * 积分状态(1-未过期,2-过期)
- */
- rechargeStatus?: number;
- /**
- * 备注
- */
- remark?: string;
- /**
- * 充值类型
- */
- type?: number;
- /**
- * 更新时间
- */
- updateTime?: string;
- /**
- * 用户ID
- */
- userId?: number;
- /**
- * 员工名称
- */
- userName?: string;
- /**
- * 电话号码
- */
- userPhone?: string;
- [property: string]: any;
- }
- /**
- * 充值积分记录统计列表
- *
- * PointsRechargeVO
- */
- interface PointsRechargeVO {
- /**
- * 渠道(企业)名称
- */
- channelName?: string;
- /**
- * 操作时间
- */
- createTime?: string;
- /**
- * 总充值积分
- */
- totalPoints?: number;
- /**
- * 总充值人数
- */
- totalUserCount?: number;
- [property: string]: any;
- }
- /**
- * 积分任务执行失败记录列表
- */
- interface PointsFailureRecordVO {
- /**
- * 操作人
- */
- createBy?: string;
- /**
- * 时间
- */
- createTime?: string;
- /**
- * 失败状态数量
- */
- failureStatus?: number;
- /**
- * 任务名称
- */
- name?: string;
- /**
- * 成功状态数量
- */
- successStatus?: number;
- [property: string]: any;
- }
- /**
- * 渠道统计
- *
- * ChannelVO
- */
- interface ChannelVO {
- /**
- * 渠道名称
- */
- channelName?: string;
- /**
- * 企业编号
- */
- channelNo?: string;
- /**
- * 创建日期
- */
- createTime?: { [key: string]: any };
- /**
- * 正常员工数
- */
- normalCount?: number;
- /**
- * 总员工数
- */
- staffCount?: number;
- /**
- * 企业状态(1-正常,0-停用)
- */
- status: Api.Common.commonStatus;
- /**
- * 渠道类型(1-企业用户,2-B端用户,3-C端用户)
- */
- type?: number;
- [property: string]: any;
- }
- /**
- * 员工列表
- */
- interface userList {
- /**
- * 可用
- */
- available: number;
- /**
- * 所属企业
- */
- channelName: string;
- /**
- * 已过期积分
- */
- expired: number;
- /**
- * 真实姓名
- */
- realName: string;
- /**
- * 状态 1正常 ,0 无效
- */
- status: Common.commonStatus;
- /**
- * 总积分
- */
- total: number;
- /**
- * 使用积分
- */
- used: number;
- /**
- * 手机号
- */
- userMobile: string;
- /**
- * 员工id
- */
- userId: number;
- }
- /**
- * 员工导入记录
- */
- interface importRecordList {
- batchNo: string;
- channel: string;
- completeTime: string;
- createTime: string;
- error: number;
- id: number;
- operator: string;
- phone: string;
- realName: string;
- success: number;
- taskName: string;
- total: number;
- }
- }
- namespace operation {
- interface HotSearch {
- /**
- * 内容
- */
- content?: string;
- /**
- * 主键
- */
- hotSearchId?: number;
- /**
- * 录入时间
- */
- recDate?: string;
- /**
- * 顺序
- */
- seq?: number;
- /**
- * 店铺id
- */
- shopId?: number;
- /**
- * 状态 默认是1,0为下线
- */
- status?: number;
- /**
- * 标题
- */
- title?: string;
- [property: string]: any;
- }
- /**
- * 广告
- */
- interface AdvertInfo {
- /**
- * 背景图
- */
- advertBack?: string;
- /**
- * 广告图片
- */
- advertImg?: string;
- /**
- * 广告名称
- */
- advertName?: string;
- /**
- * 排序
- */
- advertSort?: number;
- createTime?: string;
- deleted?: number;
- id?: number;
- /**
- * 跳转路径
- */
- jumpUrl?: string;
- /**
- * 状态 1正常 2删除
- */
- status?: Api.Common.commonStatus;
- [property: string]: any;
- }
- }
- namespace userManagement {
- interface userList {
- userId: string;
- /**
- * 账户名
- */
- userName: string;
- /**
- * 昵称
- */
- nickName: string;
- /**
- * 真实姓名
- */
- realName: string;
- /**
- * 邮箱
- */
- userMail: string;
- /**
- * 登录密码
- */
- loginPassword: string;
- /**
- * 支付密码
- */
- payPassword: string;
- /**
- * 手机号
- */
- userMobile: string;
- modifyTime: string;
- userRegtime: string;
- userRegip: string;
- userMemo: string;
- sex: string;
- birthDate: string;
- /**
- * 用户头像
- */
- pic: string;
- /**
- * 状态 1正常 0禁用
- */
- status: Common.commonStatus;
- growth: string;
- level: number;
- levelType: number;
- vipEndTime: string;
- levelName: string;
- /**
- * 平台1企业用户,2夫妻店,3市民请集合
- */
- platform: number;
- /**
- * 渠道id
- */
- channelId: number;
- }
- }
- }
|