diff --git a/server/src/controller/account_controller.rs b/server/src/controller/account_controller.rs index dbdf9b2..2e790b2 100644 --- a/server/src/controller/account_controller.rs +++ b/server/src/controller/account_controller.rs @@ -4,8 +4,8 @@ use library::{context::{Context, WhiteContext}, model::{response::ResResult, val use crate::service; -/// google账号登录 /// post: /account/google +/// google账号登录 pub async fn authenticate_google( Extension(context): Extension, Json(req): Json @@ -14,6 +14,7 @@ pub async fn authenticate_google( service::account_service::authenticate_google(context, req).await } +/// post: /account/sys /// 账号密码登录 pub async fn authenticate_with_password( Extension(context): Extension, @@ -23,6 +24,7 @@ pub async fn authenticate_with_password( service::sys_account_service::authenticate_with_password(context, req).await } +/// post: /account/refresh-token /// 刷新token pub async fn refresh_token( Extension(context): Extension, diff --git a/server/src/controller/feedback_controller.rs b/server/src/controller/feedback_controller.rs index 17f272f..2c8aa3f 100644 --- a/server/src/controller/feedback_controller.rs +++ b/server/src/controller/feedback_controller.rs @@ -9,6 +9,7 @@ use library::model::validator; use crate::service; +/// post: /feedback /// 添加反馈信息 pub async fn add_feedback( Extension(context): Extension, @@ -18,6 +19,7 @@ pub async fn add_feedback( service::feedback_service::add_feedback(context, req).await } +/// get: /feedback /// 获取反馈信息列表 pub async fn get_feedback_list_by_page( Extension(context): Extension,