parent
b4750f930c
commit
1237f97014
@ -0,0 +1,39 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.oa00.com/supply-chain/service/client"
|
||||
"git.oa00.com/supply-chain/service/lib/bean"
|
||||
)
|
||||
|
||||
type audit struct {
|
||||
}
|
||||
type AuditSearch struct {
|
||||
Status uint // 审核状态 1=未审核 2=通过 3=驳回
|
||||
Name string // 用户名称
|
||||
}
|
||||
type ArgsAuditLists struct {
|
||||
Search AuditSearch // 筛选
|
||||
Page bean.Page // 分页
|
||||
}
|
||||
type AuditItem struct {
|
||||
Id uint `json:"id"`
|
||||
ServiceId uint `json:"serviceId"`
|
||||
UserName string `json:"userName"`
|
||||
ServiceName string `json:"serviceName"`
|
||||
ApplyUserId uint `json:"applyUserId"`
|
||||
ApplyAt int64 `json:"applyAt"`
|
||||
AuditStatus uint `json:"auditStatus"`
|
||||
AuditUserId uint `json:"auditUserId"`
|
||||
AuditAt int64 `json:"auditAt"`
|
||||
}
|
||||
type ReplyAuditLists struct {
|
||||
Lists []AuditItem `json:"lists"`
|
||||
Total int64 `json:"total"`
|
||||
}
|
||||
|
||||
// Lists @Title 服务审核列表
|
||||
func (a *audit) Lists(ctx context.Context, args ArgsAuditLists) (reply ReplyAuditLists, err error) {
|
||||
err = client.GetClient(a).Call(ctx, "Lists", args, &reply)
|
||||
return
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package audit
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.oa00.com/supply-chain/service/client"
|
||||
)
|
||||
|
||||
type supply struct {
|
||||
}
|
||||
|
||||
type ArgsSupplyApply struct {
|
||||
ApplyId uint // 申请人id
|
||||
CustomerId uint // 客户id
|
||||
RateId uint // 费率id
|
||||
ExpirationAt int64 // 到期时间
|
||||
Enclosure string // 附件
|
||||
}
|
||||
|
||||
// Apply @Title 申请
|
||||
func (s *supply) Apply(ctx context.Context, args ArgsSupplyApply) error {
|
||||
reply := 0
|
||||
return client.GetClient(s).Call(ctx, "Apply", args, &reply)
|
||||
}
|
||||
|
||||
type ArgsSupplyAdopt struct {
|
||||
AuditId uint // 审核人id
|
||||
UserServiceId uint // 客户服务id
|
||||
}
|
||||
|
||||
// Adopt @Title 审核通过
|
||||
func (s *supply) Adopt(ctx context.Context, args ArgsSupplyAdopt) error {
|
||||
reply := 0
|
||||
return client.GetClient(s).Call(ctx, "Adopt", args, &reply)
|
||||
}
|
||||
|
||||
type ArgsSupplyReject struct {
|
||||
AuditId uint // 审核人id
|
||||
UserServiceId uint // 客户服务id
|
||||
Reason string // 驳回原因
|
||||
}
|
||||
|
||||
// Reject @Title 驳回
|
||||
func (s *supply) Reject(ctx context.Context, args ArgsSupplyReject) error {
|
||||
reply := 0
|
||||
return client.GetClient(s).Call(ctx, "Reject", args, &reply)
|
||||
}
|
||||
|
||||
type ReplySupplyInfo struct {
|
||||
Id uint `json:"id"`
|
||||
UserName string `json:"userName"`
|
||||
ApplyUserId uint `json:"applyUserId"`
|
||||
ApplyAt int64 `json:"applyAt"`
|
||||
ServiceId uint `json:"serviceId"`
|
||||
ServiceName string `json:"serviceName"`
|
||||
ExpirationAt int64 `json:"expirationAt"`
|
||||
RateId uint `json:"rateId"`
|
||||
Enclosure string `json:"enclosure"`
|
||||
AuditStatus uint `json:"auditStatus"`
|
||||
AuditAt int64 `json:"auditAt"`
|
||||
Reason string `json:"reason"`
|
||||
AuditUserId uint `json:"auditUserId"`
|
||||
}
|
||||
|
||||
// Info @Title 详情
|
||||
func (s *supply) Info(ctx context.Context, userServiceId uint) (reply ReplySupplyInfo, err error) {
|
||||
err = client.GetClient(s).Call(ctx, "Info", userServiceId, &reply)
|
||||
return
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
package channel
|
||||
|
||||
type Channel struct {
|
||||
Sku sku
|
||||
Sku sku
|
||||
Order order
|
||||
}
|
||||
|
@ -0,0 +1,5 @@
|
||||
package setting
|
||||
|
||||
type Setting struct {
|
||||
Rate rate
|
||||
}
|
Loading…
Reference in new issue