spring-boot-start
  1. UserController
spring-boot-start
  • BlogController
    • 接口名称:查询博客
      GET
    • 新增博客
      POST
    • 删除博客
      DELETE
    • 更新博客
      PUT
  • FileController
    • 文件上传
      POST
    • 文件下载
      GET
  • UserController
    • 获取所有用户
      GET
    • 添加用户
      POST
    • 获取用户信息
      GET
    • 更新用户信息
      PUT
    • 删除用户
      DELETE
    • 获取用户日志列表
      GET
  • LoginController
    • login
      POST
    • loginByCode
      POST
    • logout
      POST
    • loginByCode
      POST
  • 未命名接口
    GET
  1. UserController

添加用户

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
http://dev-cn.your-api-server.com
/user
最后修改时间:2024-01-02 09:31:37
责任人:未设置
添加用户 desc

请求参数

Body 参数application/json
id
integer  | null 
可选
name
string  | null 
用户名
可选
phone
string  | null 
手机号
可选
password
string  | null 
密码
可选
email
string  | null 
邮箱
可选
deleted
boolean  | null 
是否删除
可选
createTime
string  | null 
创建时间
可选
updateTime
string  | null 
更新时间
可选
createBy
string  | null 
创建人
可选
updateBy
string  | null 
更新人
可选
示例
{
  "id": 0,
  "name": "string",
  "phone": "string",
  "password": "string",
  "email": "string",
  "deleted": true,
  "createTime": "string",
  "updateTime": "string",
  "createBy": "string",
  "updateBy": "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 'http://dev-cn.your-api-server.com/user' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": 0,
    "name": "string",
    "phone": "string",
    "password": "string",
    "email": "string",
    "deleted": true,
    "createTime": "string",
    "updateTime": "string",
    "createBy": "string",
    "updateBy": "string"
}'

返回响应

🟢200成功
application/json
Body
int
code
integer  | null 
可选
message
string  | null 
可选
data
null  | null 
可选
示例
{
  "code": 0,
  "message": "",
  "data": null
}
上一页
获取所有用户
下一页
获取用户信息
Built with