feat(expense): 添加差旅费详情字段
- 在成本结构体中增加 TravelInfo 字段用于存储差旅费详情 - 更新数据库模型以支持差旅费详情信息存储 - 添加相应的 JSON 序列化标签支持
This commit is contained in:
@@ -35,6 +35,7 @@ type CostItem struct {
|
|||||||
TravelAt *time.Time `json:"travelAt"`
|
TravelAt *time.Time `json:"travelAt"`
|
||||||
TravelLocation string `json:"travelLocation"`
|
TravelLocation string `json:"travelLocation"`
|
||||||
TravelReason string `json:"travelReason"`
|
TravelReason string `json:"travelReason"`
|
||||||
|
TravelInfo string `json:"travelInfo"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
}
|
}
|
||||||
@@ -61,6 +62,7 @@ type ArgsCostAdd struct {
|
|||||||
TravelAt *time.Time // 出差时间
|
TravelAt *time.Time // 出差时间
|
||||||
TravelLocation string // 出差地点
|
TravelLocation string // 出差地点
|
||||||
TravelReason string // 出差事由
|
TravelReason string // 出差事由
|
||||||
|
TravelInfo string // 差旅费详情
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReplyCostAdd struct {
|
type ReplyCostAdd struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user