Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
64381198
Commit
64381198
authored
Dec 03, 2019
by
王昆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gsb
parent
01fe32f6
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
95 additions
and
2 deletions
+95
-2
xgg-admin/app/base/controller/impl/uc/userCtl.js
+4
-0
xgg-admin/app/front/entry/public/apidoc/README.md
+1
-1
xgg-admin/app/front/entry/public/apidoc/uc/login.md
+1
-1
xgg-admin/app/front/entry/public/apidoc/uc/user.md
+1
-0
xgg-admin/app/front/entry/public/apidoc/user/login.md
+88
-0
No files found.
xgg-admin/app/base/controller/impl/uc/userCtl.js
View file @
64381198
...
...
@@ -142,6 +142,10 @@ class UserCtl extends CtlBase {
}
}
async
currentUser
(
qobj
,
pobj
,
req
)
{
return
system
.
getResultSuccess
(
req
.
loginUser
);
}
/**
* 启用禁用
* @param {*} params
...
...
xgg-admin/app/front/entry/public/apidoc/README.md
View file @
64381198
...
...
@@ -18,7 +18,7 @@
5
[
开票内容
](
/doc/common/invoicecontent.md
)
## 登录相关
1
[
登录接口
](
/doc/user/
user
.md
)
1
[
登录接口
](
/doc/user/
login
.md
)
## 用户中心
1
[
租户saas
](
/doc/uc/saas.md
)
...
...
xgg-admin/app/front/entry/public/apidoc/u
ser/user
.md
→
xgg-admin/app/front/entry/public/apidoc/u
c/login
.md
View file @
64381198
<a
name=
"menu"
>
目录
</a>
1.
[
短信验证码
](
#smsCode
)
1.
[
登录
](
#login
)
1.
[
当前用户信息查询
](
#
login
User
)
1.
[
当前用户信息查询
](
#
current
User
)
1.
[
获取菜单
](
#getMenu
)
...
...
xgg-admin/app/front/entry/public/apidoc/uc/user.md
View file @
64381198
...
...
@@ -52,6 +52,7 @@
```
## **<a name="upd"> 更新</a>**
[
返回到目录
](
#menu
)
##### URL
...
...
xgg-admin/app/front/entry/public/apidoc/user/login.md
0 → 100755
View file @
64381198
<a
name=
"menu"
>
目录
</a>
1.
[
登录
](
#login
)
1.
[
当前用户信息查询
](
#currentUser
)
1.
[
获取菜单
](
#getMenu
)
## **<a name="login"> 登录</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/uc/userCtl/login
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
| 参数 | 必选 | 类型 | 说明|
| -------- | -------- | ------------|---------|
|
**loginName**
| 是 | String | 登录名|
|
**password**
| 是 | String | 密码 |
|
**captchaKey**
| 是 | String | 图片验证码key |
|
**captchaCode**
| 是 | String | 图片验证码填入值 |
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
"data"
:
{
"xggadminsid"
:
"3cb49932-fa02-44f0-90db-9f06fe02e5c7"
// 登录key
}
}
```
## **<a name="currentUser"> 当前用户信息查询</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/uc/userCtl/currentUser
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 返回结果
```
javascript
{
"status"
:
0
,
"msg"
:
"success"
,
}
```
## **<a name="getMenu"> 获取菜单</a>**
[
返回到目录
](
#menu
)
##### URL
[
/web/uc/userCtl/getMenu
]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 返回结果
```
javascript
[
{
"name"
:
"首页"
,
"path"
:
"/"
,
"submenu"
:
[]
},
{
"name"
:
"商户中心"
,
"path"
:
"/merchants"
,
"submenu"
:
[
{
"name"
:
"客户管理"
,
"team"
:
[
{
"name"
:
"商户信息"
,
"path"
:
"/merchants/businessInformation"
},
...
]
}
]
},
...
]
```
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