diff --git "a/dramaeditor/\347\224\250\346\210\267\346\250\241\345\235\227\351\207\215\346\236\204\347\211\210.md" "b/dramaeditor/\347\224\250\346\210\267\346\250\241\345\235\227\351\207\215\346\236\204\347\211\210.md" new file mode 100644 index 0000000..c6dfe99 --- /dev/null +++ "b/dramaeditor/\347\224\250\346\210\267\346\250\241\345\235\227\351\207\215\346\236\204\347\211\210.md" @@ -0,0 +1,317 @@ +#### 获取图片验证码 + +URL: {backUrl}/common/captcha + +METHOD: GET + +RequestHeaders: + +| key | value | +| :----------- | :------------ | +| Content-Type | application/json;charset=utf-8 | + +ResponseBody: +``` +二进制数据(图片) +``` + +#### 注册-发送手机验证码 + +URL: {backUrl}/common/code/sms/send + +METHOD: POST + +RequestHeaders: + +| key | value | +| :----------- | :------------ | +| Content-Type | application/json;charset=utf-8 | + +RequestBody: +```json +{ + "service": "register", // 服务名称 + "captcha": "f9487", // 图片验证码 + "telephoneNumber":"13009633593" // 手机号 +} +``` + +ResponseBody: +```json +SUCCESS: +{ + "code": 1, + "msg": "验证码已发送!!!", + "data": null +} +``` + +#### 注册-通过手机号 + +URL: {backUrl}/user/register + +METHOD: POST + +RequestHeaders: + +| key | value | +| :----------- | :------------ | +| Content-Type | application/json;charset=utf-8 | + +RequestBody: +```json +{ + "username":"test", // 用户名 + "password": "test", // 密码 + "way":"sms", // 方式 + "telephoneNumber":"13009633593", // 电话号码 + "captcha":"7wem3", // 图片验证码 + "code":"453016" // sms验证码 +} +``` + +ResponseBody: +```json +SUCCESS: +{ + "code": 1, + "msg": "成功", + "data": null +} +``` + +#### 登录获取手机验证码 + +URL: {backUrl}/common/code/sms/send + +METHOD: POST + +RequestHeaders: + +| key | value | +| :----------- | :------------ | +| Content-Type | application/json;charset=utf-8 | + +RequestBody: +```json +{ + "service": "login", // 服务名称 + "captcha": "f9487", // 图片验证码 + "telephoneNumber":"13009633593" // 手机号 +} +``` + +ResponseBody: +```json +SUCCESS: +{ + "code": 1, + "msg": "验证码已发送!!!", + "data": null +} +``` + +#### 登录-通过手机验证码的方式 + +URL: {backUrl}/user/login/way_by_sms + +METHOD: POST + +RequestHeaders: + +| key | value | +| :----------- | :------------ | +| Content-Type | application/json;charset=utf-8 | + +RequestBody: +```json +{ + "captcha": "4x63j", // 图片验证码 + "code":"349823", // sms验证码 + "telephoneNumber":"13009633593" // 手机号 +} +``` + +ResponseBody: +```json +SUCCESS: +{ + "code": 1, + "msg": "成功", + "data": { + "authority": 1, + "duration": 86400000, + "username": "test", + "token": "eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2Mzg3OTI1NDcsImV4cCI6MTYzODg3ODk0NywiYXV0aG9yaXR5IjoxLCJpZCI6MzZ9.ZeRDZ6gSMVXEhAHytwCcLfLr7HCUhn2HMmr1XjvQ4gY" + } +} +``` + +#### 注册-邮箱获取验证码 + +URL: {backUrl}/common/code/mail/send + +METHOD: POST + +RequestHeaders: + +| key | value | +| :----------- | :------------ | +| Content-Type | application/json;charset=utf-8 | + +RequestBody: +```json +{ + "service": "register", // 服务 + "captcha": "asmr5", // 图片验证码 + "email":"jinfengli@qiwu.ai" // 邮件地址 +} +``` + +ResponseBody: +```json +SUCCESS: +{ + "code": 1, + "msg": "验证码已发送!!!", + "data": null +} +``` + + +#### 注册-通过邮箱 + +URL: {backUrl}/user/register + +METHOD: POST + +RequestHeaders: + +| key | value | +| :----------- | :------------ | +| Content-Type | application/json;charset=utf-8 | + +RequestBody: +```json +{ + "username":"test2", // 用户名 + "password": "test2", // 密码 + "way":"mail", // 方式 + "email":"jinfengli@qiwu.ai", // 邮箱地址 + "captcha":"asmr5", // 图片验证码 + "code":"651132" // 邮箱验证码 +} +``` + +ResponseBody: +```json +SUCCESS: +{ + "code": 1, + "msg": "成功", + "data": null +} +``` + +#### 登录-获取邮箱验证码 + +URL: {backUrl}/common/code/mail/send + +METHOD: POST + +RequestHeaders: + +| key | value | +| :----------- | :------------ | +| Content-Type | application/json;charset=utf-8 | + +RequestBody: +```json +{ + "service": "login", // 服务名称 + "captcha": "7qyaq", // 图片验证码 + "email":"jinfengli@qiwu.ai" // 邮箱地址 +} +``` + +ResponseBody: +```json +SUCCESS: +{ + "code": 1, + "msg": "验证码已发送!!!", + "data": null +} +``` + +#### 邮箱验证码方式登录 + +URL: {backUrl}/user/login/way_by_mail + +METHOD: POST + +RequestHeaders: + +| key | value | +| :----------- | :------------ | +| Content-Type | application/json;charset=utf-8 | + +RequestBody: +```json +{ + "captcha": "7qyaq", // 图片验证码 + "code":"273633", // 邮箱验证码 + "email":"jinfengli@qiwu.ai" // 邮箱地址 +} +``` + +ResponseBody: +```json +SUCCESS: +{ + "code": 1, + "msg": "成功", + "data": { + "authority": 1, + "duration": 86400000, + "username": "test2", + "token": "eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2Mzg3OTQyNzMsImV4cCI6MTYzODg4MDY3MywiYXV0aG9yaXR5IjoxLCJpZCI6Mzd9.Moni8d0YyUkzv8qiOZem8GhncGEAxrincctN1F_B6eI" + } +} +``` + +#### 通过邮箱/手机号/用户名密码登录 + +URL: {backUrl}/user/login/way_by_password + +METHOD: POST + +RequestHeaders: + +| key | value | +| :----------- | :------------ | +| Content-Type | application/json;charset=utf-8 | + +RequestBody: +```json +{ + "captcha": "7qyaq", // 图片验证码 + "username":"test", // 用户名/手机号/邮箱 + "password":"test" // 密码 +} +``` + +ResponseBody: +```json +SUCCESS: +{ + "code": 1, + "msg": "成功", + "data": { + "authority": 1, + "duration": 86400000, + "username": "test", + "token": "eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2Mzg3OTQ1MjYsImV4cCI6MTYzODg4MDkyNiwiYXV0aG9yaXR5IjoxLCJpZCI6MzZ9.VoRSXhSLJXlU_Lo_azzOGXJRNHa6wmh8_RZcYkm_xXs" + } +} +``` \ No newline at end of file