文档
测试

新建用户

GET
/api/v1/user/create

接口描述

新建用户接口

请求参数

参数名
类型
描述
必填
pid
int
上级ID,通过 获取员工数组 接口获取可用选项
必填
username
string
用户名
必填
password
string
密码
必填
email
string
邮箱
必填
mobile
string
手机号
必填
ip
string
登录IP,为空则不限制IP
可选
topup
float
充值费率
必填
topup_type
int
充值费率类型(1:每笔,2:费率)
必填
pay
float
代付费率
必填
pay_type
int
代付费率类型(1:每笔,2:费率)
必填
role
int
用户类型
必填

说明 / 示例

用户名正则: ``` /^[a-zA-Z]{1}[a-zA-Z\d]{3,20}$/ ``` 密码验证正则: ``` /^(?!^[\d]+$)(?!^[a-zA-Z]+$)[a-zA-Z\d]{6,20}$/ ```