Skip to content

接口返回的业务code错误 #20

@YanshGo

Description

@YanshGo

复现步骤:

  1. 下载项目,并运行
  2. 调用/api/account/auth/register,使用接口文档中的默认参数即可
curl -X 'POST' \
  'http://localhost:8000/api/account/auth/register' \
  -H 'accept: */*' \
  -H 'Content-Type: application/json' \
  -d '{
  "username": "string",
  "password": "string",
  "confirm_password": "string",
  "phone": "string",
  "full_name": "string",
  "gender": "string"
}'

实际结果:
响应体中code和success字段的值错误
图片
预期结果:
code=400
图片
图片

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions