login_token.go 423 字节
package domain

const (
	loginTokenSecret string = "bbe35ad433dd8e67"
)

type LoginToken struct {
	Account      string `json:"account"`
	CompanyId    int64  `json:"companyId"`
	DepartmentId int64  `json:"departmentId"`
}

func (t *LoginToken) GenerateAccessToken() error {

	return nil
}

func (t *LoginToken) GenerateRefreshToken() error {

	return nil
}

func (t *LoginToken) ParseToken(str string) error {
	return nil
}