by Robin at 20240618
This commit is contained in:
parent
6dc4d0d736
commit
c0ccf23922
|
@ -209,7 +209,7 @@ type ApiAbortCancellationResp struct {
|
|||
|
||||
// api 列表-查询手机号
|
||||
type ApiGetMobilePhoneReq struct {
|
||||
Token string `json:"token"` // token
|
||||
Token string `form:"token"` // token
|
||||
}
|
||||
|
||||
type ApiGetMobilePhoneData struct {
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue