1. Paths

1.1. 新增用户

POST /users

1.1.1. Description

新增一个用户

1.1.2. Parameters

Type Name Description Schema

Body

userAddForm
required

新增用户form表单

UserAddForm

1.1.3. Responses

HTTP Code Description Schema

200

OK

Result«long»

201

Created

No Content

401

Unauthorized

No Content

403

Forbidden

No Content

404

Not Found

No Content

1.1.4. Consumes

  • application/json

1.1.6. Tags

  • eureka-producer

1.2. 搜索用户

POST /users/

1.2.1. Description

根据条件查询用户信息

1.2.2. Parameters

Type Name Description Schema

Body

userQueryForm
required

用户查询参数

UserQueryForm

1.2.3. Responses

HTTP Code Description Schema

200

OK

Result«List«User»»

201

Created

No Content

401

Unauthorized

No Content

403

Forbidden

No Content

404

Not Found

No Content

1.2.4. Consumes

  • application/json

1.2.6. Tags

  • eureka-producer

1.3. 查询用户

GET /users/

1.3.1. Description

根据条件查询用户信息,简单查询

1.3.2. Parameters

Type Name Description Schema

Query

name
required

用户姓名

string

1.3.3. Responses

HTTP Code Description Schema

200

OK

Result«List«User»»

401

Unauthorized

No Content

403

Forbidden

No Content

404

Not Found

No Content

1.3.5. Tags

  • eureka-producer

1.4. 获取用户

GET /users/{id}

1.4.1. Description

获取指定用户信息

1.4.2. Parameters

Type Name Description Schema

Path

id
required

用户ID

integer(int64)

1.4.3. Responses

HTTP Code Description Schema

200

OK

Result«User»

401

Unauthorized

No Content

403

Forbidden

No Content

404

Not Found

No Content

1.4.5. Tags

  • eureka-producer

1.5. 修改用户

PUT /users/{id}

1.5.1. Description

修改指定用户信息

1.5.2. Parameters

Type Name Description Schema

Path

id
required

用户ID

integer(int64)

Body

userUpdateForm
required

用户实体

UserUpdateForm

1.5.3. Responses

HTTP Code Description Schema

200

OK

Result

201

Created

No Content

401

Unauthorized

No Content

403

Forbidden

No Content

404

Not Found

No Content

1.5.4. Consumes

  • application/json

1.5.6. Tags

  • eureka-producer

1.6. 删除用户

DELETE /users/{id}

1.6.1. Description

根据url的id来指定删除对象

1.6.2. Parameters

Type Name Description Schema

Path

id
required

用户ID

integer(int64)

1.6.3. Responses

HTTP Code Description Schema

200

OK

Result

204

No Content

No Content

401

Unauthorized

No Content

403

Forbidden

No Content

1.6.5. Tags

  • eureka-producer