|
|
@ -5,7 +5,7 @@ import (
|
|
|
|
"git.oa00.com/supply-chain/service/client"
|
|
|
|
"git.oa00.com/supply-chain/service/client"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type supply struct {
|
|
|
|
type Supply struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type ArgsSupplyApply struct {
|
|
|
|
type ArgsSupplyApply struct {
|
|
|
@ -17,7 +17,7 @@ type ArgsSupplyApply struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Apply @Title 申请
|
|
|
|
// Apply @Title 申请
|
|
|
|
func (s *supply) Apply(ctx context.Context, args ArgsSupplyApply) error {
|
|
|
|
func (s *Supply) Apply(ctx context.Context, args ArgsSupplyApply) error {
|
|
|
|
reply := 0
|
|
|
|
reply := 0
|
|
|
|
return client.GetClient(s).Call(ctx, "Apply", args, &reply)
|
|
|
|
return client.GetClient(s).Call(ctx, "Apply", args, &reply)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -28,7 +28,7 @@ type ArgsSupplyAdopt struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Adopt @Title 审核通过
|
|
|
|
// Adopt @Title 审核通过
|
|
|
|
func (s *supply) Adopt(ctx context.Context, args ArgsSupplyAdopt) error {
|
|
|
|
func (s *Supply) Adopt(ctx context.Context, args ArgsSupplyAdopt) error {
|
|
|
|
reply := 0
|
|
|
|
reply := 0
|
|
|
|
return client.GetClient(s).Call(ctx, "Adopt", args, &reply)
|
|
|
|
return client.GetClient(s).Call(ctx, "Adopt", args, &reply)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -40,7 +40,7 @@ type ArgsSupplyReject struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Reject @Title 驳回
|
|
|
|
// Reject @Title 驳回
|
|
|
|
func (s *supply) Reject(ctx context.Context, args ArgsSupplyReject) error {
|
|
|
|
func (s *Supply) Reject(ctx context.Context, args ArgsSupplyReject) error {
|
|
|
|
reply := 0
|
|
|
|
reply := 0
|
|
|
|
return client.GetClient(s).Call(ctx, "Reject", args, &reply)
|
|
|
|
return client.GetClient(s).Call(ctx, "Reject", args, &reply)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -62,7 +62,7 @@ type ReplySupplyInfo struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Info @Title 详情
|
|
|
|
// Info @Title 详情
|
|
|
|
func (s *supply) Info(ctx context.Context, userServiceId uint) (reply ReplySupplyInfo, err error) {
|
|
|
|
func (s *Supply) Info(ctx context.Context, userServiceId uint) (reply ReplySupplyInfo, err error) {
|
|
|
|
err = client.GetClient(s).Call(ctx, "Info", userServiceId, &reply)
|
|
|
|
err = client.GetClient(s).Call(ctx, "Info", userServiceId, &reply)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|