improve: 优化包引用

This commit is contained in:
Mmx233
2022-10-21 13:59:19 +08:00
parent 9c2ea271a9
commit bb6803e04c
9 changed files with 41 additions and 52 deletions

17
v1/config.go Normal file
View File

@@ -0,0 +1,17 @@
package BitSrun
func GenerateLoginInfo(Form *LoginForm, Meta *LoginMeta) *LoginContext {
return &LoginContext{
Meta: Meta,
Form: &LoginForm{
UserName: func() string {
if Form.UserType == "" {
return Form.UserName
} else {
return Form.UserName + "@" + Form.UserType
}
}(),
PassWord: Form.PassWord,
},
}
}