作者 tangxuhui

新增 赞单结算

... ... @@ -4,7 +4,7 @@ import "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domai
type PayCreditAccountCommand struct {
Operator domain.Operator `json:"-"` //操作人
CreditAccountId int `json:"creditAccountId"` //账期结算id
CreditAccountId int `json:"creditAccountId,string"` //账期结算id
ActuallyPaidAmount float64 `json:"actuallyPaidAmount"` //实际金额
Remarks string `json:"remarks"` //备注
Attachment domain.Attachment `json:"attachment"` //附件
... ...
... ... @@ -5,5 +5,5 @@ import "gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/domai
type RemoveCreditAccountCommand struct {
//操作人
Operator domain.Operator `json:"-"`
CreditAccountId int `json:"creditAccountId"` //账期结算id
CreditAccountId int `json:"creditAccountId,string"` //账期结算id
}
... ...
... ... @@ -10,7 +10,7 @@ import (
type EstimateMoneyIncentivesCommand struct {
//操作人
Operator domain.Operator `json:"-"`
// 共创项目合约编号
// 共创项目合约id
CooperationContractId string `json:"cooperationContractId" valid:"Required"`
// 承接人UID
UndertakerUids []string `json:"undertakerUids,omitempty"`
... ...
package routers
import (
"github.com/beego/beego/v2/server/web"
"gitlab.fjmaimaimai.com/allied-creation/allied-creation-gateway/pkg/port/beego/controllers/web_client"
)
func init() {
web.Router("/v1/web/credit-accounts/:creditAccountId", &web_client.CreditAccountController{}, "Get:GetCreditAccount")
web.Router("/v1/web/credit-accounts/search", &web_client.CreditAccountController{}, "Post:ListCreditAccount")
web.Router("/v1/web/credit-accounts/remove", &web_client.CreditAccountController{}, "Post:RemoveCreditAccount")
web.Router("/v1/web/credit-accounts/pay", &web_client.CreditAccountController{}, "Post:PayCreditAccount")
}
... ...