Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginInterface ¶
type LoginInterface interface { // 判断用户是否登录 LoginUser(c *gin.Context) (isLogin bool) // 获取登录系统的URL GetLoginUrl(c *gin.Context) string // 获取不同登录方式下对应的用户列表 GetUserList(c *gin.Context) ([]*metadata.LoginSystemUserInfo, *errors.RawErrorInfo) }
User 登录系统抽象出来接口
type OwnerManager ¶
type OwnerManager struct { Engine *backbone.Engine CacheCli *redis.Client OwnerID string UserName string // contains filtered or unexported fields }
func NewOwnerManager ¶
func NewOwnerManager(userName, ownerID, language string) *OwnerManager
func (*OwnerManager) InitOwner ¶
func (m *OwnerManager) InitOwner() (*metadata.IamPermission, errors.CCErrorCoder)
func (*OwnerManager) SetHttpHeader ¶
func (m *OwnerManager) SetHttpHeader(key, val string)
Click to show internal directories.
Click to hide internal directories.