controller增加接口注释,标识http方法和url
This commit is contained in:
parent
ba544174b7
commit
480139ed1e
@ -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<WhiteContext>,
|
||||
Json(req): Json<AuthenticateGooleAccountReq>
|
||||
@ -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<WhiteContext>,
|
||||
@ -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<Context>,
|
||||
|
@ -9,6 +9,7 @@ use library::model::validator;
|
||||
|
||||
use crate::service;
|
||||
|
||||
/// post: /feedback
|
||||
/// 添加反馈信息
|
||||
pub async fn add_feedback(
|
||||
Extension(context): Extension<Context>,
|
||||
@ -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<Context>,
|
||||
|
Loading…
Reference in New Issue
Block a user