rbac

package
v0.0.0-...-df7a1b4 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessDecision

func AccessDecision(params []string, accesslist map[string]bool) bool

To test whether permissions

func AccessRegister

func AccessRegister()

check access and register user's nodes

func CheckAccess

func CheckAccess(params []string) bool

Determine whether need to verify

func CheckLogin

func CheckLogin(username string, password string) (user m.User, err error)

check login

func GetAccessList

func GetAccessList(uid int64) (map[string]bool, error)

Access permissions list

Types

type AccessNode

type AccessNode struct {
	Id        int64
	Name      string
	Childrens []*AccessNode
}

type AreasController

type AreasController struct {
	CommonController
}

oprations for Areas

func (*AreasController) Delete

func (c *AreasController) Delete()

@Title Delete @Description delete the Areas @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*AreasController) GetAll

func (c *AreasController) GetAll()

@Title Get All @Description get Areas @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Areas @Failure 403 @router / [get]

func (*AreasController) GetOne

func (c *AreasController) GetOne()

@Title Get @Description get Areas by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Areas @Failure 403 :id is empty @router /:id [get]

func (*AreasController) Post

func (c *AreasController) Post()

@Title Post @Description create Areas @Param body body models.Areas true "body for Areas content" @Success 201 {int} models.Areas @Failure 403 body is empty @router / [post]

func (*AreasController) Put

func (c *AreasController) Put()

@Title Update @Description update the Areas @Param id path string true "The id you want to update" @Param body body models.Areas true "body for Areas content" @Success 200 {object} models.Areas @Failure 403 :id is not int @router /:id [put]

func (*AreasController) URLMapping

func (c *AreasController) URLMapping()

type Attributes

type Attributes struct {
	Url   string `json:"url"`
	Price int64  `json:"price"`
}

type BaseBizdateController

type BaseBizdateController struct {
	CommonController
}

oprations for BaseBizdate

func (*BaseBizdateController) Delete

func (c *BaseBizdateController) Delete()

@Title Delete @Description delete the BaseBizdate @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*BaseBizdateController) GetAll

func (c *BaseBizdateController) GetAll()

@Title Get All @Description get BaseBizdate @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an int64eger" @Param offset query string false "Start position of result set. Must be an int64eger" @Success 200 {object} models.BaseBizdate @Failure 403 @router / [get]

func (*BaseBizdateController) GetOne

func (c *BaseBizdateController) GetOne()

@Title Get @Description get BaseBizdate by id @Param id path string true "The key for staticblock" @Success 200 {object} models.BaseBizdate @Failure 403 :id is empty @router /:id [get]

func (*BaseBizdateController) Index

func (this *BaseBizdateController) Index()

func (*BaseBizdateController) Post

func (c *BaseBizdateController) Post()

@Title Post @Description create BaseBizdate @Param body body models.BaseBizdate true "body for BaseBizdate content" @Success 201 {int64} models.BaseBizdate @Failure 403 body is empty @router / [post]

func (*BaseBizdateController) Put

func (c *BaseBizdateController) Put()

@Title Update @Description update the BaseBizdate @Param id path string true "The id you want to update" @Param body body models.BaseBizdate true "body for BaseBizdate content" @Success 200 {object} models.BaseBizdate @Failure 403 :id is not int64 @router /:id [put]

func (*BaseBizdateController) URLMapping

func (c *BaseBizdateController) URLMapping()

type BaseCurrencyController

type BaseCurrencyController struct {
	CommonController
}

oprations for BaseCurrency

func (*BaseCurrencyController) Delete

func (c *BaseCurrencyController) Delete()

@Title Delete @Description delete the BaseCurrency @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*BaseCurrencyController) GetAll

func (c *BaseCurrencyController) GetAll()

@Title Get All @Description get BaseCurrency @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an int64eger" @Param offset query string false "Start position of result set. Must be an int64eger" @Success 200 {object} models.BaseCurrency @Failure 403 @router / [get]

func (*BaseCurrencyController) GetOne

func (c *BaseCurrencyController) GetOne()

@Title Get @Description get BaseCurrency by id @Param id path string true "The key for staticblock" @Success 200 {object} models.BaseCurrency @Failure 403 :id is empty @router /:id [get]

func (*BaseCurrencyController) Index

func (this *BaseCurrencyController) Index()

func (*BaseCurrencyController) Post

func (c *BaseCurrencyController) Post()

@Title Post @Description create BaseCurrency @Param body body models.BaseCurrency true "body for BaseCurrency content" @Success 201 {int64} models.BaseCurrency @Failure 403 body is empty @router / [post]

func (*BaseCurrencyController) Put

func (c *BaseCurrencyController) Put()

@Title Update @Description update the BaseCurrency @Param id path string true "The id you want to update" @Param body body models.BaseCurrency true "body for BaseCurrency content" @Success 200 {object} models.BaseCurrency @Failure 403 :id is not int64 @router /:id [put]

func (*BaseCurrencyController) URLMapping

func (c *BaseCurrencyController) URLMapping()

type BaseExchangeRateController

type BaseExchangeRateController struct {
	CommonController
}

oprations for BaseExchangeRate

func (*BaseExchangeRateController) Delete

func (c *BaseExchangeRateController) Delete()

@Title Delete @Description delete the BaseExchangeRate @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*BaseExchangeRateController) GetAll

func (c *BaseExchangeRateController) GetAll()

@Title Get All @Description get BaseExchangeRate @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an int64eger" @Param offset query string false "Start position of result set. Must be an int64eger" @Success 200 {object} models.BaseExchangeRate @Failure 403 @router / [get]

func (*BaseExchangeRateController) GetOne

func (c *BaseExchangeRateController) GetOne()

@Title Get @Description get BaseExchangeRate by id @Param id path string true "The key for staticblock" @Success 200 {object} models.BaseExchangeRate @Failure 403 :id is empty @router /:id [get]

func (*BaseExchangeRateController) Index

func (this *BaseExchangeRateController) Index()

func (*BaseExchangeRateController) Post

func (c *BaseExchangeRateController) Post()

@Title Post @Description create BaseExchangeRate @Param body body models.BaseExchangeRate true "body for BaseExchangeRate content" @Success 201 {int64} models.BaseExchangeRate @Failure 403 body is empty @router / [post]

func (*BaseExchangeRateController) Put

func (c *BaseExchangeRateController) Put()

@Title Update @Description update the BaseExchangeRate @Param id path string true "The id you want to update" @Param body body models.BaseExchangeRate true "body for BaseExchangeRate content" @Success 200 {object} models.BaseExchangeRate @Failure 403 :id is not int64 @router /:id [put]

func (*BaseExchangeRateController) URLMapping

func (c *BaseExchangeRateController) URLMapping()

type BaseKehuController

type BaseKehuController struct {
	CommonController
}

oprations for BaseKehu

func (*BaseKehuController) Delete

func (c *BaseKehuController) Delete()

@Title Delete @Description delete the BaseKehu @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*BaseKehuController) GetAll

func (c *BaseKehuController) GetAll()

@Title Get All @Description get BaseKehu @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an int64eger" @Param offset query string false "Start position of result set. Must be an int64eger" @Success 200 {object} models.BaseKehu @Failure 403 @router / [get]

func (*BaseKehuController) GetOne

func (c *BaseKehuController) GetOne()

@Title Get @Description get BaseKehu by id @Param id path string true "The key for staticblock" @Success 200 {object} models.BaseKehu @Failure 403 :id is empty @router /:id [get]

func (*BaseKehuController) Index

func (this *BaseKehuController) Index()

func (*BaseKehuController) Post

func (c *BaseKehuController) Post()

@Title Post @Description create BaseKehu @Param body body models.BaseKehu true "body for BaseKehu content" @Success 201 {int64} models.BaseKehu @Failure 403 body is empty @router / [post]

func (*BaseKehuController) Put

func (c *BaseKehuController) Put()

@Title Update @Description update the BaseKehu @Param id path string true "The id you want to update" @Param body body models.BaseKehu true "body for BaseKehu content" @Success 200 {object} models.BaseKehu @Failure 403 :id is not int64 @router /:id [put]

func (*BaseKehuController) URLMapping

func (c *BaseKehuController) URLMapping()

type CommonController

type CommonController struct {
	beego.Controller
	Templatetype string //ui template type
}

func (*CommonController) GetTemplatetype

func (this *CommonController) GetTemplatetype() string

func (*CommonController) GetTree

func (this *CommonController) GetTree() []Tree

func (*CommonController) Rsp

func (this *CommonController) Rsp(status bool, str string)

type DPSCklxController

type DPSCklxController struct {
	CommonController
}

oprations for DPSCklx

func (*DPSCklxController) Delete

func (c *DPSCklxController) Delete()

@Title Delete @Description delete the DPSCklx @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*DPSCklxController) GetAll

func (c *DPSCklxController) GetAll()

@Title Get All @Description get DPSCklx @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an int64eger" @Param offset query string false "Start position of result set. Must be an int64eger" @Success 200 {object} models.DPSCklx @Failure 403 @router / [get]

func (*DPSCklxController) GetOne

func (c *DPSCklxController) GetOne()

@Title Get @Description get DPSCklx by id @Param id path string true "The key for staticblock" @Success 200 {object} models.DPSCklx @Failure 403 :id is empty @router /:id [get]

func (*DPSCklxController) Index

func (this *DPSCklxController) Index()

func (*DPSCklxController) Post

func (c *DPSCklxController) Post()

@Title Post @Description create DPSCklx @Param body body models.DPSCklx true "body for DPSCklx content" @Success 201 {int64} models.DPSCklx @Failure 403 body is empty @router / [post]

func (*DPSCklxController) Put

func (c *DPSCklxController) Put()

@Title Update @Description update the DPSCklx @Param id path string true "The id you want to update" @Param body body models.DPSCklx true "body for DPSCklx content" @Success 200 {object} models.DPSCklx @Failure 403 :id is not int64 @router /:id [put]

func (*DPSCklxController) URLMapping

func (c *DPSCklxController) URLMapping()

type DPSCkzhController

type DPSCkzhController struct {
	CommonController
}

oprations for DPSCkzh

func (*DPSCkzhController) Delete

func (c *DPSCkzhController) Delete()

@Title Delete @Description delete the DPSCkzh @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*DPSCkzhController) GetAll

func (c *DPSCkzhController) GetAll()

@Title Get All @Description get DPSCkzh @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an int64eger" @Param offset query string false "Start position of result set. Must be an int64eger" @Success 200 {object} models.DPSCkzh @Failure 403 @router / [get]

func (*DPSCkzhController) GetOne

func (c *DPSCkzhController) GetOne()

@Title Get @Description get DPSCkzh by id @Param id path string true "The key for staticblock" @Success 200 {object} models.DPSCkzh @Failure 403 :id is empty @router /:id [get]

func (*DPSCkzhController) Index

func (this *DPSCkzhController) Index()

func (*DPSCkzhController) Post

func (c *DPSCkzhController) Post()

@Title Post @Description create DPSCkzh @Param body body models.DPSCkzh true "body for DPSCkzh content" @Success 201 {int64} models.DPSCkzh @Failure 403 body is empty @router / [post]

func (*DPSCkzhController) Put

func (c *DPSCkzhController) Put()

@Title Update @Description update the DPSCkzh @Param id path string true "The id you want to update" @Param body body models.DPSCkzh true "body for DPSCkzh content" @Success 200 {object} models.DPSCkzh @Failure 403 :id is not int64 @router /:id [put]

func (*DPSCkzhController) URLMapping

func (c *DPSCkzhController) URLMapping()

type DPSCkzhzbxController

type DPSCkzhzbxController struct {
	CommonController
}

oprations for DPSCkzhzbx

func (*DPSCkzhzbxController) Delete

func (c *DPSCkzhzbxController) Delete()

@Title Delete @Description delete the DPSCkzhzbx @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*DPSCkzhzbxController) GetAll

func (c *DPSCkzhzbxController) GetAll()

@Title Get All @Description get DPSCkzhzbx @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an int64eger" @Param offset query string false "Start position of result set. Must be an int64eger" @Success 200 {object} models.DPSCkzhzbx @Failure 403 @router / [get]

func (*DPSCkzhzbxController) GetOne

func (c *DPSCkzhzbxController) GetOne()

@Title Get @Description get DPSCkzhzbx by id @Param id path string true "The key for staticblock" @Success 200 {object} models.DPSCkzhzbx @Failure 403 :id is empty @router /:id [get]

func (*DPSCkzhzbxController) Index

func (this *DPSCkzhzbxController) Index()

func (*DPSCkzhzbxController) Post

func (c *DPSCkzhzbxController) Post()

@Title Post @Description create DPSCkzhzbx @Param body body models.DPSCkzhzbx true "body for DPSCkzhzbx content" @Success 201 {int64} models.DPSCkzhzbx @Failure 403 body is empty @router / [post]

func (*DPSCkzhzbxController) Put

func (c *DPSCkzhzbxController) Put()

@Title Update @Description update the DPSCkzhzbx @Param id path string true "The id you want to update" @Param body body models.DPSCkzhzbx true "body for DPSCkzhzbx content" @Success 200 {object} models.DPSCkzhzbx @Failure 403 :id is not int64 @router /:id [put]

func (*DPSCkzhzbxController) URLMapping

func (c *DPSCkzhzbxController) URLMapping()

type DPSDetailController

type DPSDetailController struct {
	CommonController
}

oprations for DPSDetail

func (*DPSDetailController) Delete

func (c *DPSDetailController) Delete()

@Title Delete @Description delete the DPSDetail @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*DPSDetailController) GetAll

func (c *DPSDetailController) GetAll()

@Title Get All @Description get DPSDetail @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an int64eger" @Param offset query string false "Start position of result set. Must be an int64eger" @Success 200 {object} models.DPSDetail @Failure 403 @router / [get]

func (*DPSDetailController) GetOne

func (c *DPSDetailController) GetOne()

@Title Get @Description get DPSDetail by id @Param id path string true "The key for staticblock" @Success 200 {object} models.DPSDetail @Failure 403 :id is empty @router /:id [get]

func (*DPSDetailController) Index

func (this *DPSDetailController) Index()

func (*DPSDetailController) Post

func (c *DPSDetailController) Post()

@Title Post @Description create DPSDetail @Param body body models.DPSDetail true "body for DPSDetail content" @Success 201 {int64} models.DPSDetail @Failure 403 body is empty @router / [post]

func (*DPSDetailController) Put

func (c *DPSDetailController) Put()

@Title Update @Description update the DPSDetail @Param id path string true "The id you want to update" @Param body body models.DPSDetail true "body for DPSDetail content" @Success 200 {object} models.DPSDetail @Failure 403 :id is not int64 @router /:id [put]

func (*DPSDetailController) URLMapping

func (c *DPSDetailController) URLMapping()

type DPSOrgzbxController

type DPSOrgzbxController struct {
	CommonController
}

oprations for DPSOrgzbx

func (*DPSOrgzbxController) Delete

func (c *DPSOrgzbxController) Delete()

@Title Delete @Description delete the DPSOrgzbx @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*DPSOrgzbxController) GetAll

func (c *DPSOrgzbxController) GetAll()

@Title Get All @Description get DPSOrgzbx @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an int64eger" @Param offset query string false "Start position of result set. Must be an int64eger" @Success 200 {object} models.DPSOrgzbx @Failure 403 @router / [get]

func (*DPSOrgzbxController) GetOne

func (c *DPSOrgzbxController) GetOne()

@Title Get @Description get DPSOrgzbx by id @Param id path string true "The key for staticblock" @Success 200 {object} models.DPSOrgzbx @Failure 403 :id is empty @router /:id [get]

func (*DPSOrgzbxController) Index

func (this *DPSOrgzbxController) Index()

func (*DPSOrgzbxController) Post

func (c *DPSOrgzbxController) Post()

@Title Post @Description create DPSOrgzbx @Param body body models.DPSOrgzbx true "body for DPSOrgzbx content" @Success 201 {int64} models.DPSOrgzbx @Failure 403 body is empty @router / [post]

func (*DPSOrgzbxController) Put

func (c *DPSOrgzbxController) Put()

@Title Update @Description update the DPSOrgzbx @Param id path string true "The id you want to update" @Param body body models.DPSOrgzbx true "body for DPSOrgzbx content" @Success 200 {object} models.DPSOrgzbx @Failure 403 :id is not int64 @router /:id [put]

func (*DPSOrgzbxController) URLMapping

func (c *DPSOrgzbxController) URLMapping()

type DocLogController

type DocLogController struct {
	beego.Controller
}

oprations for DocLog

func (*DocLogController) Delete

func (c *DocLogController) Delete()

@Title Delete @Description delete the DocLog @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*DocLogController) GetAll

func (c *DocLogController) GetAll()

@Title Get All @Description get DocLog @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.DocLog @Failure 403 @router / [get]

func (*DocLogController) GetOne

func (c *DocLogController) GetOne()

@Title Get @Description get DocLog by id @Param id path string true "The key for staticblock" @Success 200 {object} models.DocLog @Failure 403 :id is empty @router /:id [get]

func (*DocLogController) Post

func (c *DocLogController) Post()

@Title Post @Description create DocLog @Param body body models.DocLog true "body for DocLog content" @Success 201 {int} models.DocLog @Failure 403 body is empty @router / [post]

func (*DocLogController) Put

func (c *DocLogController) Put()

@Title Update @Description update the DocLog @Param id path string true "The id you want to update" @Param body body models.DocLog true "body for DocLog content" @Success 200 {object} models.DocLog @Failure 403 :id is not int @router /:id [put]

func (*DocLogController) URLMapping

func (c *DocLogController) URLMapping()

type DocaccessController

type DocaccessController struct {
	beego.Controller
}

oprations for Docaccess

func (*DocaccessController) Delete

func (c *DocaccessController) Delete()

@Title Delete @Description delete the Docaccess @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*DocaccessController) GetAll

func (c *DocaccessController) GetAll()

@Title Get All @Description get Docaccess @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Docaccess @Failure 403 @router / [get]

func (*DocaccessController) GetOne

func (c *DocaccessController) GetOne()

@Title Get @Description get Docaccess by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Docaccess @Failure 403 :id is empty @router /:id [get]

func (*DocaccessController) Post

func (c *DocaccessController) Post()

@Title Post @Description create Docaccess @Param body body models.Docaccess true "body for Docaccess content" @Success 201 {int} models.Docaccess @Failure 403 body is empty @router / [post]

func (*DocaccessController) Put

func (c *DocaccessController) Put()

@Title Update @Description update the Docaccess @Param id path string true "The id you want to update" @Param body body models.Docaccess true "body for Docaccess content" @Success 200 {object} models.Docaccess @Failure 403 :id is not int @router /:id [put]

func (*DocaccessController) URLMapping

func (c *DocaccessController) URLMapping()

type DocgroupController

type DocgroupController struct {
	CommonController
}

oprations for Groups

func (*DocgroupController) Delete

func (c *DocgroupController) Delete()

@Title Delete @Description delete the Groups @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*DocgroupController) GetAll

func (c *DocgroupController) GetAll()

@Title Get All @Description get Groups @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an int64eger" @Param offset query string false "Start position of result set. Must be an int64eger" @Success 200 {object} models.Groups @Failure 403 @router / [get]

func (*DocgroupController) GetOne

func (c *DocgroupController) GetOne()

@Title Get @Description get Groups by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Groups @Failure 403 :id is empty @router /:id [get]

func (*DocgroupController) Index

func (this *DocgroupController) Index()

func (*DocgroupController) Post

func (c *DocgroupController) Post()

@Title Post @Description create Groups @Param body body models.Groups true "body for Groups content" @Success 201 {int64} models.Groups @Failure 403 body is empty @router / [post]

func (*DocgroupController) Put

func (c *DocgroupController) Put()

@Title Update @Description update the Groups @Param id path string true "The id you want to update" @Param body body models.Groups true "body for Groups content" @Success 200 {object} models.Groups @Failure 403 :id is not int64 @router /:id [put]

func (*DocgroupController) URLMapping

func (c *DocgroupController) URLMapping()

type DocnameController

type DocnameController struct {
	CommonController
}

oprations for Docname

func (*DocnameController) Delete

func (c *DocnameController) Delete()

@Title Delete @Description delete the Docname @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*DocnameController) GetAll

func (c *DocnameController) GetAll()

@Title Get All @Description get Docname @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an int64eger" @Param offset query string false "Start position of result set. Must be an int64eger" @Success 200 {object} models.Docname @Failure 403 @router / [get]

func (*DocnameController) GetOne

func (c *DocnameController) GetOne()

@Title Get @Description get Docname by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Docname @Failure 403 :id is empty @router /:id [get]

func (*DocnameController) Index

func (this *DocnameController) Index()

func (*DocnameController) Post

func (c *DocnameController) Post()

@Title Post @Description create Docname @Param body body models.Docname true "body for Docname content" @Success 201 {int64} models.Docname @Failure 403 body is empty @router / [post]

func (*DocnameController) Put

func (c *DocnameController) Put()

@Title Update @Description update the Docname @Param id path string true "The id you want to update" @Param body body models.Docname true "body for Docname content" @Success 200 {object} models.Docname @Failure 403 :id is not int64 @router /:id [put]

func (*DocnameController) URLMapping

func (c *DocnameController) URLMapping()

type DownloadtracController

type DownloadtracController struct {
	CommonController
}

oprations for Downloadtrac

func (*DownloadtracController) Delete

func (c *DownloadtracController) Delete()

@Title Delete @Description delete the Downloadtrac @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*DownloadtracController) GetAll

func (c *DownloadtracController) GetAll()

@Title Get All @Description get Downloadtrac @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Downloadtrac @Failure 403 @router / [get]

func (*DownloadtracController) GetOne

func (c *DownloadtracController) GetOne()

@Title Get @Description get Downloadtrac by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Downloadtrac @Failure 403 :id is empty @router /:id [get]

func (*DownloadtracController) Index

func (this *DownloadtracController) Index()

func (*DownloadtracController) Post

func (c *DownloadtracController) Post()

@Title Post @Description create Downloadtrac @Param body body models.Downloadtrac true "body for Downloadtrac content" @Success 201 {int} models.Downloadtrac @Failure 403 body is empty @router / [post]

func (*DownloadtracController) Put

func (c *DownloadtracController) Put()

@Title Update @Description update the Downloadtrac @Param id path string true "The id you want to update" @Param body body models.Downloadtrac true "body for Downloadtrac content" @Success 200 {object} models.Downloadtrac @Failure 403 :id is not int @router /:id [put]

func (*DownloadtracController) URLMapping

func (c *DownloadtracController) URLMapping()

type GroupController

type GroupController struct {
	CommonController
}

func (*GroupController) AddGroup

func (this *GroupController) AddGroup()

func (*GroupController) DelGroup

func (this *GroupController) DelGroup()

func (*GroupController) Index

func (this *GroupController) Index()

func (*GroupController) UpdateGroup

func (this *GroupController) UpdateGroup()

type MainController

type MainController struct {
	CommonController
}

func (*MainController) Changepwd

func (this *MainController) Changepwd()

修改密码

func (*MainController) Index

func (this *MainController) Index()

首页

func (*MainController) Login

func (this *MainController) Login()

登录

func (*MainController) Logout

func (this *MainController) Logout()

退出

type NodeController

type NodeController struct {
	CommonController
}

func (*NodeController) AddAndEdit

func (this *NodeController) AddAndEdit()

func (*NodeController) DelNode

func (this *NodeController) DelNode()

func (*NodeController) Index

func (this *NodeController) Index()

func (*NodeController) Rsp

func (this *NodeController) Rsp(status bool, str string)

type PdftracController

type PdftracController struct {
	beego.Controller
}

oprations for Pdftrac

func (*PdftracController) Delete

func (c *PdftracController) Delete()

@Title Delete @Description delete the Pdftrac @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*PdftracController) GetAll

func (c *PdftracController) GetAll()

@Title Get All @Description get Pdftrac @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Pdftrac @Failure 403 @router / [get]

func (*PdftracController) GetOne

func (c *PdftracController) GetOne()

@Title Get @Description get Pdftrac by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Pdftrac @Failure 403 :id is empty @router /:id [get]

func (*PdftracController) Post

func (c *PdftracController) Post()

@Title Post @Description create Pdftrac @Param body body models.Pdftrac true "body for Pdftrac content" @Success 201 {int} models.Pdftrac @Failure 403 body is empty @router / [post]

func (*PdftracController) Put

func (c *PdftracController) Put()

@Title Update @Description update the Pdftrac @Param id path string true "The id you want to update" @Param body body models.Pdftrac true "body for Pdftrac content" @Success 200 {object} models.Pdftrac @Failure 403 :id is not int @router /:id [put]

func (*PdftracController) URLMapping

func (c *PdftracController) URLMapping()

type RoleController

type RoleController struct {
	CommonController
}

func (*RoleController) AccessToNode

func (this *RoleController) AccessToNode()

func (*RoleController) AddAccess

func (this *RoleController) AddAccess()

func (*RoleController) AddAndEdit

func (this *RoleController) AddAndEdit()

func (*RoleController) AddRoleToUser

func (this *RoleController) AddRoleToUser()

func (*RoleController) DelRole

func (this *RoleController) DelRole()

func (*RoleController) Getlist

func (this *RoleController) Getlist()

func (*RoleController) Index

func (this *RoleController) Index()

func (*RoleController) RoleToUserList

func (this *RoleController) RoleToUserList()

type RolesController

type RolesController struct {
	beego.Controller
}

oprations for Roles

func (*RolesController) Delete

func (c *RolesController) Delete()

@Title Delete @Description delete the Roles @Param id path string true "The id you want to delete" @Success 200 {string} delete success! @Failure 403 id is empty @router /:id [delete]

func (*RolesController) GetAll

func (c *RolesController) GetAll()

@Title Get All @Description get Roles @Param query query string false "Filter. e.g. col1:v1,col2:v2 ..." @Param fields query string false "Fields returned. e.g. col1,col2 ..." @Param sortby query string false "Sorted-by fields. e.g. col1,col2 ..." @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." @Param limit query string false "Limit the size of result set. Must be an integer" @Param offset query string false "Start position of result set. Must be an integer" @Success 200 {object} models.Roles @Failure 403 @router / [get]

func (*RolesController) GetOne

func (c *RolesController) GetOne()

@Title Get @Description get Roles by id @Param id path string true "The key for staticblock" @Success 200 {object} models.Roles @Failure 403 :id is empty @router /:id [get]

func (*RolesController) Post

func (c *RolesController) Post()

@Title Post @Description create Roles @Param body body models.Roles true "body for Roles content" @Success 201 {int} models.Roles @Failure 403 body is empty @router / [post]

func (*RolesController) Put

func (c *RolesController) Put()

@Title Update @Description update the Roles @Param id path string true "The id you want to update" @Param body body models.Roles true "body for Roles content" @Success 200 {object} models.Roles @Failure 403 :id is not int @router /:id [put]

func (*RolesController) URLMapping

func (c *RolesController) URLMapping()

type Tree

type Tree struct {
	Id         int64      `json:"id"`
	Text       string     `json:"text"`
	IconCls    string     `json:"iconCls"`
	Checked    string     `json:"checked"`
	State      string     `json:"state"`
	Children   []Tree     `json:"children"`
	Attributes Attributes `json:"attributes"`
}

type UserController

type UserController struct {
	CommonController
}

func (*UserController) AddUser

func (this *UserController) AddUser()

func (*UserController) DelUser

func (this *UserController) DelUser()

func (*UserController) Index

func (this *UserController) Index()

func (*UserController) UpdateUser

func (this *UserController) UpdateUser()

Jump to

Keyboard shortcuts

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