You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
379 B
Go
17 lines
379 B
Go
package common
|
|
|
|
// LoginType 自定义登录类型
|
|
type LoginType string
|
|
|
|
// 登录类型
|
|
const (
|
|
Github LoginType = "github" // Github登录
|
|
WeChatMiniApp LoginType = "wechat_mini_app" // 微信小程序登录
|
|
Password LoginType = "password" // 密码登录
|
|
)
|
|
|
|
// String 转换为字符串
|
|
func (t LoginType) String() string {
|
|
return string(t)
|
|
}
|