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
3aca4cf7
Commit
3aca4cf7
authored
Jul 06, 2020
by
Li Feifei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
01abd86e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
im_friend_req.pb.go
pb/im_friend_req.pb.go
+1
-1
im_friend_req.validator.pb.go
pb/im_friend_req.validator.pb.go
+3
-0
im_friend_req.proto
u-proto/im_friend_req.proto
+1
-1
No files found.
pb/im_friend_req.pb.go
View file @
3aca4cf7
...
...
@@ -393,7 +393,7 @@ var file_u_proto_im_friend_req_proto_rawDesc = []byte{
0x0a
,
0x06
,
0x43
,
0x6f
,
0x6d
,
0x6d
,
0x6f
,
0x6e
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x0b
,
0x32
,
0x0a
,
0x2e
,
0x70
,
0x62
,
0x2e
,
0x43
,
0x6f
,
0x6d
,
0x6d
,
0x6f
,
0x6e
,
0x52
,
0x06
,
0x43
,
0x6f
,
0x6d
,
0x6d
,
0x6f
,
0x6e
,
0x12
,
0x16
,
0x0a
,
0x02
,
0x49
,
0x64
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x03
,
0x42
,
0x06
,
0xe2
,
0xdf
,
0x1f
,
0x02
,
0x
58
,
0x01
,
0x52
,
0x02
,
0x49
,
0x64
,
0x12
,
0x20
,
0x0a
,
0x06
,
0x53
,
0x74
,
0xe2
,
0xdf
,
0x1f
,
0x02
,
0x
10
,
0x00
,
0x52
,
0x02
,
0x49
,
0x64
,
0x12
,
0x20
,
0x0a
,
0x06
,
0x53
,
0x74
,
0x61
,
0x74
,
0x75
,
0x73
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x03
,
0x42
,
0x08
,
0xe2
,
0xdf
,
0x1f
,
0x04
,
0x10
,
0x00
,
0x18
,
0x03
,
0x52
,
0x06
,
0x53
,
0x74
,
0x61
,
0x74
,
0x75
,
0x73
,
0x22
,
0x53
,
0x0a
,
0x0f
,
0x49
,
0x6d
,
0x46
,
0x72
,
0x69
,
0x65
,
0x6e
,
0x64
,
0x4c
,
0x69
,
0x73
,
0x74
,
0x52
,
0x65
,
0x71
,
0x12
,
...
...
pb/im_friend_req.validator.pb.go
View file @
3aca4cf7
...
...
@@ -39,6 +39,9 @@ func (this *ImFriendUpdateReq) Validate() error {
return
github_com_mwitkow_go_proto_validators
.
FieldError
(
"Common"
,
err
)
}
}
if
!
(
this
.
Id
>
0
)
{
return
github_com_mwitkow_go_proto_validators
.
FieldError
(
"Id"
,
fmt
.
Errorf
(
`value '%v' must be greater than '0'`
,
this
.
Id
))
}
if
!
(
this
.
Status
>
0
)
{
return
github_com_mwitkow_go_proto_validators
.
FieldError
(
"Status"
,
fmt
.
Errorf
(
`value '%v' must be greater than '0'`
,
this
.
Status
))
}
...
...
u-proto/im_friend_req.proto
View file @
3aca4cf7
...
...
@@ -18,7 +18,7 @@ message ImFriendEmptyReply {}
// 更改添加好友状态
message
ImFriendUpdateReq
{
Common
Common
=
1
;
int64
Id
=
2
[(
validator.field
)
=
{
string_not_empty
:
true
}];
int64
Id
=
2
[(
validator.field
)
=
{
int_gt
:
0
}];
int64
Status
=
3
[(
validator.field
)
=
{
int_gt
:
0
,
int_lt
:
3
}];
}
...
...
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