Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
im-microservice
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Li Feifei
im-microservice
Commits
1528762b
Commit
1528762b
authored
Jul 08, 2020
by
Li Feifei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update im_user proto file
parent
dbd843ee
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
im_user.pb.go
pb/im_user.pb.go
+0
-0
im_user.validator.pb.go
pb/im_user.validator.pb.go
+5
-14
No files found.
pb/im_user.pb.go
View file @
1528762b
This diff is collapsed.
Click to expand it.
pb/im_user.validator.pb.go
View file @
1528762b
...
...
@@ -5,10 +5,10 @@ package pb
import
(
fmt
"fmt"
math
"math"
proto
"github.com/golang/protobuf/proto"
_
"github.com/mwitkow/go-proto-validators"
github_com_mwitkow_go_proto_validators
"github.com/mwitkow/go-proto-validators"
math
"math"
)
// Reference imports to suppress errors if they are not otherwise used.
...
...
@@ -22,24 +22,15 @@ func (this *ImUserRequest) Validate() error {
return
github_com_mwitkow_go_proto_validators
.
FieldError
(
"Common"
,
err
)
}
}
if
this
.
Mobile
==
""
{
return
github_com_mwitkow_go_proto_validators
.
FieldError
(
"Mobile"
,
fmt
.
Errorf
(
`value '%v' must not be an empty string`
,
this
.
Mobile
))
}
if
!
(
len
(
this
.
Mobile
)
==
11
)
{
return
github_com_mwitkow_go_proto_validators
.
FieldError
(
"Mobile"
,
fmt
.
Errorf
(
`value '%v' must have a length equal to '11'`
,
this
.
Mobile
))
}
if
this
.
Code
==
""
{
return
github_com_mwitkow_go_proto_validators
.
FieldError
(
"Code"
,
fmt
.
Errorf
(
`value '%v' must not be an empty string`
,
this
.
Code
))
}
if
this
.
Platform
==
""
{
return
github_com_mwitkow_go_proto_validators
.
FieldError
(
"Platform"
,
fmt
.
Errorf
(
`value '%v' must not be an empty string`
,
this
.
Platform
))
if
this
.
Accid
==
""
{
return
github_com_mwitkow_go_proto_validators
.
FieldError
(
"Accid"
,
fmt
.
Errorf
(
`value '%v' must not be an empty string`
,
this
.
Accid
))
}
return
nil
}
func
(
this
*
ImUserReply
)
Validate
()
error
{
func
(
this
*
ImUserRe
gRe
ply
)
Validate
()
error
{
return
nil
}
func
(
this
*
ImUser
Out
Request
)
Validate
()
error
{
func
(
this
*
ImUser
Login
Request
)
Validate
()
error
{
if
this
.
Common
!=
nil
{
if
err
:=
github_com_mwitkow_go_proto_validators
.
CallValidatorIfExists
(
this
.
Common
);
err
!=
nil
{
return
github_com_mwitkow_go_proto_validators
.
FieldError
(
"Common"
,
err
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment