From 9926bc47915ba77254e739392a46eb18e75d5ed2 Mon Sep 17 00:00:00 2001 From: kanade Date: Mon, 16 Jan 2023 11:39:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=9C=8D=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- customer/service/audit.go | 5 +++++ customer/user.go | 1 + 2 files changed, 6 insertions(+) diff --git a/customer/service/audit.go b/customer/service/audit.go index 7b2e262..4254ce1 100644 --- a/customer/service/audit.go +++ b/customer/service/audit.go @@ -11,6 +11,9 @@ const ( AuditHistoryAuditStatusNone = 1 // 待审核 AuditHistoryAuditStatusAdopt = 2 // 审核通过 AuditHistoryAuditStatusReject = 3 // 审核驳回 + + AuditHistoryAuditApplyTypeManage = 1 // 平台业务申请 + AuditHistoryAuditApplyTypeCustomer = 2 // 客户自主申请 ) type audit struct { @@ -82,6 +85,7 @@ func (a *audit) History(ctx context.Context, args ArgsHistory) (reply ReplyHisto type ArgsAuditApply struct { ServiceId uint `json:"serviceId"` // 服务id + ApplyType uint `json:"applyType"` // 申请类型 ApplyUserId uint `json:"applyUserId"` // 申请人id CustomerId uint `json:"customerId"` // 客户id ExpirationAt time.Time `json:"expirationAt"` // 到期时间 @@ -101,6 +105,7 @@ func (a *audit) Apply(ctx context.Context, args ArgsAuditApply) error { type ArgsAuditAdopt struct { AuditUserId uint // 审核人id UserServiceId uint // 客户服务id + Expand any `json:"expand"` // 拓展参数 } // Adopt @Title 审核通过 diff --git a/customer/user.go b/customer/user.go index e43c20f..5b334ee 100644 --- a/customer/user.go +++ b/customer/user.go @@ -62,6 +62,7 @@ type ArgsUserAdd struct { Phone string // 手机号 Password string // 密码 CreatedType uint // 创建账号类型 1=后台创建 2=自主创建 + UserType uint // 用户类型 1=企业 2=个人 CreatedUserId uint // 创建人Id }