部署
This commit is contained in:
@@ -3,6 +3,7 @@ package shipment
|
||||
import (
|
||||
"context"
|
||||
"git.kumo.work/shama/service/client"
|
||||
bean2 "git.kumo.work/shama/service/erp/bean"
|
||||
"git.kumo.work/shama/service/lib/bean"
|
||||
"time"
|
||||
)
|
||||
@@ -81,10 +82,21 @@ func (s *serial) Products(ctx context.Context, serialId int64) (reply []SaleProd
|
||||
return
|
||||
}
|
||||
|
||||
// Gifts @TITLE 获取赠品
|
||||
func (s *serial) Gifts(ctx context.Context, serialId int64) (reply []GiftItem, err error) {
|
||||
xClient, err := client.GetClient(s)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
err = xClient.Call(ctx, "Gifts", serialId, &reply)
|
||||
return
|
||||
}
|
||||
|
||||
type ArgsSerialGen struct {
|
||||
ShipmentId int64 // 订舱id
|
||||
SerialNo string // 商检单号
|
||||
ShipmentSaleProductIds []int64 // 订舱产品id
|
||||
ShipmentGiftIds []int64 // 订舱赠品id
|
||||
StaffId int64 // 操作员工
|
||||
}
|
||||
|
||||
@@ -109,3 +121,13 @@ func (s *serial) Cancel(ctx context.Context, serialId int64) (err error) {
|
||||
err = xClient.Call(ctx, "Cancel", serialId, &reply)
|
||||
return
|
||||
}
|
||||
|
||||
// Customs @TITLE 报关信息
|
||||
func (s *serial) Customs(ctx context.Context, customsId int64) (reply bean2.ReplyCustoms, err error) {
|
||||
xClient, err := client.GetClient(s)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
err = xClient.Call(ctx, "Customs", customsId, &reply)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user