Documentation
¶
Index ¶
- func Create(token *model.Token) error
- func DecreaseQuota(id string, quota int64) error
- func DecreaseQuotaDirect(id string, quota int64) error
- func Delete(token *model.Token) error
- func DeleteByID(tokenId, userId string) error
- func GetAll(userId string, start, num int, order string) ([]*model.Token, error)
- func GetByID(tokenId string) (*model.Token, error)
- func GetByIDs(tokenId, userId string) (*model.Token, error)
- func GetFirstAvailable(userId string) (*model.Token, error)
- func IncreaseQuota(id string, quota int64) error
- func IncreaseQuotaDirect(id string, quota int64) error
- func Search(userId string, keyword string) ([]*model.Token, error)
- func SelectUpdate(token *model.Token) error
- func Update(token *model.Token) error
- func ValidateUserToken(key string) (*model.Token, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecreaseQuota ¶
func DecreaseQuotaDirect ¶
func DeleteByID ¶
func IncreaseQuota ¶
func IncreaseQuotaDirect ¶
func SelectUpdate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.