Documentation ¶
Index ¶
- func AddUnit(c *gin.Context)
- func CheckTokenValidation(username string, token string) bool
- func DelTokenValidation(username string, token string) bool
- func DeleteUnit(c *gin.Context)
- func GetToken(c *gin.Context)
- func GetUnit(c *gin.Context)
- func GetUnits(c *gin.Context)
- func RegisterUnit(c *gin.Context)
- func SetTokenValidation(username string, token string) bool
- type AddRequest
- type LoginRequest
- type LoginResponse
- type RegisterRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckTokenValidation ¶
func DelTokenValidation ¶
func DeleteUnit ¶
func RegisterUnit ¶
func SetTokenValidation ¶
Types ¶
type AddRequest ¶
type AddRequest struct {
UnitName string `json:"unit_name" binding:"required"`
}
type LoginRequest ¶
type LoginResponse ¶
type RegisterRequest ¶
Click to show internal directories.
Click to hide internal directories.