文档
测试
POST
http://localhost:3000/Auth/login

接口描述

登录后台系统

请求头

参数名
类型
描述
必填
code
string
示例:识别码
必填

请求参数

参数名
类型
描述
必填
password
string
登录密码
必填
name
string
登录账号
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
data
object
数据字典
必填
token
string
token 示例:PP42BN5N0V
必填
uid
int
用户id 示例:1
必填
oid
int
示例:18
必填
ocode
string
示例:kuandian
必填
menu
array
数据列表
必填
id
int
id 示例:1
必填
pid
int
父id 示例:0
必填
title
string
规则中文名称 示例:订单管理
必填
icon
string
图标 示例:
必填
index
string
索引 示例:/1
必填
children
array
数据列表
必填
id
int
id 示例:12
必填
pid
int
父id 示例:1
必填
title
string
规则中文名称 示例:密码线订单
必填
icon
string
图标 示例:
必填
index
string
索引 示例:/order/wiredList
必填
permissions
array
数据列表
必填
msg
string
示例:登录成功
必填

说明 / 示例

{ "code": 1, "data": { "token": "PP42BN5N0V", "uid": 1, "oid": 18, "ocode": "kuandian", "menu": [{ "id": 1, "pid": 0, "title": "订单管理", "icon": "", "index": "\/1", "children": [{ "id": 12, "pid": 1, "title": "密码线订单", "icon": "", "index": "\/order\/wiredList" }] }, { "id": 2, "pid": 0, "title": "设备管理", "icon": "", "index": "\/2", "children": [{ "id": 23, "pid": 2, "title": "线充管理", "icon": "", "index": "\/wired\/index" }] }, { "id": 3, "pid": 0, "title": "财务管理", "icon": "", "index": "\/3", "children": [{ "id": 39, "pid": 3, "title": "资金流水记录", "icon": "", "index": "\/finance\/tradeLog" }, { "id": 41, "pid": 3, "title": "提现管理", "icon": "", "index": "\/finance\/withdrawalList" }, { "id": 42, "pid": 3, "title": "代理商账户", "icon": "", "index": "\/finance\/agency" }, { "id": 43, "pid": 3, "title": "订单分成记录", "icon": "", "index": "\/order\/brokerage" }] }, { "id": 4, "pid": 0, "title": "用户管理", "icon": "", "index": "\/4", "children": [{ "id": 45, "pid": 4, "title": "商户管理", "icon": "", "index": "\/seller\/index" }, { "id": 46, "pid": 4, "title": "用户管理", "icon": "", "index": "\/customer\/index" }, { "id": 47, "pid": 4, "title": "系统角色", "icon": "", "index": "\/admin\/groupList" }, { "id": 48, "pid": 4, "title": "系统管理员", "icon": "", "index": "\/admin\/userList" }] }, { "id": 5, "pid": 0, "title": "代理管理", "icon": "", "index": "\/5", "children": [{ "id": 64, "pid": 5, "title": "代理商", "icon": "", "index": "\/agency\/agencyList" }, { "id": 65, "pid": 5, "title": "业务员", "icon": "", "index": "\/agency\/employeeList" }, { "id": 66, "pid": 5, "title": "店铺管理员", "icon": "", "index": "\/agency\/sellerList" }] }, { "id": 102, "pid": 0, "title": "数据统计", "icon": "", "index": "\/102", "children": [{ "id": 103, "pid": 102, "title": "平台数据", "icon": "", "index": "\/stat\/index" }] }, { "id": 90, "pid": 0, "title": "系统设置", "icon": "", "index": "\/90", "children": [{ "id": 91, "pid": 90, "title": "基本设置", "icon": "", "index": "\/set\/index" }, { "id": 92, "pid": 90, "title": "小程序设置", "icon": "", "index": "\/set\/app" }, { "id": 93, "pid": 90, "title": "短信设置", "icon": "", "index": "\/set\/sms" }, { "id": 94, "pid": 90, "title": "帮助中心", "icon": "", "index": "\/faq\/index" }, { "id": 99, "pid": 90, "title": "用户反馈", "icon": "", "index": "\/feedback\/index" }, { "id": 95, "pid": 90, "title": "操作日志", "icon": "", "index": "\/set\/log" }] }], "permissions": ["\/set\/index", "\/set\/info", "\/set\/save", "\/stat\/index", "\/set\/app", "\/wired\/index", "\/set\/sms", "\/faq\/index", "\/feedback\/index", "\/feedback\/detail", "\/order\/wiredList", "\/seller\/listDialog", "\/order\/detail", "\/agency\/agencyDialog", "\/set\/log", "\/finance\/tradeLog", "\/finance\/withdrawalList", "\/finance\/agency", "\/order\/brokerage", "\/seller\/index", "\/seller\/detail", "\/seller\/employeeList", "\/customer\/index", "\/admin\/groupList", "\/admin\/userList", "\/agency\/agencyList", "\/agency\/employeeList", "\/agency\/sellerList", "\/screenadv\/defaultImg", "\/screenadv\/viewDefault", "\/screenadv\/defaultSet", "\/order\/batteryList", "\/order\/activeList", "\/order\/loseList", "\/order\/creditList", "\/order\/authList", "\/order\/modifyBattery", "\/order\/endBattery", "\/order\/endDialog", "\/order\/modifyActive", "\/order\/endActive", "\/order\/cancelOrder", "\/order\/overdue", "\/order\/authPay", "\/equipment\/index", "\/equipment\/detail", "\/equipment\/qrcode", "\/equipment\/add", "\/equipment\/agencyBind", "\/wired\/execlAdd", "\/wired\/edit", "\/wired\/agencyBind", "\/wired\/reset", "\/wired\/delete", "\/finance\/withdrawalAudit", "\/finance\/withdrawalDetail", "\/seller\/add", "\/seller\/fileUpload", "\/seller\/edit", "\/seller\/delete", "\/seller\/trend", "\/customer\/detail", "\/customer\/redeposit", "\/customer\/rebalance", "\/admin\/groupAdd", "\/admin\/groupEdit", "\/admin\/groupDetail", "\/admin\/groupDelete", "\/admin\/groupRule", "\/admin\/userAdd", "\/admin\/userEdit", "\/admin\/userDetail", "\/admin\/userDelete", "\/admin\/userRule", "\/agency\/agencyAdd", "\/agency\/agencyEdit", "\/agency\/agencyDelete", "\/stat\/agency", "\/agency\/employeeAdd", "\/agency\/employeeEdit", "\/agency\/employeeDelete", "\/stat\/employee", "\/agency\/sellerAdd", "\/agency\/sellerEdit", "\/agency\/sellerDelete", "\/screenadv\/materialList", "\/screenadv\/viewMaterial", "\/screenadv\/groupList", "\/screenadv\/planList", "\/screenadv\/addMaterial", "\/screenadv\/fileUpload", "\/screenadv\/deleteMaterial", "\/screenadv\/addGroup", "\/screenadv\/materialDialog", "\/screenadv\/editGroup", "\/screenadv\/groupDetail", "\/screenadv\/deleteGroup", "\/screenadv\/addPlan", "\/screenadv\/size", "\/screenadv\/addSize", "\/screenadv\/groupDialog", "\/screenadv\/equipmentDialog", "\/screenadv\/deviceDialog", "\/screenadv\/editPlan", "\/screenadv\/planDetail", "\/screenadv\/deletePlan", "\/faq\/add", "\/faq\/edit", "\/faq\/detail", "\/faq\/delete", "\/feedback\/process", "\/order\/modifyLose"] }, "msg": "登录成功" }