/** * 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 extends PaginatingCommonParams { records: T[]; } /** common search params of table */ type CommonSearchParams = Pick; /** * enable status * * - "1": enabled * - "0": disabled */ type EnableStatus = '0' | '1'; /** common record */ type CommonRecord = { /** 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; } } }