✨ Bot token aka. API token
This commit is contained in:
@ -46,8 +46,6 @@ type AuthTicket struct {
|
||||
|
||||
Account Account `json:"account"`
|
||||
AccountID uint `json:"account_id"`
|
||||
|
||||
IsApiKey bool `json:"is_api_key"`
|
||||
}
|
||||
|
||||
func (v AuthTicket) IsAvailable() error {
|
||||
|
11
pkg/internal/models/bot.go
Normal file
11
pkg/internal/models/bot.go
Normal file
@ -0,0 +1,11 @@
|
||||
package models
|
||||
|
||||
type ApiKey struct {
|
||||
BaseModel
|
||||
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
Lifecycle *int64 `json:"lifecycle"`
|
||||
Ticket AuthTicket `json:"ticket" gorm:"TicketID"`
|
||||
TicketID uint `json:"ticket_id"`
|
||||
}
|
Reference in New Issue
Block a user