mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
fix: next period,purchase before bop, integration auth module,fix validation-master data
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
package validation
|
||||
|
||||
type Create struct {
|
||||
Name string `json:"name" validate:"required_strict,min=3"`
|
||||
Name string `json:"name" validate:"required_strict,min=3,max=50"`
|
||||
Alias string `json:"alias" validate:"required_strict,max=5"`
|
||||
Pic string `json:"pic" validate:"required_strict"`
|
||||
Type string `json:"type" validate:"required_strict"`
|
||||
Category string `json:"category" validate:"required_strict"`
|
||||
Hatchery *string `json:"hatchery,omitempty" validate:"omitempty"`
|
||||
Pic string `json:"pic" validate:"required_strict,max=50"`
|
||||
Type string `json:"type" validate:"required_strict,max=50"`
|
||||
Category string `json:"category" validate:"required_strict,max=20"`
|
||||
Hatchery *string `json:"hatchery,omitempty" validate:"omitempty,max=50"`
|
||||
Phone string `json:"phone" validate:"required_strict,max=20"`
|
||||
Email string `json:"email" validate:"required_strict,email"`
|
||||
Email string `json:"email" validate:"required_strict,email,max=50"`
|
||||
Address string `json:"address" validate:"required_strict"`
|
||||
Npwp *string `json:"npwp,omitempty" validate:"omitempty,max=50"`
|
||||
AccountNumber *string `json:"account_number,omitempty" validate:"omitempty,max=50"`
|
||||
@@ -16,14 +16,14 @@ type Create struct {
|
||||
}
|
||||
|
||||
type Update struct {
|
||||
Name *string `json:"name,omitempty" validate:"omitempty,min=3"`
|
||||
Name *string `json:"name,omitempty" validate:"omitempty,min=3,max=50"`
|
||||
Alias *string `json:"alias,omitempty" validate:"omitempty,max=5"`
|
||||
Pic *string `json:"pic,omitempty" validate:"omitempty"`
|
||||
Type *string `json:"type,omitempty" validate:"omitempty"`
|
||||
Category *string `json:"category,omitempty" validate:"omitempty"`
|
||||
Hatchery *string `json:"hatchery,omitempty" validate:"omitempty"`
|
||||
Pic *string `json:"pic,omitempty" validate:"omitempty,max=50"`
|
||||
Type *string `json:"type,omitempty" validate:"omitempty,max=50"`
|
||||
Category *string `json:"category,omitempty" validate:"omitempty,max=20"`
|
||||
Hatchery *string `json:"hatchery,omitempty" validate:"omitempty,max=50"`
|
||||
Phone *string `json:"phone,omitempty" validate:"omitempty,max=20"`
|
||||
Email *string `json:"email,omitempty" validate:"omitempty,email"`
|
||||
Email *string `json:"email,omitempty" validate:"omitempty,email,max=50"`
|
||||
Address *string `json:"address,omitempty" validate:"omitempty"`
|
||||
Npwp *string `json:"npwp,omitempty" validate:"omitempty,max=50"`
|
||||
AccountNumber *string `json:"account_number,omitempty" validate:"omitempty,max=50"`
|
||||
|
||||
Reference in New Issue
Block a user