93 lines
1.8 KiB
Go
93 lines
1.8 KiB
Go
|
package actions
|
||
|
|
||
|
import (
|
||
|
"log"
|
||
|
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
// @Action base/getToken
|
||
|
// Base_GetToken
|
||
|
// action: string;
|
||
|
// app_market: string;
|
||
|
// lang: string;
|
||
|
// token: string;
|
||
|
func BaseGetToken(ctx *gin.Context) {
|
||
|
param := &BaseGetTokenParam{}
|
||
|
ctx.ShouldBind(param)
|
||
|
log.Println()
|
||
|
}
|
||
|
|
||
|
// @Action account/loginWithTelephonePassword
|
||
|
// AccountLoginWithTelephonePassword
|
||
|
// action: string;
|
||
|
// country_code: string;
|
||
|
// device?: string;
|
||
|
// lang: string;
|
||
|
// password: string;
|
||
|
// telephone: string;
|
||
|
// token?: string;
|
||
|
// version?: string;
|
||
|
func AccountLoginWithTelephonePassword(ctx *gin.Context) {
|
||
|
// ctx.ShouldBind()
|
||
|
log.Println()
|
||
|
}
|
||
|
|
||
|
// @Action account/registerSmsCode
|
||
|
// AccountRegisterSmsCode
|
||
|
// action: string;
|
||
|
// country_code?: string;
|
||
|
// telephone?: string;
|
||
|
// token: string;
|
||
|
func AccountRegisterSmsCode(ctx *gin.Context) {
|
||
|
// ctx.ShouldBind()
|
||
|
log.Println()
|
||
|
}
|
||
|
|
||
|
// @Action account/forgetSmsCode
|
||
|
// AccountForgetSmsCode
|
||
|
// action: string;
|
||
|
// country_code?: string;
|
||
|
// telephone?: string;
|
||
|
// token: string;
|
||
|
func AccountForgetSmsCode(ctx *gin.Context) {
|
||
|
// ctx.ShouldBind()
|
||
|
log.Println()
|
||
|
}
|
||
|
|
||
|
// @Action account/registerEmailCode
|
||
|
// AccountRegisterEmailCode
|
||
|
// action: string;
|
||
|
// email?: string;
|
||
|
// token: string;
|
||
|
func AccountRegisterEmailCode(ctx *gin.Context) {
|
||
|
// ctx.ShouldBind()
|
||
|
log.Println()
|
||
|
}
|
||
|
|
||
|
// @Action member/alterPassword
|
||
|
// MemberAlterPassword
|
||
|
// action: string;
|
||
|
// confirm_password: string;
|
||
|
// new_password: string;
|
||
|
// old_password: string;
|
||
|
// token?: string;
|
||
|
func MemberAlterPassword(ctx *gin.Context) {
|
||
|
// ctx.ShouldBind()
|
||
|
log.Println()
|
||
|
}
|
||
|
|
||
|
// @Action account/loginWithEmailPassword
|
||
|
// AccountLoginWithEmailPassword
|
||
|
// action: string;
|
||
|
// device?: string;
|
||
|
// email: string;
|
||
|
// lang: string;
|
||
|
// password: string;
|
||
|
// token?: string;
|
||
|
// version?: string;
|
||
|
func AccountLoginWithEmailPassword(ctx *gin.Context) {
|
||
|
// ctx.ShouldBind()
|
||
|
log.Println()
|
||
|
}
|