正在显示
7 个修改的文件
包含
7 行增加
和
7 行删除
@@ -14,7 +14,7 @@ type ConvertCompanyStatusCommand struct { | @@ -14,7 +14,7 @@ type ConvertCompanyStatusCommand struct { | ||
14 | } | 14 | } |
15 | 15 | ||
16 | func (convertCompanyStatusCommand *ConvertCompanyStatusCommand) Valid(validation *validation.Validation) { | 16 | func (convertCompanyStatusCommand *ConvertCompanyStatusCommand) Valid(validation *validation.Validation) { |
17 | - _ = validation.SetError("CustomValid", "未实现的自定义认证") | 17 | + // _ = validation.SetError("CustomValid", "未实现的自定义认证") |
18 | } | 18 | } |
19 | 19 | ||
20 | func (convertCompanyStatusCommand *ConvertCompanyStatusCommand) ValidateCommand() error { | 20 | func (convertCompanyStatusCommand *ConvertCompanyStatusCommand) ValidateCommand() error { |
@@ -22,7 +22,7 @@ type CreateCompanyCommand struct { | @@ -22,7 +22,7 @@ type CreateCompanyCommand struct { | ||
22 | } | 22 | } |
23 | 23 | ||
24 | func (createCompanyCommand *CreateCompanyCommand) Valid(validation *validation.Validation) { | 24 | func (createCompanyCommand *CreateCompanyCommand) Valid(validation *validation.Validation) { |
25 | - _ = validation.SetError("CustomValid", "未实现的自定义认证") | 25 | + // _ = validation.SetError("CustomValid", "未实现的自定义认证") |
26 | } | 26 | } |
27 | 27 | ||
28 | func (createCompanyCommand *CreateCompanyCommand) ValidateCommand() error { | 28 | func (createCompanyCommand *CreateCompanyCommand) ValidateCommand() error { |
@@ -12,7 +12,7 @@ type RemoveCompanyCommand struct { | @@ -12,7 +12,7 @@ type RemoveCompanyCommand struct { | ||
12 | } | 12 | } |
13 | 13 | ||
14 | func (removeCompanyCommand *RemoveCompanyCommand) Valid(validation *validation.Validation) { | 14 | func (removeCompanyCommand *RemoveCompanyCommand) Valid(validation *validation.Validation) { |
15 | - _ = validation.SetError("CustomValid", "未实现的自定义认证") | 15 | + // _ = validation.SetError("CustomValid", "未实现的自定义认证") |
16 | } | 16 | } |
17 | 17 | ||
18 | func (removeCompanyCommand *RemoveCompanyCommand) ValidateCommand() error { | 18 | func (removeCompanyCommand *RemoveCompanyCommand) ValidateCommand() error { |
@@ -16,7 +16,7 @@ type SetCompanyAdminCommand struct { | @@ -16,7 +16,7 @@ type SetCompanyAdminCommand struct { | ||
16 | } | 16 | } |
17 | 17 | ||
18 | func (setCompanyAdminCommand *SetCompanyAdminCommand) Valid(validation *validation.Validation) { | 18 | func (setCompanyAdminCommand *SetCompanyAdminCommand) Valid(validation *validation.Validation) { |
19 | - _ = validation.SetError("CustomValid", "未实现的自定义认证") | 19 | + // _ = validation.SetError("CustomValid", "未实现的自定义认证") |
20 | } | 20 | } |
21 | 21 | ||
22 | func (setCompanyAdminCommand *SetCompanyAdminCommand) ValidateCommand() error { | 22 | func (setCompanyAdminCommand *SetCompanyAdminCommand) ValidateCommand() error { |
@@ -24,7 +24,7 @@ type UpdateCompanyCommand struct { | @@ -24,7 +24,7 @@ type UpdateCompanyCommand struct { | ||
24 | } | 24 | } |
25 | 25 | ||
26 | func (updateCompanyCommand *UpdateCompanyCommand) Valid(validation *validation.Validation) { | 26 | func (updateCompanyCommand *UpdateCompanyCommand) Valid(validation *validation.Validation) { |
27 | - _ = validation.SetError("CustomValid", "未实现的自定义认证") | 27 | + // _ = validation.SetError("CustomValid", "未实现的自定义认证") |
28 | } | 28 | } |
29 | 29 | ||
30 | func (updateCompanyCommand *UpdateCompanyCommand) ValidateCommand() error { | 30 | func (updateCompanyCommand *UpdateCompanyCommand) ValidateCommand() error { |
@@ -12,7 +12,7 @@ type GetCompanyQuery struct { | @@ -12,7 +12,7 @@ type GetCompanyQuery struct { | ||
12 | } | 12 | } |
13 | 13 | ||
14 | func (getCompanyQuery *GetCompanyQuery) Valid(validation *validation.Validation) { | 14 | func (getCompanyQuery *GetCompanyQuery) Valid(validation *validation.Validation) { |
15 | - _ = validation.SetError("CustomValid", "未实现的自定义认证") | 15 | + // _ = validation.SetError("CustomValid", "未实现的自定义认证") |
16 | } | 16 | } |
17 | 17 | ||
18 | func (getCompanyQuery *GetCompanyQuery) ValidateQuery() error { | 18 | func (getCompanyQuery *GetCompanyQuery) ValidateQuery() error { |
@@ -14,7 +14,7 @@ type ListCompanyQuery struct { | @@ -14,7 +14,7 @@ type ListCompanyQuery struct { | ||
14 | } | 14 | } |
15 | 15 | ||
16 | func (listCompanyQuery *ListCompanyQuery) Valid(validation *validation.Validation) { | 16 | func (listCompanyQuery *ListCompanyQuery) Valid(validation *validation.Validation) { |
17 | - _ = validation.SetError("CustomValid", "未实现的自定义认证") | 17 | + // _ = validation.SetError("CustomValid", "未实现的自定义认证") |
18 | } | 18 | } |
19 | 19 | ||
20 | func (listCompanyQuery *ListCompanyQuery) ValidateQuery() error { | 20 | func (listCompanyQuery *ListCompanyQuery) ValidateQuery() error { |
-
请 注册 或 登录 后发表评论