正在显示
4 个修改的文件
包含
20 行增加
和
7 行删除
@@ -3,9 +3,9 @@ package command | @@ -3,9 +3,9 @@ package command | ||
3 | import "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain" | 3 | import "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domain" |
4 | 4 | ||
5 | type PayCreditAccountCommand struct { | 5 | type PayCreditAccountCommand struct { |
6 | - Operator domain.Operator `json:"-"` //操作人 | ||
7 | - CreditAccountId int `json:"creditAccountId"` //账期结算id | ||
8 | - ActuallyPaidAmount float64 `json:"actuallyPaidAmount"` //实际金额 | ||
9 | - Remarks string `json:"remarks"` //备注 | ||
10 | - Attachment domain.Attachment `json:"attachment"` //附件 | 6 | + Operator domain.Operator `json:"-"` //操作人 |
7 | + CreditAccountId int `json:"creditAccountId,string"` //账期结算id | ||
8 | + ActuallyPaidAmount float64 `json:"actuallyPaidAmount"` //实际金额 | ||
9 | + Remarks string `json:"remarks"` //备注 | ||
10 | + Attachment domain.Attachment `json:"attachment"` //附件 | ||
11 | } | 11 | } |
@@ -5,5 +5,5 @@ import "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domai | @@ -5,5 +5,5 @@ import "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domai | ||
5 | type RemoveCreditAccountCommand struct { | 5 | type RemoveCreditAccountCommand struct { |
6 | //操作人 | 6 | //操作人 |
7 | Operator domain.Operator `json:"-"` | 7 | Operator domain.Operator `json:"-"` |
8 | - CreditAccountId int `json:"creditAccountId"` //账期结算id | 8 | + CreditAccountId int `json:"creditAccountId,string"` //账期结算id |
9 | } | 9 | } |
@@ -10,7 +10,7 @@ import ( | @@ -10,7 +10,7 @@ import ( | ||
10 | type EstimateMoneyIncentivesCommand struct { | 10 | type EstimateMoneyIncentivesCommand struct { |
11 | //操作人 | 11 | //操作人 |
12 | Operator domain.Operator `json:"-"` | 12 | Operator domain.Operator `json:"-"` |
13 | - // 共创项目合约编号 | 13 | + // 共创项目合约id |
14 | CooperationContractId string `json:"cooperationContractId" valid:"Required"` | 14 | CooperationContractId string `json:"cooperationContractId" valid:"Required"` |
15 | // 承接人UID | 15 | // 承接人UID |
16 | UndertakerUids []string `json:"undertakerUids,omitempty"` | 16 | UndertakerUids []string `json:"undertakerUids,omitempty"` |
1 | +package routers | ||
2 | + | ||
3 | +import ( | ||
4 | + "github.com/beego/beego/v2/server/web" | ||
5 | + "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/controllers/web_client" | ||
6 | +) | ||
7 | + | ||
8 | +func init() { | ||
9 | + web.Router("/v1/web/credit-accounts/:creditAccountId", &web_client.CreditAccountController{}, "Get:GetCreditAccount") | ||
10 | + web.Router("/v1/web/credit-accounts/search", &web_client.CreditAccountController{}, "Post:ListCreditAccount") | ||
11 | + web.Router("/v1/web/credit-accounts/remove", &web_client.CreditAccountController{}, "Post:RemoveCreditAccount") | ||
12 | + web.Router("/v1/web/credit-accounts/pay", &web_client.CreditAccountController{}, "Post:PayCreditAccount") | ||
13 | +} |
-
请 注册 或 登录 后发表评论