Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-operation-api
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-operation-api
Commits
28aad3bf
Commit
28aad3bf
authored
Jul 05, 2023
by
黄智
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户详情返回
parent
4e7c0e79
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
124 additions
and
0 deletions
+124
-0
src/pkg/beagle/constant/constant.go
src/pkg/beagle/constant/constant.go
+124
-0
No files found.
src/pkg/beagle/constant/constant.go
0 → 100644
View file @
28aad3bf
package
constant
// 用户类型
type
UserType
=
int
const
(
LoginURL
string
=
"login"
//账号密码登录路由
PhoneLoginURL
string
=
"phone/login"
//手机号登录路由
)
const
(
YWXTZH
UserType
=
iota
+
1
// 业务系统账号
ZZGLY
// 组织管理员
PTYH
// 平台用户
CJGLY
// 超级管理员
)
var
UserTypeStrMap
=
map
[
UserType
]
string
{
YWXTZH
:
"业务系统账号"
,
ZZGLY
:
"组织管理员"
,
PTYH
:
"平台用户"
,
CJGLY
:
"超级管理员"
,
}
// 操作状态
type
operateStatus
=
int
const
(
Success
operateStatus
=
iota
+
1
Fail
)
var
OperateStatusStrMap
=
map
[
operateStatus
]
string
{
Success
:
"成功"
,
Fail
:
"失败"
,
}
type
HttpMethod
=
int
const
(
GET
=
iota
+
1
POST
HEAD
PUT
DELETE
CONNECT
OPTIONS
TRACE
)
var
HttpMethodMap
=
map
[
string
]
HttpMethod
{
"GET"
:
GET
,
"POST"
:
POST
,
"HEAD"
:
HEAD
,
"PUT"
:
PUT
,
"DELETE"
:
DELETE
,
"CONNECT"
:
CONNECT
,
"OPTIONS"
:
OPTIONS
,
"TRACE"
:
TRACE
,
}
var
HttpMethodStrMap
=
map
[
HttpMethod
]
string
{
GET
:
"GET"
,
POST
:
"POST"
,
HEAD
:
"HEAD"
,
PUT
:
"PUT"
,
DELETE
:
"DELETE"
,
CONNECT
:
"CONNECT"
,
OPTIONS
:
"OPTIONS"
,
TRACE
:
"TRACE"
,
}
type
OpType
=
string
const
(
Add
=
OpType
(
"新增"
)
Edit
=
OpType
(
"编辑"
)
Find
=
OpType
(
"查看"
)
Delete
=
OpType
(
"删除"
)
AllDelete
=
OpType
(
"批量删除"
)
ResetPwd
=
OpType
(
"重置密码"
)
UpdatePwd
=
OpType
(
"修改密码"
)
ForceUpdatePwd
=
OpType
(
"强制修改密码"
)
Login
=
OpType
(
"登入"
)
Logout
=
OpType
(
"登出"
)
AssignUser
=
OpType
(
"分配用户"
)
UpMove
=
OpType
(
"上移"
)
DownMove
=
OpType
(
"下移"
)
Export
=
OpType
(
"导出"
)
)
var
OpTypeMap
=
map
[
int
]
OpType
{
1
:
Add
,
2
:
Edit
,
3
:
Find
,
4
:
Delete
,
5
:
AllDelete
,
6
:
ResetPwd
,
7
:
UpdatePwd
,
8
:
ForceUpdatePwd
,
9
:
Login
,
10
:
Logout
,
11
:
AssignUser
,
12
:
UpMove
,
13
:
DownMove
,
14
:
Export
,
}
var
OpTypeIntMap
=
map
[
OpType
]
int
{
Add
:
1
,
Edit
:
2
,
Find
:
3
,
Delete
:
4
,
AllDelete
:
5
,
ResetPwd
:
6
,
UpdatePwd
:
7
,
ForceUpdatePwd
:
8
,
Login
:
9
,
Logout
:
10
,
AssignUser
:
11
,
UpMove
:
12
,
DownMove
:
13
,
Export
:
14
,
}
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