文档
测试

账户创建

POST
/qgy/admin/sub/add

接口描述

新增子账户信息

请求参数

参数名
类型
描述
必填
subName
String
账户名
必填
subAccount
String
账号
必填
subPassword
String
密码
必填
state
Integer
状态 指定值: 0-停用 1-启用 (默认:1)
可选
roleId
Integer
所属角色
必填
timeLimit
Integer
是否有限期 指定值:0-无限期 1-有限期 (默认:0)
必填
dueTime
Date
到期时间 (注意:如果timeLimit为1,则此参数必传)
必填
subid
String
当前账户id
必填

返回示例

``` { "result": 1, "msg": "successful operation!", "code": "QG_SUS1000", "data": { "subId":"000000000000", "subName":"张三", "subAccount":"zhangsan", "subPassword":"123456789", "type":0, "timeLimit":0, "dueTime":null, "state": 1, "roleId":1, "areaId": "0000000000000000000", "createTime":"2020-04-20T07:10:30+0000" } } ```