# Generated with thrift-gen-http-swagger # https://github.com/hertz-contrib/swagger-generate/thrift-gen-http-swagger openapi: 3.0.3 info: title: API generated by thrift-gen-http-swagger description: API description version: 0.0.1 paths: /user/captcha: get: tags: - UserService description: 获取人机验证图片 operationId: UserService_GetCaptcha parameters: - name: key in: query schema: type: string - name: scene_id in: query schema: type: string - name: captcha_type in: query schema: type: integer format: int64 responses: "200": description: 获取人机验证图片响应 content: application/json: schema: $ref: '#/components/schemas/GetCaptchaRespBody' /user/captcha/validator: post: tags: - UserService description: 设置验证码验证器配置 operationId: UserService_SetCaptchaValidator requestBody: description: 验证码验证器配置请求 content: application/json: schema: $ref: '#/components/schemas/SetCaptchaValidatorReqBody' responses: "200": description: 验证码验证器配置响应 content: application/json: schema: $ref: '#/components/schemas/SetCaptchaValidatorRespBody' /user/register: post: tags: - UserService description: 用户注册 operationId: UserService_Register requestBody: description: 用户注册请求 content: application/json: schema: $ref: '#/components/schemas/RegisterReqBody' responses: "200": description: 用户注册响应 content: application/json: schema: $ref: '#/components/schemas/RegisterRespBody' components: schemas: DriverChineseConfig: type: object properties: height: type: integer format: int32 width: type: integer format: int32 noise_count: type: integer format: int32 show_line_options: type: integer format: int32 length: type: integer format: int32 source: type: string fonts: type: array items: type: string bg_color: type: string description: 中文验证码配置 DriverDigitConfig: type: object properties: height: type: integer format: int32 width: type: integer format: int32 length: type: integer format: int32 max_skew: type: number format: double dot_count: type: integer format: int32 description: 数字验证码配置 DriverMathConfig: type: object properties: height: type: integer format: int32 width: type: integer format: int32 noise_count: type: integer format: int32 show_line_options: type: integer format: int32 fonts: type: array items: type: string bg_color: type: string description: 数学验证码配置 GetCaptchaRespBody: type: object properties: captcha_image: type: string expire_time: type: integer format: int64 RegisterReqBody: type: object properties: account: type: string password: type: string captcha: type: string RegisterRespBody: type: object properties: message: type: string code: type: integer format: int32 SetCaptchaValidatorReqBody: type: object properties: key: type: string validator_type: type: integer format: int32 digit_config: $ref: '#/components/schemas/DriverDigitConfig' chinese_config: $ref: '#/components/schemas/DriverChineseConfig' math_config: $ref: '#/components/schemas/DriverMathConfig' SetCaptchaValidatorRespBody: type: object properties: message: type: string code: type: integer format: int32 success: type: boolean tags: - name: UserService