feat(erp): 添加金蝶推送状态字段
- 在constant.go中添加Ik3cloudStatus类型和相关常量定义 - 为ExpenseItem和ReplyExpenseInfo结构体添加Ik3cloudStatus、Ik3cloudErrMsg和Ik3cloudUpdatedAt字段 - 为PayableItem和ReplyPayableInfo结构体添加Ik3cloudStatus、Ik3cloudErrMsg和Ik3cloudUpdatedAt字段 - 为receipt.go中的结构体添加Ik3cloudStatus、Ik3cloudErrMsg和Ik3cloudUpdatedAt字段 - 为receivable.go中的结构体添加Ik3cloudStatus、Ik3cloudErrMsg和Ik3cloudUpdatedAt字段 - 为request.go中的结构体添加Ik3cloudStatus、Ik3cloudErrMsg和Ik3cloudUpdatedAt字段 - 修正receivable.go中Ik3cloudStatus字段的数据类型从Flag改为int64
This commit is contained in:
@@ -28,19 +28,22 @@ type ReplyPayableList struct {
|
||||
Total int64 `json:"total"`
|
||||
}
|
||||
type PayableItem struct {
|
||||
Id int64 `json:"id"`
|
||||
PayableSerial string `json:"payableSerial"`
|
||||
InvoiceSerial string `json:"invoiceSerial"`
|
||||
AccountingSerial string `json:"accountingSerial"`
|
||||
Amount decimal.Decimal `json:"amount"`
|
||||
Currency string `json:"currency"`
|
||||
CurrencyName string `json:"currencyName"`
|
||||
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
||||
CurrencySymbol string `json:"currencySymbol"`
|
||||
IsConfirm int64 `json:"isConfirm"`
|
||||
PurchaseStaffId int64 `json:"purchaseStaffId"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
Id int64 `json:"id"`
|
||||
PayableSerial string `json:"payableSerial"`
|
||||
InvoiceSerial string `json:"invoiceSerial"`
|
||||
AccountingSerial string `json:"accountingSerial"`
|
||||
Amount decimal.Decimal `json:"amount"`
|
||||
Currency string `json:"currency"`
|
||||
CurrencyName string `json:"currencyName"`
|
||||
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
||||
CurrencySymbol string `json:"currencySymbol"`
|
||||
IsConfirm int64 `json:"isConfirm"`
|
||||
PurchaseStaffId int64 `json:"purchaseStaffId"`
|
||||
Ik3cloudStatus int64 `json:"ik3CloudStatus"`
|
||||
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
|
||||
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
// List @TITLE 列表
|
||||
@@ -54,21 +57,24 @@ func (p *payable) List(ctx context.Context, args ArgsPayableList) (reply ReplyPa
|
||||
}
|
||||
|
||||
type ReplyPayableInfo struct {
|
||||
Id int64 `json:"id"`
|
||||
PayableSerial string `json:"payableSerial"`
|
||||
AccountingSerial string `json:"accountingSerial"`
|
||||
InvoiceSerial string `json:"invoiceSerial"`
|
||||
Amount decimal.Decimal `json:"amount"`
|
||||
Currency string `json:"currency"`
|
||||
CurrencyName string `json:"currencyName"`
|
||||
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
||||
CurrencySymbol string `json:"currencySymbol"`
|
||||
PurchaseStaffId int64 `json:"purchaseStaffId"`
|
||||
IsConfirm int64 `json:"isConfirm"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
Products []PayableProductItem `json:"products"`
|
||||
Costs []PayableCostItem `json:"costs"`
|
||||
Id int64 `json:"id"`
|
||||
PayableSerial string `json:"payableSerial"`
|
||||
AccountingSerial string `json:"accountingSerial"`
|
||||
InvoiceSerial string `json:"invoiceSerial"`
|
||||
Amount decimal.Decimal `json:"amount"`
|
||||
Currency string `json:"currency"`
|
||||
CurrencyName string `json:"currencyName"`
|
||||
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
||||
CurrencySymbol string `json:"currencySymbol"`
|
||||
PurchaseStaffId int64 `json:"purchaseStaffId"`
|
||||
IsConfirm int64 `json:"isConfirm"`
|
||||
Ik3cloudStatus int64 `json:"ik3CloudStatus"`
|
||||
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
|
||||
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`
|
||||
CreatedAt *time.Time `json:"createdAt"`
|
||||
UpdatedAt *time.Time `json:"updatedAt"`
|
||||
Products []PayableProductItem `json:"products"`
|
||||
Costs []PayableCostItem `json:"costs"`
|
||||
}
|
||||
|
||||
type PayableProductItem struct {
|
||||
|
||||
Reference in New Issue
Block a user