feat(expense): 添加费用管理功能模块

- 添加出差信息
This commit is contained in:
2026-05-11 10:17:12 +08:00
parent 376401e198
commit 259c90bd4c

View File

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