21 lines
378 B
Go
21 lines
378 B
Go
package authentication
|
|
|
|
type TokenType string
|
|
|
|
const AccessToken = "Access"
|
|
const RefreshToken = "Refresh"
|
|
|
|
type AuthInfo struct {
|
|
Uuid string
|
|
User_Id int
|
|
User_Name string
|
|
// User_Email string
|
|
// User_Ref_Id int
|
|
// User_Position_Code string
|
|
}
|
|
|
|
type AuthCfg struct {
|
|
AtSecretKey string `yaml:"atSecretKey"`
|
|
RtSecretKey string `yaml:"rtSecretKey"`
|
|
}
|