Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rym-util
Project
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
zhengqiuyun
rym-util
Commits
3eb2feea
Commit
3eb2feea
authored
Dec 21, 2022
by
zhengqiuyun86
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
网络通过
parent
c83adf11
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
State.go
getWay/State.go
+3
-0
No files found.
getWay/State.go
View file @
3eb2feea
...
@@ -7,6 +7,7 @@ const (
...
@@ -7,6 +7,7 @@ const (
BusinessError
State
=
1001
BusinessError
State
=
1001
OK
State
=
1000
OK
State
=
1000
Illegal
State
=
9000
Illegal
State
=
9000
LoginFailure
State
=
-
1
)
)
func
(
t
State
)
String
()
string
{
func
(
t
State
)
String
()
string
{
...
@@ -17,6 +18,8 @@ func (t State) String() string {
...
@@ -17,6 +18,8 @@ func (t State) String() string {
return
"OK"
return
"OK"
case
Illegal
:
case
Illegal
:
return
"非法请求"
return
"非法请求"
case
LoginFailure
:
return
"登陆失效"
default
:
default
:
return
"unknown"
return
"unknown"
}
}
...
...
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