作者 yangfu

序列化修改

... ... @@ -16,6 +16,8 @@ type CreateFeedbackCommand struct {
FeedbackContent string `cname:"合约承接方反馈内容" json:"feedbackContent" valid:"Required"`
// 共创合约编号
CooperationContractNumber string `cname:"共创合约编号" json:"cooperationContractNumber" valid:"Required"`
// 共创合约Id
CooperationContractId int64 `cname:"共创合约编号" json:"cooperationContractId"`
}
func (cmd *CreateFeedbackCommand) Valid(validation *validation.Validation) {
... ...
... ... @@ -36,6 +36,7 @@ func (srv UndertakerFeedbackService) CreateFeedback(cmd *command.CreateFeedbackC
FeedbackContent: cmd.FeedbackContent,
CooperationContractNumber: cmd.CooperationContractNumber,
UnderTakerUid: cmd.Operator.UserId,
CooperationContractId: cmd.CooperationContractId,
})
if err != nil {
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
... ...
... ... @@ -13,6 +13,8 @@ type (
// 合约承接方反馈内容
FeedbackContent string `cname:"合约承接方反馈内容" json:"feedbackContent" valid:"Required"`
// 共创合约编号
CooperationContractId int64 `cname:"共创合约编号" json:"cooperationContractId"`
// 共创合约编号
CooperationContractNumber string `cname:"共创合约编号" json:"cooperationContractNumber" valid:"Required"`
// 承接人uid
UnderTakerUid int64 `cname:"承接人uid" json:"underTakerUid,string,omitempty"`
... ...