You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
244 lines
4.8 KiB
244 lines
4.8 KiB
package web |
|
|
|
import ( |
|
"server/modules/web/app" |
|
"server/modules/web/values" |
|
) |
|
|
|
// swagger:route POST /account/guestLogin account idOfGuestLogin |
|
// 游客登录 |
|
// Responses: |
|
// 200:GuestLoginResp |
|
|
|
// swagger:response GuestLoginResp |
|
type GuestLoginResp struct { |
|
// in:body |
|
Body values.LoginResp |
|
} |
|
|
|
// swagger:parameters idOfGuestLogin |
|
type GuestLoginReq struct { |
|
// in:body |
|
Body values.GuestLoginReq |
|
} |
|
|
|
// swagger:route POST /account/tokenLogin account idOfTokenLogin |
|
// token快速登录 |
|
// Responses: |
|
// 200:TokenLogin |
|
|
|
// swagger:response TokenLogin |
|
type TokenLoginResp struct { |
|
// in:body |
|
Body values.LoginResp |
|
} |
|
|
|
// swagger:parameters idOfTokenLogin |
|
type TokenLoginReq struct { |
|
// in:body |
|
Body values.TokenLoginReq |
|
} |
|
|
|
// swagger:route POST /account/phoneCode/get account idOfGetPhoneCode |
|
// 获取手机验证码 |
|
// Responses: |
|
// 200:GetPhoneCodeResp |
|
|
|
// swagger:response GetPhoneCodeResp |
|
type GetPhoneCodeResp struct { |
|
// in:body |
|
Body app.R |
|
} |
|
|
|
// swagger:parameters idOfGetPhoneCode |
|
type GetPhoneCodeReq struct { |
|
// in:body |
|
Body values.PhoneCodeReq |
|
} |
|
|
|
// swagger:route POST /account/phone/regist account idOfPhoneRegist |
|
// 手机号注册 |
|
// Responses: |
|
// 200:PhoneRegistResp |
|
|
|
// swagger:parameters idOfPhoneRegist |
|
type PhoneRegistReq struct { |
|
// in:body |
|
Body values.PhoneRegistReq |
|
} |
|
|
|
// swagger:response PhoneRegistResp |
|
type PhoneRegistResp struct { |
|
// in:body |
|
Body values.LoginResp |
|
} |
|
|
|
// swagger:route POST /account/phone/login account idOfPhoneLogin |
|
// 手机号登录 |
|
// Responses: |
|
// 200:PhoneLoginResp |
|
|
|
// swagger:parameters idOfPhoneLogin |
|
type PhoneLoginReq struct { |
|
// in:body |
|
Body values.PhoneLoginReq |
|
} |
|
|
|
// swagger:response PhoneLoginResp |
|
type PhoneLoginResp struct { |
|
// in:body |
|
Body values.LoginResp |
|
} |
|
|
|
// swagger:route POST /account/phone/resetPass account idOfPhoneResetPass |
|
// 手机号重置密码 |
|
// Responses: |
|
// 200:PhoneResetPassResp |
|
|
|
// swagger:parameters idOfPhoneResetPass |
|
type PhoneResetPassReq struct { |
|
// in:body |
|
Body values.PhoneResetPassReq |
|
} |
|
|
|
// swagger:response PhoneResetPassResp |
|
type PhoneResetPassResp struct { |
|
// in:body |
|
Body values.LoginResp |
|
} |
|
|
|
// swagger:route POST /account/phoneCode/login account idOfPhoneLogin |
|
// 手机验证码登录 |
|
// Responses: |
|
// 200:PhoneCodeLoginResp |
|
|
|
// swagger:response PhoneCodeLoginResp |
|
type PhoneCodeLoginResp struct { |
|
// in:body |
|
Body values.LoginResp |
|
} |
|
|
|
// swagger:parameters idOfPhoneLogin |
|
type PhoneCodeLoginReq struct { |
|
// in:body |
|
Body values.PhoneCodeLoginReq |
|
} |
|
|
|
// swagger:route POST /account/email/code account idOfGetEmailCode |
|
// 获取邮箱验证码 |
|
// Responses: |
|
// 200:GetEmailCodeResp |
|
|
|
// swagger:response GetEmailCodeResp |
|
type GetEmailCodeResp struct { |
|
// in:body |
|
Body app.R |
|
} |
|
|
|
// swagger:parameters idOfGetEmailCode |
|
type GetEmailCodeReq struct { |
|
// in:body |
|
Body values.EmailCodeReq |
|
} |
|
|
|
// swagger:route POST /account/email/regist account idOfEmailRegist |
|
// 邮箱注册 |
|
// Responses: |
|
// 200:EmailRegistResp |
|
|
|
// swagger:response EmailRegistResp |
|
type EmailRegistResp struct { |
|
// in:body |
|
Body values.LoginResp |
|
} |
|
|
|
// swagger:parameters idOfEmailRegist |
|
type EmailRegistReq struct { |
|
// in:body |
|
Body values.EmailRegistReq |
|
} |
|
|
|
// swagger:route POST /account/email/login account idOfEmailLogin |
|
// 邮箱登录 |
|
// Responses: |
|
// 200:EmailLoginResp |
|
|
|
// swagger:response EmailLoginResp |
|
type EmailLoginResp struct { |
|
// in:body |
|
Body values.LoginResp |
|
} |
|
|
|
// swagger:parameters idOfEmailLogin |
|
type EmailLoginReq struct { |
|
// in:body |
|
Body values.EmailLoginReq |
|
} |
|
|
|
// swagger:route POST /account/email/resetPass account idOfEmailResetPass |
|
// 邮箱密码重置 |
|
// Responses: |
|
// 200:EmailResetPassResp |
|
|
|
// swagger:response EmailResetPassResp |
|
type EmailResetPassResp struct { |
|
// in:body |
|
Body app.R |
|
} |
|
|
|
// swagger:parameters idOfEmailResetPass |
|
type EmailResetPassReq struct { |
|
// in:body |
|
Body values.EmailResetPassReq |
|
} |
|
|
|
// swagger:route POST /account/regist account idOfAccountRegist |
|
// 用户名注册 |
|
// Responses: |
|
// 200:AccountRegistResp |
|
|
|
// swagger:response AccountRegistResp |
|
type AccountRegistResp struct { |
|
// in:body |
|
Body values.LoginResp |
|
} |
|
|
|
// swagger:parameters idOfAccountRegist |
|
type AccountRegistReq struct { |
|
// in:body |
|
Body values.AccountRegistReq |
|
} |
|
|
|
// swagger:route POST /account/login account idOfAccountLogin |
|
// 用户名登录 |
|
// Responses: |
|
// 200:AccountLoginResp |
|
|
|
// swagger:response AccountLoginResp |
|
type AccountLoginResp struct { |
|
// in:body |
|
Body values.LoginResp |
|
} |
|
|
|
// swagger:parameters idOfAccountLogin |
|
type AccountLoginReq struct { |
|
// in:body |
|
Body values.AccountLoginReq |
|
} |
|
|
|
// swagger:route POST /account/resetPass account idOfAccountResetPass |
|
// 用户名重置密码 |
|
// Responses: |
|
// 200:AccountResetPassResp |
|
|
|
// swagger:response AccountResetPassResp |
|
type AccountResetPassResp struct { |
|
// in:body |
|
Body app.R |
|
} |
|
|
|
// swagger:parameters idOfAccountResetPass |
|
type AccountResetPassReq struct { |
|
// in:body |
|
Body values.AccountResetPassReq |
|
}
|
|
|