Files
tyapi-server/internal/application/certification/dto/commands/certification_commands.go

22 lines
1.5 KiB
Go
Raw Normal View History

2025-07-13 16:36:20 +08:00
package commands
// SubmitEnterpriseInfoCommand 提交企业信息命令
// 用于用户提交企业四要素信息,完成企业信息验证
2025-07-20 20:53:26 +08:00
// 如果用户没有认证申请,系统会自动创建
2025-07-13 16:36:20 +08:00
type SubmitEnterpriseInfoCommand struct {
2025-07-20 20:53:26 +08:00
UserID string `json:"-" comment:"用户唯一标识从JWT token获取不在JSON中暴露"`
CompanyName string `json:"company_name" binding:"required,min=2,max=100" comment:"企业名称,如:北京科技有限公司"`
UnifiedSocialCode string `json:"unified_social_code" binding:"required,social_credit_code" comment:"统一社会信用代码18位企业唯一标识91110000123456789X"`
LegalPersonName string `json:"legal_person_name" binding:"required,min=2,max=20" comment:"法定代表人姓名,如:张三"`
LegalPersonID string `json:"legal_person_id" binding:"required,id_card" comment:"法定代表人身份证号码18位110101199001011234"`
LegalPersonPhone string `json:"legal_person_phone" binding:"required,phone" comment:"法定代表人手机号11位13800138000"`
VerificationCode string `json:"verification_code" binding:"required,len=6" comment:"验证码"`
2025-07-13 16:36:20 +08:00
}
2025-07-20 20:53:26 +08:00
// CompleteContractSignCommand 完成合同签署命令
// 用于用户完成合同签署提交合同URL
type CompleteContractSignCommand struct {
UserID string `json:"-" comment:"用户唯一标识从JWT token获取不在JSON中暴露"`
ContractURL string `json:"contract_url" binding:"required,url,min=10,max=500" comment:"合同签署后的URL地址"`
2025-07-13 16:36:20 +08:00
}