permission

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppUserController

type AppUserController struct {
	base.APIController
}

操作AppUser相关资源

func (*AppUserController) Create

func (c *AppUserController) Create()

@Title Create @Description create app @Param body body models.AppUser true "The app content" @Success 200 return models.AppUser success @router / [post]

func (*AppUserController) Delete

func (c *AppUserController) Delete()

@Title Delete @Description delete the AppUser @Param id path int true "The id you want to delete" @Param logical query bool false "is logical deletion,default true" @Success 200 {string} delete success! @router /:id [delete]

func (*AppUserController) Get

func (c *AppUserController) Get()

@Title Get @Description find Object by id @Param id path int true "the id you want to get" @Success 200 {object} models.AppUser success @router /:id [get]

func (*AppUserController) GetPermissionByApp

func (c *AppUserController) GetPermissionByApp()

@Title GetPerApp @Description get PerApp by appId @Param id path int true "the app id" @Success 200 {object} models.TypeApp success @router /permissions/:id [get]

func (*AppUserController) List

func (c *AppUserController) List()

@Title List/ @Description get all appUser @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Success 200 {object} []models.AppUser success @router / [get]

func (*AppUserController) Prepare

func (c *AppUserController) Prepare()

func (*AppUserController) URLMapping

func (c *AppUserController) URLMapping()

func (*AppUserController) Update

func (c *AppUserController) Update()

@Title Update @Description update the AppUser @Param id path int true "The id you want to update" @Param body body models.AppUser true "The body" @Success 200 models.Namespace success @router /:id [put]

type GroupController

type GroupController struct {
	base.APIController
}

func (*GroupController) Create

func (c *GroupController) Create()

@Title Create @Description create group @Param body body models.Group true "The group content" @Success 200 return models.Group success @router / [post]

func (*GroupController) Delete

func (c *GroupController) Delete()

@Title Delete @Description delete the Group @Param id path int true "The id you want to delete" @Success 200 {string} delete success! @router /:id [delete]

func (*GroupController) Get

func (c *GroupController) Get()

@Title Get @Description find Object by id @Param id path int true "the id you want to get" @Success 200 {object} models.Group success @router /:id [get]

func (*GroupController) List

func (c *GroupController) List()

@Title GetAll @Description get all group @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Success 200 {object} []models.Group success @router / [get]

func (*GroupController) Prepare

func (c *GroupController) Prepare()

func (*GroupController) URLMapping

func (c *GroupController) URLMapping()

func (*GroupController) Update

func (c *GroupController) Update()

@Title Update @Description update the group @Param id path int true "The id you want to update" @Param body body models.Group true "The body" @Success 200 models.Group success @router /:id [put]

type NamespaceUserController

type NamespaceUserController struct {
	base.APIController
}

操作NamespaceUser相关资源

func (*NamespaceUserController) Create

func (c *NamespaceUserController) Create()

@Title Create @Description create namespaceUser @Param body body models.NamespaceUser true "The namespaceUser content" @Success 200 return models.NamespaceUser success @router / [post]

func (*NamespaceUserController) Delete

func (c *NamespaceUserController) Delete()

@Title Delete @Description delete the NamespaceUser @Param id path int true "The id you want to delete" @Param logical query bool false "is logical deletion,default true" @Success 200 {string} delete success! @router /:id [delete]

func (*NamespaceUserController) Get

func (c *NamespaceUserController) Get()

@Title Get @Description find Object by id @Param id path int true "the id you want to get" @Success 200 {object} models.NamespaceUser success @router /:id [get]

func (*NamespaceUserController) GetPermissionByNS

func (c *NamespaceUserController) GetPermissionByNS()

@Title GetPerNS @Description get PerNS by nsId @Param id path int true "the ns id" @Success 200 {object} models.TypeApp success @router /permissions/:id [get]

func (*NamespaceUserController) List

func (c *NamespaceUserController) List()

@Title List/ @Description get all namespaceUser @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Success 200 {object} []models.NamespaceUser success @router / [get]

func (*NamespaceUserController) Prepare

func (c *NamespaceUserController) Prepare()

func (*NamespaceUserController) URLMapping

func (c *NamespaceUserController) URLMapping()

func (*NamespaceUserController) Update

func (c *NamespaceUserController) Update()

@Title Update @Description update the NamespaceUser @Param id path int true "The id you want to update" @Param body body models.NamespaceUser true "The body" @Success 200 models.Namespace success @router /:id [put]

type PermissionController

type PermissionController struct {
	base.APIController
}

func (*PermissionController) Create

func (c *PermissionController) Create()

@Title Create @Description create permission @Param body body models.Permission true "The permission content" @Success 200 return models.Permission success @router / [post]

func (*PermissionController) Delete

func (c *PermissionController) Delete()

@Title Delete @Description delete the Permission @Param id path int true "The id you want to delete" @Success 200 {string} delete success! @router /:id [delete]

func (*PermissionController) Get

func (c *PermissionController) Get()

@Title Get @Description find Object by id @Param id path int true "the id you want to get" @Success 200 {object} models.Permission success @router /:id [get]

func (*PermissionController) List

func (c *PermissionController) List()

@Title GetAll @Description get all permission @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Success 200 {object} []models.Permission success @router / [get]

func (*PermissionController) Prepare

func (c *PermissionController) Prepare()

func (*PermissionController) URLMapping

func (c *PermissionController) URLMapping()

func (*PermissionController) Update

func (c *PermissionController) Update()

@Title Update @Description update the permission @Param id path int true "The id you want to update" @Param body body models.Permission true "The body" @Success 200 models.Permission success @router /:id [put]

type UserController

type UserController struct {
	base.APIController
}

func (*UserController) Create

func (c *UserController) Create()

@Title Create @Description create user @Param body body models.User true "The user content" @Success 200 return models.User success @router / [post]

func (*UserController) Delete

func (c *UserController) Delete()

@Title Delete @Description delete the User @Param id path int true "The id you want to delete" @Success 200 {string} delete success! @router /:id [delete]

func (*UserController) Get

func (c *UserController) Get()

@Title Get @Description find Object by id @Param id path int true "the id you want to get" @Success 200 {object} models.User success @router /:id [get]

func (*UserController) GetNames

func (c *UserController) GetNames()

@Title GetNames/ @Description get all id and names @Success 200 {object} []models.User success @router /names [get]

func (*UserController) List

func (c *UserController) List()

@Title GetAll @Description get all user @Param pageNo query int false "the page current no" @Param pageSize query int false "the page size" @Success 200 {object} []models.User success @router / [get]

func (*UserController) Prepare

func (c *UserController) Prepare()

func (*UserController) ResetPassword

func (c *UserController) ResetPassword()

@Title Update @Description update the user admin @Param id path int true "The id you want to update" @Param body body Object true "The body" @Success 200 models.User success @router /:id/resetpassword [put]

func (*UserController) URLMapping

func (c *UserController) URLMapping()

func (*UserController) Update

func (c *UserController) Update()

@Title Update @Description update the user @Param id path int true "The id you want to update" @Param body body models.User true "The body" @Success 200 models.User success @router /:id [put]

func (*UserController) UpdateAdmin

func (c *UserController) UpdateAdmin()

@Title Update @Description update the user admin @Param id path int true "The id you want to update" @Param body body models.User true "The body" @Success 200 models.User success @router /:id/admin [put]

func (*UserController) UserStatistics

func (c *UserController) UserStatistics()

@Title user statistics @Description user count statistics @Success 200 {object} models.AppCount success @router /statistics [get]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL