Merge branch 'master' of git.oa00.com:supply-chain/service

finance
黄伟 2 years ago
commit e20aab85ce

@ -7,6 +7,7 @@ import (
type Service struct { type Service struct {
Audit audit Audit audit
Service service
} }
type ArgsServiceLists struct { type ArgsServiceLists struct {
@ -21,8 +22,11 @@ type ReplyServiceLists struct {
AuditStatus uint `json:"auditStatus"` AuditStatus uint `json:"auditStatus"`
} }
type service struct {
}
// All @Title 全部服务 // All @Title 全部服务
func (s *Service) All(ctx context.Context, customerId uint) (reply []ReplyServiceLists, err error) { func (s *service) All(ctx context.Context, customerId uint) (reply []ReplyServiceLists, err error) {
xClient, err := client.GetClient(s) xClient, err := client.GetClient(s)
if err != nil { if err != nil {
return return

@ -3,4 +3,5 @@ package user
type User struct { type User struct {
Deposit deposit // 充值 Deposit deposit // 充值
DepositAudit depositAudit // 充值审核 DepositAudit depositAudit // 充值审核
Wallet wallet // 钱包
} }

@ -91,13 +91,3 @@ func (b *brand) FindByIds(ctx context.Context, args ArgsBrandFindByIds) (result
err = xClient.Call(ctx, "FindByIds", args, &result) err = xClient.Call(ctx, "FindByIds", args, &result)
return return
} }
// Export @Title 导出品牌
func (b *brand) Export(ctx context.Context, name string) (result []BrandItem, err error) {
xClient, err := client.GetClient(b)
if err != nil {
return
}
err = xClient.Call(ctx, "Export", name, &result)
return
}

@ -146,8 +146,6 @@ type SkuItem struct {
CustomerProfitRate decimal.Decimal `json:"customerProfitRate"` // 供货利润率 供货利润/供货最高价% CustomerProfitRate decimal.Decimal `json:"customerProfitRate"` // 供货利润率 供货利润/供货最高价%
AdjustType uint `json:"adjustType"` // 加价类型 AdjustType uint `json:"adjustType"` // 加价类型
AdjustPrice decimal.Decimal `json:"adjustPrice"` // 加价金额 AdjustPrice decimal.Decimal `json:"adjustPrice"` // 加价金额
AfterAdjustType uint `json:"afterType"` // 改价后加价类型
AfterAdjustPrice decimal.Decimal `json:"afterPrice"` // 改价后加价金额
Handle uint `json:"handle"` // 1=未处理 2=已处理 Handle uint `json:"handle"` // 1=未处理 2=已处理
Reason string `json:"reason"` // 驳回原因 Reason string `json:"reason"` // 驳回原因
} }
@ -240,7 +238,6 @@ func (s *sku) GetImgs(ctx context.Context, skuId uint) (reply []SkuImg, err erro
type ArgsReplaceImg struct { type ArgsReplaceImg struct {
Id uint Id uint
SkuId uint
ReplacePath string ReplacePath string
} }
@ -254,49 +251,3 @@ func (s *sku) ReplaceImg(ctx context.Context, args ArgsReplaceImg) (err error) {
err = xClient.Call(ctx, "ReplaceImg", args, &reply) err = xClient.Call(ctx, "ReplaceImg", args, &reply)
return return
} }
type ArgsSkuChangePrice struct {
SourceSkuId string // 源skuId
SupplyPrice decimal.Decimal // 采购价
GuidePrice decimal.Decimal // 指导价-建议售价
Source source // 商品来源
}
// ChangePrice @Title 更新价格
func (s *sku) ChangePrice(ctx context.Context, args ArgsSkuChangePrice) (err error) {
reply := 0
xClient, err := client.GetClient(s)
if err != nil {
return err
}
err = xClient.Call(ctx, "ChangePrice", args, &reply)
return
}
type ArgsSkuChangeData struct {
SourceSkuId string // 源skuId
SourceStatus uint // 源状态
Name string // 商品名称
BrandId uint // 品牌id
ThirdCategoryId uint // 三级分类id
SupplyPrice decimal.Decimal // 采购价
GuidePrice decimal.Decimal // 指导价-建议售价
Size string // 尺码
Color string // 颜色
Tax string // 税率
Unit string // 销售单位
UpcCode string // 商品条码
Source source // 商品来源
Specifications []SkuSpecification // 商品参数信息
}
// ChangeData @Title 更新商品信息
func (s *sku) ChangeData(ctx context.Context, args ArgsSkuChangeData) (err error) {
reply := 0
xClient, err := client.GetClient(s)
if err != nil {
return err
}
err = xClient.Call(ctx, "ChangeData", args, &reply)
return
}

Loading…
Cancel
Save