部署测试

This commit is contained in:
2024-08-01 14:51:51 +08:00
parent f9bb041a2e
commit 81ffde828c
13 changed files with 569 additions and 11 deletions

25
erp/sale/audit.go Normal file
View File

@@ -0,0 +1,25 @@
package sale
import (
"context"
"git.kumo.work/shama/service/client"
)
type audit struct {
}
type ArgsAuditSubmit struct {
StaffId int64 // 操作人
SaleId int64 // 销售合同id
AuditStaffIds []int64 // 审核人
}
// Submit @TITLE 提交审核
func (a *audit) Submit(ctx context.Context, args ArgsAuditSubmit) (err error) {
xClient, err := client.GetClient(a)
if err != nil {
return
}
reply := 0
err = xClient.Call(ctx, "Submit", args, &reply)
return
}

View File

@@ -39,6 +39,11 @@ type ProductItem struct {
QuoteFactoryName string `json:"quoteFactoryName"`
QuoteStartNum int64 `json:"quoteStartNum"`
QuoteMeasureUnit string `json:"quoteMeasureUnit"`
Currency string `json:"currency"`
CurrencyName string `json:"currencyName"`
CurrencySymbol string `json:"currencySymbol"`
CurrencyRate decimal.Decimal `json:"currencyRate"`
PurchaseCount int64 `json:"purchaseCount"`
CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`
Children []*ProductItem `json:"children"`

View File

@@ -3,4 +3,5 @@ package sale
type Sale struct {
Cost cost
Product product
Audit audit
}