Skip to content

用户管理

添加用户

接口地址:/api/user/addUser

language
content-type:application/json
method:post

传入参数

属性类型默认值必填说明
codestringiot管理平台中获取到的code值
userNamestring用户名
passwordstring密码
emailstringemail
telephonestring用户电话
enjoyPackageinteger1是否享受上级套餐 0 :不享受 1:享受
merchantNamestring渠道商名称
devicePackageinteger管控单台设备套餐 0开启 1关闭
supportPhonestring在IOT设置界面显示售后电话
discountPricestring无忧版优惠价格
weComstring企业微信

请求示例

language
{
	"code":"",
	"userName":"",
	"password":"",
	"email":"",
	"telephone":"",
	"enjoyPackage":1,
	"merchantName":"",
	"devicePackage":0,
	"supportPhone":"",
	"discountPrice":"",
	"weCom":""
}

返回值

属性类型说明
codeint返回状态码
msgstring返回消息
dataobject返回的数据