小程序用户改用门店登录

This commit is contained in:
liu
2026-08-20 13:46:04 +08:00
parent 6d9f02d831
commit c1d490134e
251 changed files with 689 additions and 2727 deletions
-2
View File
@@ -88,8 +88,6 @@ export interface IDashboardArchives {
products: number;
/** 合作供应商 */
suppliers: number;
/** 小程序用户 */
users: number;
}
/** 仪表盘分析页聚合数据(GET /dashboard/analysis */
-19
View File
@@ -1,19 +0,0 @@
import type IStore from '@/domain/iStore.ts';
/** 小程序用户 */
export default interface IMiniUser {
id?: number;
nickname?: string;
phone?: string;
avatar?: string;
store_id?: number;
store?: IStore;
status?: number;
last_login_at?: string;
created_at?: string;
}
export const MINI_USER_STATUS_MAP: Record<number, { text: string; color: string }> = {
0: { text: '停用', color: 'error' },
1: { text: '正常', color: 'success' },
};
+2 -2
View File
@@ -1,7 +1,7 @@
/** 通知(user_id=0 为全员广播) */
/** 通知(store_id=0 为全员广播) */
export default interface INotice {
id?: number;
user_id?: number;
store_id?: number;
/** order订单 price价格 system系统 */
type?: string;
title?: string;
-2
View File
@@ -3,7 +3,6 @@ export default interface IPayment {
id?: number;
payment_no?: string;
store_id?: number;
user_id?: number;
/** 支付金额(= 关联账单总金额合计) */
amount?: string;
/** 支付方式:1微信 2支付宝 3对公汇款 */
@@ -22,7 +21,6 @@ export default interface IPayment {
created_at?: string;
/** 列表/详情接口附带 */
store?: { id: number; name: string; contact?: string; phone?: string } | null;
user?: { id: number; nickname: string } | null;
auditor?: { id: number; nickname: string } | null;
bills_count?: number;
}
+8
View File
@@ -6,6 +6,14 @@ export default interface IStore {
name?: string;
/** 门店编码 */
code?: string;
/** 登录账号(小程序端 账号+密码 登录) */
username?: string;
/** 登录密码(创建必填,编辑留空不修改;接口永不回显) */
password?: string;
/** 头像 */
avatar?: string;
/** 最后登录时间 */
last_login_at?: string | null;
/** 客户等级ID(决定商品价格) */
level_id?: number;
level?: ICustomerLevel;