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:
@@ -36,6 +36,9 @@ type ExpenseItem struct {
|
|||||||
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
||||||
Remarks string `json:"remarks"`
|
Remarks string `json:"remarks"`
|
||||||
Amount decimal.Decimal `json:"amount"`
|
Amount decimal.Decimal `json:"amount"`
|
||||||
|
WorkflowId int64 `json:"workflowId"`
|
||||||
|
WorkflowStatus int64 `json:"workflowStatus"`
|
||||||
|
WorkflowReason string `json:"workflowReason"`
|
||||||
CreatedStaffId int64 `json:"createdStaffId"`
|
CreatedStaffId int64 `json:"createdStaffId"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
@@ -83,6 +86,9 @@ type ReplyExpenseInfo struct {
|
|||||||
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
||||||
Amount decimal.Decimal `json:"amount"`
|
Amount decimal.Decimal `json:"amount"`
|
||||||
Remarks string `json:"remarks"`
|
Remarks string `json:"remarks"`
|
||||||
|
WorkflowId int64 `json:"workflowId"`
|
||||||
|
WorkflowStatus int64 `json:"workflowStatus"`
|
||||||
|
WorkflowReason string `json:"workflowReason"`
|
||||||
CreatedStaffId int64 `json:"createdStaffId"`
|
CreatedStaffId int64 `json:"createdStaffId"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
|
|||||||
@@ -40,6 +40,9 @@ type RequestItem struct {
|
|||||||
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
||||||
Remarks string `json:"remarks"`
|
Remarks string `json:"remarks"`
|
||||||
Amount decimal.Decimal `json:"amount"`
|
Amount decimal.Decimal `json:"amount"`
|
||||||
|
WorkflowId int64 `json:"workflowId"`
|
||||||
|
WorkflowStatus int64 `json:"workflowStatus"`
|
||||||
|
WorkflowReason string `json:"workflowReason"`
|
||||||
CreatedStaffId int64 `json:"createdStaffId"`
|
CreatedStaffId int64 `json:"createdStaffId"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
@@ -95,6 +98,9 @@ type ReplyRequestInfo struct {
|
|||||||
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
CurrencyRate decimal.Decimal `json:"currencyRate"`
|
||||||
Amount decimal.Decimal `json:"amount"`
|
Amount decimal.Decimal `json:"amount"`
|
||||||
Remarks string `json:"remarks"`
|
Remarks string `json:"remarks"`
|
||||||
|
WorkflowId int64 `json:"workflowId"`
|
||||||
|
WorkflowStatus int64 `json:"workflowStatus"`
|
||||||
|
WorkflowReason string `json:"workflowReason"`
|
||||||
CreatedStaffId int64 `json:"createdStaffId"`
|
CreatedStaffId int64 `json:"createdStaffId"`
|
||||||
CreatedAt *time.Time `json:"createdAt"`
|
CreatedAt *time.Time `json:"createdAt"`
|
||||||
UpdatedAt *time.Time `json:"updatedAt"`
|
UpdatedAt *time.Time `json:"updatedAt"`
|
||||||
|
|||||||
Reference in New Issue
Block a user