feat: payment
CI / changes (push) Successful in 37s
CI / ad (push) Successful in 1s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 23s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 1s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 1s
CI / payment (push) Successful in 33s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 18s
CI / wecom (push) Successful in 0s

This commit is contained in:
zzw
2026-10-05 15:29:19 +08:00
parent ffe4bf2fe5
commit 851348ed5c
12 changed files with 427 additions and 59 deletions
+15
View File
@@ -75,6 +75,21 @@ func (p InternalCreateValidator) GetMessage() validate.ValidatorMessages {
}
}
type InternalGetUserInfoValidator struct {
UserId int64 `validate:"required,gt=0"`
CredentialType string `validate:"omitempty,oneof=password sms wecom openid unionid"`
SubjectType string `validate:"omitempty,oneof=sale store user"`
}
func (p InternalGetUserInfoValidator) GetMessage() validate.ValidatorMessages {
return validate.ValidatorMessages{
"UserId.required": "用户ID不能为空",
"UserId.gt": "用户ID必须大于0",
"CredentialType.oneof": "凭证类型不正确",
"SubjectType.oneof": "主体类型不正确",
}
}
type InternalUsersByIdsValidator struct {
Ids []int64 `validate:"required,min=1,dive,gt=0"`
}