adminSystemUser - TimYi/FengHuang GitHub Wiki

请求URL

http://www.ifhzj.com/api/admin/systemUser

字段说明

字段分为显示和保存两部分。
保存字段会有一些关联实体的id,显示字段会把一些关联实体的内容扁平化显示。

显示字段

id:id
username:用户名
realName:真实姓名
verified:是否通过认证(是否启用)
【注:password也会返回,但返回的是加密后的密文,忽略此字段即可】

传参字段

id:id
username:用户名
password:密码【注:不传或者传空值不会修改已有密码】
realName:真实姓名
verified:是否通过认证(是否启用)

返回示例

{
"result": {
    "totalCount": 8,
    "totalPages": 1,
    "page": 1,
    "size": 8,
    "result": [
        {
            "createTime": "2015-08-06 09:43:41",
            "updateTime": "2015-08-13 09:43:47",
            "id": "0",
            "username": "admin",
            "password": "$2a$10$j03HfzuC3DHHQfxF0Qq9Auc68VkDUhvKg2z0mdYscAAV0wLCnDvRK",
            "realname": null,
            "verified": true
        },
        {
            "createTime": "2015-08-04 09:44:44",
            "updateTime": "2015-08-27 09:44:49",
            "id": "1",
            "username": "admin2",
            "password": "$2a$10$j03HfzuC3DHHQfxF0Qq9Auc68VkDUhvKg2z0mdYscAAV0wLCnDvRK",
            "realname": null,
            "verified": true
        },
        {
            "createTime": "2015-08-05 09:45:06",
            "updateTime": "2015-08-20 09:45:10",
            "id": "2",
            "username": "admin3",
            "password": "$2a$10$j03HfzuC3DHHQfxF0Qq9Auc68VkDUhvKg2z0mdYscAAV0wLCnDvRK",
            "realname": null,
            "verified": true
        },
        {
            "createTime": "2015-08-06 09:45:22",
            "updateTime": "2015-08-23 09:45:26",
            "id": "3",
            "username": "admin4",
            "password": "$2a$10$j03HfzuC3DHHQfxF0Qq9Auc68VkDUhvKg2z0mdYscAAV0wLCnDvRK",
            "realname": null,
            "verified": true
        },
        {
            "createTime": "2015-08-06 09:45:41",
            "updateTime": "2015-08-13 09:45:45",
            "id": "4",
            "username": "admin5",
            "password": "$2a$10$j03HfzuC3DHHQfxF0Qq9Auc68VkDUhvKg2z0mdYscAAV0wLCnDvRK",
            "realname": null,
            "verified": true
        },
        {
            "createTime": "2015-08-13 09:45:56",
            "updateTime": "2015-08-20 09:46:01",
            "id": "5",
            "username": "admin6",
            "password": "$2a$10$j03HfzuC3DHHQfxF0Qq9Auc68VkDUhvKg2z0mdYscAAV0wLCnDvRK",
            "realname": null,
            "verified": true
        },
        {
            "createTime": "2015-08-07 19:25:35",
            "updateTime": "2015-08-21 19:25:39",
            "id": "6",
            "username": "test-admin",
            "password": "$2a$10$j03HfzuC3DHHQfxF0Qq9Auc68VkDUhvKg2z0mdYscAAV0wLCnDvRK",
            "realname": null,
            "verified": true
        },
        {
            "createTime": "2015-08-14 20:29:21",
            "updateTime": "2015-08-15 20:29:27",
            "id": "7",
            "username": "xinhaitao",
            "password": "$2a$10$j03HfzuC3DHHQfxF0Qq9Auc68VkDUhvKg2z0mdYscAAV0wLCnDvRK",
            "realname": null,
            "verified": true
        }
    ]
},
"status": "OK"
}