- 数据
- 栏目列表_ChannelListGET
- 栏目对象_ChannelGET
- 栏目对象ByAlias_ChannelGET
- 文章列表_ArticleListGET
- 文章分页_ArticlePageGET
- 文章对象_ArticleGET
- 上一篇文章_ArticlePrevGET
- 下一篇文章_ArticleNextGET
- 全文检索文章分页_EsArticlePageGET
- 全文检索文章列表_EsArticleListGET
- 区块项列表_BlockItemListGET
- 字典列表_DictListGET
- 模型列表_ModelListGET
- 模型对象_ModelGET
- Tag列表_TagListGET
- Tag分页_TagPageGET
- 获取Tag对象GET
- 表单列表_FormListGET
- 表单分页_FormPageGET
- 获取表单对象GET
- 站点列表_SiteListGET
- 站点对象_SiteGET
- 投票列表_VoteListGET
- 投票分页_VotePageGET
- 投票对象_VoteGET
- 留言列表_MessageBoardListGET
- 留言分页_MessageBoardPageGET
- 获取留言对象GET
- 留言类型列表_MessageBoardTypeListGET
- 调查问卷列表_SurveyListGET
- 调查问卷分页_SurveyPageGET
- 调查问卷对象_SurveyGET
- 文章排行榜列表_LeaderBoardListGET
- 文章排行榜分页_LeaderBoardPageGET
- 内容
- 用户
- 系统
- 其它
用户注册
POST
/api/register
注册接口
请求参数
Body 参数application/json
注册参数
id
integer <int64>
用户ID
groupId
integer <int64>
用户组ID
orgId
integer <int64>
组织ID
username
string
用户名
email
string
电子邮箱
mobile
string
手机号码
alias
string
博客地址
nickname
string
昵称
realName
string
真实姓名
gender
integer <int32>
必需
avatar
string
头像URL
passwordModified
string <date-time>
密码修改时间
rank
integer <int32>
等级
type
integer <int32>
必需
status
integer <int32>
必需
group
object (Group)
用户组实体类
id
integer <int64>
用户组ID
name
string
名称
description
string
描述
allAccessPermission
boolean
全部浏览权限
type
integer <int32>
必需
order
integer <int32>
排列顺序
accessPermissions
array[integer <int64>]
可选
org
object (Org)
组织实体类
id
integer <int64>
组织ID
parentId
integer <int64>
上级组织ID
name
string
名称
phone
string
电话
address
string
地址
contacts
string
联系人
depth
integer <int32>
层级
order
integer <int32>
排列顺序
hasChildren
boolean
是否有子组织
names
array[string]
名称层级列表
paths
array[object (Org) {11}]
可选
roleList
array[object (Role) {19}]
角色列表
id
integer <int64>
角色ID
siteId
integer <int64>
站点ID
name
string
名称
description
string
描述
allPermission
boolean
所有功能权限
allGrantPermission
boolean
所有授权权限
globalPermission
boolean
全局数据权限
allArticlePermission
boolean
所有文章权限
allChannelPermission
boolean
所有栏目权限
dataScope
integer <int32>
必需
allStatusPermission
boolean
所有状态权限
rank
integer <int32>
等级
type
integer <int32>
必需
scope
integer <int32>
必需
order
integer <int32>
排列顺序
permission
string
功能权限
grantPermission
string
授权权限
site
object (Site)
站点实体类
global
boolean
是否全局共享
orgList
array[object (Org) {11}]
扩展组织列表
id
integer <int64>
组织ID
parentId
integer <int64>
上级组织ID
name
string
名称
phone
string
电话
address
string
地址
contacts
string
联系人
depth
integer <int32>
层级
order
integer <int32>
排列顺序
hasChildren
boolean
是否有子组织
names
array[string]
名称层级列表
paths
array[object (Org) {11}]
可选
captchaToken
string
验证码Token
captcha
string
验证码
emailMessageId
integer <int64>
邮件短信ID
emailMessageValue
string
邮件验证码
mobileMessageId
integer <int64>
手机短信ID
mobileMessageValue
string
短信验证码
name
string
可选
location
string
居住地
created
string <date-time>
创建日期
enabled
boolean
是否正常状态
root
boolean
可选
loginDate
string <date-time>
最后登录日期
loginCount
integer <int32>
登录次数
loginIp
string
最后登录IP
largeAvatar
string
大头像
mediumAvatar
string
中头像
birthday
string <date-time>
出生日期
bio
string
自我介绍
homepage
string
个人主页
smallAvatar
string
小头像
示例
{
"id": 0,
"groupId": 0,
"orgId": 0,
"username": "string",
"email": "string",
"mobile": "string",
"alias": "string",
"nickname": "string",
"realName": "string",
"gender": 0,
"avatar": "string",
"passwordModified": "2019-08-24T14:15:22Z",
"rank": 0,
"type": 0,
"status": 0,
"group": {
"id": 0,
"name": "string",
"description": "string",
"allAccessPermission": true,
"type": 0,
"order": 0,
"accessPermissions": [
0
]
},
"org": {
"id": 0,
"parentId": 0,
"name": "string",
"phone": "string",
"address": "string",
"contacts": "string",
"depth": 0,
"order": 0,
"hasChildren": true,
"names": [
"string"
],
"paths": [
{}
]
},
"roleList": [
{
"id": 0,
"siteId": 0,
"name": "string",
"description": "string",
"allPermission": true,
"allGrantPermission": true,
"globalPermission": true,
"allArticlePermission": true,
"allChannelPermission": true,
"dataScope": 0,
"allStatusPermission": true,
"rank": 0,
"type": 0,
"scope": 0,
"order": 0,
"permission": "string",
"grantPermission": "string",
"site": {
"id": 0,
"parentId": 0,
"orgId": 0,
"modelId": 0,
"name": "string",
"description": "string",
"protocol": "string",
"domain": "string",
"subDir": "string",
"theme": "string",
"mobileTheme": "string",
"pageSize": 0,
"logo": "string",
"seoTitle": "string",
"seoKeywords": "string",
"seoDescription": "string",
"staticFile": "string",
"mobileStaticFile": "string",
"editorSettings": "string",
"status": 0,
"depth": 0,
"order": 0,
"views": 0,
"selfViews": 0,
"todayViews": 0,
"yesterdayViews": 0,
"maxViews": 0,
"maxDate": "2019-08-24T14:15:22Z",
"mainsJson": "string",
"clobsJson": "string",
"customs": {
"property1": {},
"property2": {}
},
"watermark": {
"enabled": true,
"overlay": "string",
"position": 0,
"dissolve": 0,
"minWidth": 0,
"minHeight": 0
},
"html": {
"enabled": true,
"auto": true,
"listPages": 0,
"channel": "string",
"article": "string",
"enabledAndAuto": true
},
"messageBoard": {
"enabled": true,
"loginRequired": true
},
"editor": {
"property1": {},
"property2": {}
},
"copyFromId": 0,
"copyData": [
"string"
],
"hasChildren": true,
"parent": {},
"org": {
"id": 0,
"parentId": 0,
"name": "string",
"phone": "string",
"address": "string",
"contacts": "string",
"depth": 0,
"order": 0,
"hasChildren": true,
"names": [
"string"
],
"paths": [
{}
]
},
"model": {
"id": 0,
"siteId": 0,
"name": "string",
"type": "string",
"scope": 0,
"order": 0,
"mains": "string",
"asides": "string",
"customs": "string"
},
"enabled": true,
"url": "string",
"filesPath": "string",
"api": "string",
"mobileStaticUrl": "string",
"dynamicUrl": "string",
"staticUrl": "string",
"normalStaticUrl": "string",
"dy": "string",
"names": [
"string"
],
"template": "string",
"staticBase": "string",
"paths": [
{}
],
"disabled": true,
"htmlEnabled": true,
"title": "string",
"targetBlank": true
},
"global": true
}
],
"orgList": [
{
"id": 0,
"parentId": 0,
"name": "string",
"phone": "string",
"address": "string",
"contacts": "string",
"depth": 0,
"order": 0,
"hasChildren": true,
"names": [
"string"
],
"paths": [
{}
]
}
],
"captchaToken": "string",
"captcha": "string",
"emailMessageId": 0,
"emailMessageValue": "string",
"mobileMessageId": 0,
"mobileMessageValue": "string",
"name": "string",
"location": "string",
"created": "2019-08-24T14:15:22Z",
"enabled": true,
"root": true,
"loginDate": "2019-08-24T14:15:22Z",
"loginCount": 0,
"loginIp": "string",
"largeAvatar": "string",
"mediumAvatar": "string",
"birthday": "2019-08-24T14:15:22Z",
"bio": "string",
"homepage": "string",
"smallAvatar": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://demo.ujcms.com/api/register' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
*/*
Body
响应对象
status
integer <int32>
可选
result
object
数据
额外字段
object
数据
message
string
信息
exception
string
异常类的类名
示例
{
"status": 0,
"result": {
"property1": {},
"property2": {}
},
"message": "string",
"exception": "string"
}
修改于 2025-03-04 10:44:02