letter
, number
, _
, -
, @
. The length is in the range of [3, 30]. The regular expression is ^[0-9a-zA-Z_@\-\.]{3,30}$
password_encrypted
: Encrypted password;admin
123456
SHA256:6848d6405bf34bf9b2d82ed8822c756807632d3eaefedec90ac33cb32ac83671
Note: The password stored in the database has been encrypted again by the background.
{
"id": "string",
"gid": "string",
"name": "string",
"idcard": "string",
"validity_time": 0,
"position": "string",
"phone": "string",
"email": "string",
"desc": "string",
"roles": [
"string"
],
"password_encrypted": "string"
}
curl --location --request POST 'https://192.168.88.11:9781/bvcsp/v1/user/create' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "string",
"gid": "string",
"name": "string",
"idcard": "string",
"validity_time": 0,
"position": "string",
"phone": "string",
"email": "string",
"desc": "string",
"roles": [
"string"
],
"password_encrypted": "string"
}'
{
"code": 0,
"msg": "string",
"data": {
"id": "string",
"enable": true,
"gid": "string",
"name": "string",
"idcard": "string",
"creator": "string",
"validity_time": 0,
"position": "string",
"phone": "string",
"email": "string",
"desc": "string",
"roles": [
"string"
]
}
}