处理客户端接口

finance
杨赟 2 years ago
parent 9d48a244c0
commit 08afe3f664

@ -1,5 +1,8 @@
package customer package customer
import "git.oa00.com/supply-chain/service/customer/service"
type Customer struct { type Customer struct {
User user User user
Service service.Service
} }

@ -3,10 +3,12 @@ package service
import ( import (
"context" "context"
"git.oa00.com/supply-chain/service/client" "git.oa00.com/supply-chain/service/client"
audit2 "git.oa00.com/supply-chain/service/customer/service/audit"
"git.oa00.com/supply-chain/service/lib/bean" "git.oa00.com/supply-chain/service/lib/bean"
) )
type audit struct { type audit struct {
audit2.Audit
} }
type AuditSearch struct { type AuditSearch struct {
Status uint // 审核状态 1=未审核 2=通过 3=驳回 Status uint // 审核状态 1=未审核 2=通过 3=驳回

@ -0,0 +1,5 @@
package audit
type Audit struct {
Supply supply
}

@ -9,7 +9,7 @@ type supply struct {
} }
type ArgsSupplyApply struct { type ArgsSupplyApply struct {
ApplyId uint // 申请人id ApplyUserId uint // 申请人id
CustomerId uint // 客户id CustomerId uint // 客户id
RateId uint // 费率id RateId uint // 费率id
ExpirationAt int64 // 到期时间 ExpirationAt int64 // 到期时间
@ -27,7 +27,7 @@ func (s *supply) Apply(ctx context.Context, args ArgsSupplyApply) error {
} }
type ArgsSupplyAdopt struct { type ArgsSupplyAdopt struct {
AuditId uint // 审核人id AuditUserId uint // 审核人id
UserServiceId uint // 客户服务id UserServiceId uint // 客户服务id
} }
@ -42,7 +42,7 @@ func (s *supply) Adopt(ctx context.Context, args ArgsSupplyAdopt) error {
} }
type ArgsSupplyReject struct { type ArgsSupplyReject struct {
AuditId uint // 审核人id AuditUserId uint // 审核人id
UserServiceId uint // 客户服务id UserServiceId uint // 客户服务id
Reason string // 驳回原因 Reason string // 驳回原因
} }

@ -0,0 +1,5 @@
package service
type Service struct {
Audit audit
}
Loading…
Cancel
Save