by Robin at 20240618

This commit is contained in:
Leufolium 2024-06-18 21:58:29 +08:00
parent 6dc4d0d736
commit c0ccf23922
2 changed files with 3 additions and 2 deletions

View File

@ -209,7 +209,7 @@ type ApiAbortCancellationResp struct {
// api 列表-查询手机号
type ApiGetMobilePhoneReq struct {
Token string `json:"token"` // token
Token string `form:"token"` // token
}
type ApiGetMobilePhoneData struct {

View File

@ -92,7 +92,8 @@ func Init(r *gin.Engine) {
apiAccountGroup.POST("exp_inc", middleware.JSONParamValidator(accountproto.ApiExpIncReq{}), middleware.JwtAuthenticator(), ApiAccountExpInc)
apiAccountGroup.POST("cancel", middleware.JSONParamValidator(accountproto.ApiCancelReq{}), middleware.JwtAuthenticator(), ApiCancelAccount)
apiAccountGroup.POST("abort_cancellation", middleware.JSONParamValidator(accountproto.ApiAbortCancellationReq{}), middleware.JwtAuthenticator(), ApiAbortAccountCancellation)
apiAccountGroup.GET("get_mobile_phone", middleware.JSONParamValidator(accountproto.ApiGetMobilePhoneReq{}), ApiGetMobilePhone)
// GET通过token获取手机号
r.GET("api/account/get_mobile_phone", middleware.FORMParamValidator(accountproto.ApiGetMobilePhoneReq{}), ApiGetMobilePhone)
// 用户关系,用户端支持增删查,不支持改
apiAccountRelationGroup := r.Group("/api/account_relation", PrepareToC())