update(application method delete_applications)
This commit is contained in:
1 parent
c9334e651b
commit
293a9def27
8 files changed
+96
-69
No files matched your search
+2
-2
@@ -17,11 +17,11 @@ var Jwt jwtService
|
||||
|
||||
type jwtService struct{}
|
||||
|
||||
func (s jwtService) Generate(appId int32, expTime int64) (string, error) {
|
||||
func (s jwtService) CreateApplication(appId int32, expTime int64) (string, error) {
|
||||
var (
|
||||
claims = jwt.MapClaims{}
|
||||
created = time.Now()
|
||||
secret = config.GetRemote().(*conf.RemoteConfig).SecretKey
|
||||
secret = config.GetRemote().(*conf.RemoteConfig).ApplicationSecret
|
||||
)
|
||||
|
||||
claims["appId"] = appId
|
||||
|
||||
Reference in new issue
Block a user