diff --git a/erp/expense/cost.go b/erp/expense/cost.go index 811cd12..614c3cc 100644 --- a/erp/expense/cost.go +++ b/erp/expense/cost.go @@ -23,17 +23,20 @@ type ReplyCostList struct { Total int64 `json:"total"` } type CostItem struct { - Id int64 `json:"id"` - ExpenseId int64 `json:"expenseId"` - Date time.Time `json:"date"` - TypeNumber string `json:"typeNumber"` - TypeName string `json:"typeName"` - Value string `json:"value"` - Amount decimal.Decimal `json:"amount"` - DepartmentId int64 `json:"departmentId"` - InvoiceSerial string `json:"invoiceSerial"` - CreatedAt *time.Time `json:"createdAt"` - UpdatedAt *time.Time `json:"updatedAt"` + Id int64 `json:"id"` + ExpenseId int64 `json:"expenseId"` + Date time.Time `json:"date"` + TypeNumber string `json:"typeNumber"` + TypeName string `json:"typeName"` + Value string `json:"value"` + Amount decimal.Decimal `json:"amount"` + DepartmentId int64 `json:"departmentId"` + InvoiceSerial string `json:"invoiceSerial"` + TravelAt *time.Time `json:"travelAt"` + TravelLocation string `json:"travelLocation"` + TravelReason string `json:"travelReason"` + CreatedAt *time.Time `json:"createdAt"` + UpdatedAt *time.Time `json:"updatedAt"` } // List @TITLE 列表 @@ -47,14 +50,17 @@ func (c *cost) List(ctx context.Context, args ArgsCostList) (reply ReplyCostList } type ArgsCostAdd struct { - ExpenseId int64 // 报销单ID - Date time.Time // 费用日期 - TypeNumber string // 费用类型 - TypeName string // 费用类型名称 - Value string // 费用名称 - Amount decimal.Decimal // 金额 - DepartmentId int64 // 部门 - InvoiceSerial string // 发票编号 + ExpenseId int64 // 报销单ID + Date time.Time // 费用日期 + TypeNumber string // 费用类型 + TypeName string // 费用类型名称 + Value string // 费用名称 + Amount decimal.Decimal // 金额 + DepartmentId int64 // 部门 + InvoiceSerial string // 发票编号 + TravelAt *time.Time // 出差时间 + TravelLocation string // 出差地点 + TravelReason string // 出差事由 } type ReplyCostAdd struct {