feat(erp): 添加工作流相关字段到费用和请求模型

- 在 expense.go 的 Expense 结构体中添加 WorkflowId、WorkflowStatus 和 WorkflowReason 字段
- 在 expense.go 的 ExpenseResponse 结构体中添加 WorkflowId、WorkflowStatus 和 WorkflowReason 字段
- 在 request.go 的 Request 结构体中添加 WorkflowId、WorkflowStatus 和 WorkflowReason 字段
- 在 request.go 的 RequestResponse 结构体中添加 WorkflowId、WorkflowStatus 和 WorkflowReason 字段
This commit is contained in:
2025-12-18 16:37:42 +08:00
parent 0a1d70d064
commit 5813fe05ce
2 changed files with 12 additions and 0 deletions

View File

@@ -36,6 +36,9 @@ type ExpenseItem struct {
CurrencyRate decimal.Decimal `json:"currencyRate"`
Remarks string `json:"remarks"`
Amount decimal.Decimal `json:"amount"`
WorkflowId int64 `json:"workflowId"`
WorkflowStatus int64 `json:"workflowStatus"`
WorkflowReason string `json:"workflowReason"`
CreatedStaffId int64 `json:"createdStaffId"`
CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`
@@ -83,6 +86,9 @@ type ReplyExpenseInfo struct {
CurrencyRate decimal.Decimal `json:"currencyRate"`
Amount decimal.Decimal `json:"amount"`
Remarks string `json:"remarks"`
WorkflowId int64 `json:"workflowId"`
WorkflowStatus int64 `json:"workflowStatus"`
WorkflowReason string `json:"workflowReason"`
CreatedStaffId int64 `json:"createdStaffId"`
CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`

View File

@@ -40,6 +40,9 @@ type RequestItem struct {
CurrencyRate decimal.Decimal `json:"currencyRate"`
Remarks string `json:"remarks"`
Amount decimal.Decimal `json:"amount"`
WorkflowId int64 `json:"workflowId"`
WorkflowStatus int64 `json:"workflowStatus"`
WorkflowReason string `json:"workflowReason"`
CreatedStaffId int64 `json:"createdStaffId"`
CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`
@@ -95,6 +98,9 @@ type ReplyRequestInfo struct {
CurrencyRate decimal.Decimal `json:"currencyRate"`
Amount decimal.Decimal `json:"amount"`
Remarks string `json:"remarks"`
WorkflowId int64 `json:"workflowId"`
WorkflowStatus int64 `json:"workflowStatus"`
WorkflowReason string `json:"workflowReason"`
CreatedStaffId int64 `json:"createdStaffId"`
CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`