Documentation ¶
Index ¶
- func AdminChangePassword(c *gin.Context)
- func AdminUserDelete(c *gin.Context)
- func AuthSession(c *gin.Context)
- func BossRedirectLogin(c *gin.Context)
- func ChangePassword(c *gin.Context)
- func ChangeRuleOfUser(c *gin.Context)
- func CreateRoot(c *gin.Context)
- func CreateTeam(c *gin.Context)
- func CreateUser(c *gin.Context)
- func DeleteTeam(c *gin.Context)
- func ForwardToBossLoginPage(c *gin.Context)
- func GetBossUserInfoByCookie(c *gin.Context)
- func GetTeam(c *gin.Context)
- func GetTeamByName(c *gin.Context)
- func GetUser(c *gin.Context)
- func Login(c *gin.Context)
- func Logout(c *gin.Context)
- func RedirectToOriginalPage(c *gin.Context)
- func Routes(r *gin.Engine)
- func Teams(c *gin.Context)
- func UpdateTeam(c *gin.Context)
- func UpdateUser(c *gin.Context)
- func UserInfo(c *gin.Context)
- func UserList(c *gin.Context)
- type APIAdminChangePassword
- type APIAdminUserDeleteInput
- type APICgPassedInput
- type APICreateTeamInput
- type APIDeleteTeamInput
- type APIGetTeamOutput
- type APILoginInput
- type APIRoleUpdate
- type APITeamInputs
- type APIUpdateTeamInput
- type APIUserInput
- type APIUserUpdateInput
- type BossUserInfoOutputStruct
- type CTeam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthSession ¶
func ChangePassword ¶
func ChangeRuleOfUser ¶
func CreateRoot ¶
func CreateTeam ¶
func CreateUser ¶
func DeleteTeam ¶
func GetBossUserInfoByCookie ¶
func GetTeamByName ¶
func UpdateTeam ¶
func UpdateUser ¶
Types ¶
type APIAdminChangePassword ¶
type APIAdminUserDeleteInput ¶
type APIAdminUserDeleteInput struct {
UserID int `json:"user_id" binding:"required"`
}
type APICgPassedInput ¶
type APICreateTeamInput ¶
type APIDeleteTeamInput ¶
type APIDeleteTeamInput struct {
ID int64 `json:"team_id" binding:"required"`
}
type APILoginInput ¶
type APIRoleUpdate ¶
type APIRoleUpdate struct { UserID int64 `json:"user_id" binding:"required"` Admin string `json:"admin" binding:"required"` }
admin usage
type APITeamInputs ¶
type APIUpdateTeamInput ¶
type APIUserInput ¶
type APIUserUpdateInput ¶
type BossUserInfoOutputStruct ¶
type BossUserInfoOutputStruct struct { Status int Info string Data struct { UserID string `json:"user_id"` UserName string `json:"username"` WeChat string `json:"wechat"` Cell string `json:"cell"` Email string `json:"email"` Telphone string `json:"telphone"` Realname string `json:"realname"` Position string `json:"position"` DepartmentID string `json:"department_id"` TeamID []interface{} `json:"team_id"` Roles []string `json:"roles"` } }
Click to show internal directories.
Click to hide internal directories.