作者 yangfu

chore: some optimize

... ... @@ -26,13 +26,13 @@ type CompanySignUpCommand struct {
SmsCode string `cname:"短信验证码" json:"smsCode" valid:"Required"`
// 法人
LegalPerson string `cname:"法人" json:"legalPerson" valid:"Required"`
LegalPerson string `cname:"法人" json:"legalPerson"` // valid:"Required"
// 社会信用代码
SocialCreditCode string `cname:"社会信用代码" json:"socialCreditCode" valid:"Required"`
SocialCreditCode string `cname:"社会信用代码" json:"socialCreditCode"` // valid:"Required"
// 营业执照所在地
BusinessLicenseAddress domain.BusinessLicenseAddress `cname:"营业执照所在地" json:"businessLicenseAddress" valid:"Required"`
BusinessLicenseAddress domain.BusinessLicenseAddress `cname:"营业执照所在地" json:"businessLicenseAddress" ` //valid:"Required"
// 营业执照-附件
BusinessLicenseAttachments []domain.Attachment `cname:"营业执照-附件" json:"businessLicenseAttachments" valid:"Required"`
BusinessLicenseAttachments []domain.Attachment `cname:"营业执照-附件" json:"businessLicenseAttachments" ` // valid:"Required"
}
func (companySignUpCommand *CompanySignUpCommand) Valid(validation *validation.Validation) {
... ...