Vestmore_GO/server/app/internal/handlers/actions/auth.go

102 lines
2.5 KiB
Go
Raw Normal View History

2024-04-07 10:12:24 +00:00
package actions
import (
"log"
"github.com/gin-gonic/gin"
2024-04-09 05:38:29 +00:00
"github.com/iapologizewhenimwrong/Vestmore_GO/utils/basic"
2024-04-07 10:12:24 +00:00
)
// @Action base/getToken
// Base_GetToken
// action: string;
// app_market: string;
// lang: string;
// token: string;
2024-04-09 05:38:29 +00:00
func BaseGetToken(ctx *gin.Context, param *BaseGetTokenParam, resp *basic.Response) {
2024-04-07 10:12:24 +00:00
ctx.ShouldBind(param)
2024-04-08 10:13:01 +00:00
// model.Models.KillaraCustomerModel.Find()
2024-04-07 10:12:24 +00:00
log.Println()
}
// @Action account/loginWithTelephonePassword
// AccountLoginWithTelephonePassword
// action: string;
// country_code: string;
// device?: string;
// lang: string;
// password: string;
// telephone: string;
// token?: string;
// version?: string;
2024-04-09 05:38:29 +00:00
func AccountLoginWithTelephonePassword(ctx *gin.Context, param *AccountLoginWithTelephonePasswordParam, resp *basic.Response) {
2024-04-07 10:12:24 +00:00
// ctx.ShouldBind()
2024-04-08 10:13:01 +00:00
// model.Models.KillaraCustomerModel.Find()
// log.Println(param)
2024-04-07 10:12:24 +00:00
}
// @Action account/registerSmsCode
// AccountRegisterSmsCode
// action: string;
// country_code?: string;
// telephone?: string;
// token: string;
2024-04-09 05:38:29 +00:00
func AccountRegisterSmsCode(ctx *gin.Context, param *AccountRegisterSmsCodeParam, resp *basic.Response) {
2024-04-07 10:12:24 +00:00
// ctx.ShouldBind()
log.Println()
}
// @Action account/forgetSmsCode
// AccountForgetSmsCode
// action: string;
// country_code?: string;
// telephone?: string;
// token: string;
2024-04-09 05:38:29 +00:00
func AccountForgetSmsCode(ctx *gin.Context, param *AccountForgetSmsCodeParam, resp *basic.Response) {
2024-04-07 10:12:24 +00:00
// ctx.ShouldBind()
log.Println()
}
// @Action account/registerEmailCode
// AccountRegisterEmailCode
2024-04-09 05:38:29 +00:00
// randstr: string;
// sign: string;
// action: string;
// app_market: int;
// email: string;
// timestamp: int64;
// token: string;
func AccountRegisterEmailCode(ctx *gin.Context, param *AccountRegisterEmailCodeParam, resp *basic.Response) {
2024-04-08 10:13:01 +00:00
2024-04-07 10:12:24 +00:00
}
// @Action member/alterPassword
// MemberAlterPassword
// action: string;
// confirm_password: string;
// new_password: string;
// old_password: string;
// token?: string;
2024-04-09 05:38:29 +00:00
func MemberAlterPassword(ctx *gin.Context, param *MemberAlterPasswordParam, resp *basic.Response) {
2024-04-07 10:12:24 +00:00
// ctx.ShouldBind()
log.Println()
}
// @Action account/loginWithEmailPassword
// AccountLoginWithEmailPassword
2024-04-09 05:38:29 +00:00
// password: string;
// randstr: string;
// sign: string;
// action: string;
// device: string;
// version: string;
// app_market: int;
// email: string;
// timestamp: int64;
// token: string;
func AccountLoginWithEmailPassword(ctx *gin.Context, param *AccountLoginWithEmailPasswordParam, resp *basic.Response) {
log.Println(param)
2024-04-07 10:12:24 +00:00
}