日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

阳光沙滩博客系统后端api

發布時間:2023/12/16 windows 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 阳光沙滩博客系统后端api 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

陽光沙灘博客系統后端api

  • 一、用戶中心接口
    • 1.刪除用戶
    • 2.初始化管理員賬戶
    • 3.獲取人類驗證碼
    • 4.檢查郵箱是否被注冊
    • 5.發送箱驗證碼
    • 6.更改郵箱
    • 7.注冊
    • 8.列舉用戶
    • 9.登錄
    • 11.退出登錄
    • 12.更改密碼
    • 13 通過id獲取用戶信息
    • 14 更改用戶信息
    • 15:檢查用戶名是否被用
  • 其他接口


以下內容就是api的具體詳情


提示:以下是本篇文章正文內容,下面案例可供參考

一、用戶中心接口

api地址:http://280sl28549.eicp.vip:10939/swagger-ui.html?urls.primaryName=%E7%94%A8%E6%88%B7%E4%B8%AD%E5%BF%83#/

1.刪除用戶

方法:delete 參數:無接口:/user / body字段:用戶id 實例:http://localhost:2021/user/743147755047747584 返回: {"success": true,"code": 20000,"message": "刪除成功","data": null }

2.初始化管理員賬戶

方法:post 參數:無 body字段:{"email": "2803062371@qq.com","password": "123456","userName": "admin"} 接口:/user/admin_account 實例:http://localhost:2021/user/admin_account 返回: {"success": true,"code": 20000,"message": "初始化成功","data": null}

3.獲取人類驗證碼

方法:get 參數:captcha_key,不能少于13位的key 接口:/user/captcha 實例:http://localhost:2021/user/captcha?captcha_key=1111111111111 注意:該驗證碼有效期為60秒 返回:一張具有驗證碼的照片

4.檢查郵箱是否被注冊

方法:get 參數:email 接口:/user/email 實例:http://localhost:2021/user/email?email=280306371@qq.com 返回: { "success": false, "code": 40000, "message": "郵箱未注冊", "data": null }

5.發送箱驗證碼

方法:get 參數:email type 接口:/user/verify_code 實例:http://localhost:2021/user/verify_code?email= 2803062371%40qq.com&type=foget 返回: {"success": true,"code": 20000,"message": "驗證碼發送成功","data": null }

6.更改郵箱

方法:put 參數:email verify_code 接口:/user/email 實例:http://localhost:2021/user/email?email= 2477922515%40qq.com&verify_code=16245 返回: {"success": true,"code": 20000,"message": "郵箱更改成功"data": null }

7.注冊

方法:post 參數:captcha_code captcha_key email_code 接口:/user/join_inbody字段: {"email": "2803062371@qq.com","password": "123456","userName": "mytest1" } 實例: http://localhost:2021/user/join_in?captcha_code=d5esp&captcha_key=1111111111111&email_code=197275

8.列舉用戶

方法:get 參數:page size 接口:user/list 實例:http://localhost:2021/user/list?page=2&size=1 注意:如果返回沒結果,最大可能就是你設置的訪問的總量大于庫里面的總量,比如你訪問是3*5,也就是15個,但是庫里面就10個,會導致最后一頁一個都沒有,所以返回接口為空.

9.登錄

方法:post 接口: 參數:無 body參數:{"password": "123456","userName": "mytest1"} body字段:驗證碼 驗證碼key 實例:http://localhost:2021/user/login/xudzb/1111111111111

11.退出登錄

方法:get 接口:/user/logout 實例:http://localhost:2021/user/logout 參數:無 返回: {"success": true,"code": 40002,"message": "賬號已退出","data": null }

12.更改密碼

方法: body字段: {"email": "2803062371@qq.com",password": "123456" } body字段:驗證碼 參數:無 接口:/user/password 實例:http://localhost:2021/user/password/587025

13 通過id獲取用戶信息

方法:get body字段:用戶id 接口:/user/user_info 實例:http://localhost:2021/user/user_info/743147755047747584

14 更改用戶信息

方法:put body字段:人類驗證碼 接口:/user/user_info 實例:http://localhost:2021/user/user_info/758733490417041408

15:檢查用戶名是否被用

方法:get 參數:用戶名 接口:/user/user_name 實例:http://localhost:2021/user/user_name?userName=string

其他接口

二.前端門戶
三.管理中心

總結

以上是生活随笔為你收集整理的阳光沙滩博客系统后端api的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。