Documentation ¶
Index ¶
- Variables
- type BASEController
- type COMMONController
- func (this *COMMONController) DeCompressZip(zipfilename string, unzipdir string) (err error, unzipfilenames []string)
- func (ctl *COMMONController) GetCurrentDirectory() string
- func (ctl *COMMONController) GetExt(filename string) string
- func (this *COMMONController) GetFileContentAsStringLines(filepath string) ([]string, error)
- func (ctl *COMMONController) GetFilename(filename string) string
- func (ctl *COMMONController) Getgoprojectnamebygopath(gopath string) string
- func (this *COMMONController) IsFDexists(filePath string) bool
- func (this *COMMONController) IsFileIncludestring(filePath string, includedstr string) bool
- func (this *COMMONController) Readfile2string(filePath string, charset string) (s string, err1 error)
- func (this *COMMONController) Readfilefirstline(filePath string, charset string) (s string, err1 error)
- func (ctl *COMMONController) Replacefilecontent(filepath string, fromstr string, tostr string) error
- func (ctl *COMMONController) Uploadfile()
- type DEVController
- func (ctl *DEVController) Createcomponent()
- func (ctl *DEVController) Deletecomponent()
- func (this *DEVController) Execmd(cmdstr string, arg ...string) error
- func (ctl *DEVController) Getallcomponent()
- func (ctl *DEVController) Getallcomponentoptions()
- func (ctl *DEVController) Getcomponent()
- func (ctl *DEVController) Getcomponenttreejson()
- func (this *DEVController) IsFileIncludestring(filePath string, includedstr string) bool
- func (ctl *DEVController) Savecomponent()
- type ENUMController
- type ENUMSEARCHController
- type LOGINController
- type MASTERController
- func (ctl *MASTERController) Deletegroup()
- func (ctl *MASTERController) Deletegroupprivilege()
- func (ctl *MASTERController) Deletemodual()
- func (ctl *MASTERController) Deletemodualtemplate()
- func (ctl *MASTERController) Deleteorg()
- func (ctl *MASTERController) Deleteorgprivilege()
- func (ctl *MASTERController) Deleterole()
- func (ctl *MASTERController) Deleteroleprivilege()
- func (ctl *MASTERController) Deleteuser()
- func (ctl *MASTERController) Deleteuserprivilege()
- func (ctl *MASTERController) Getallgroup()
- func (ctl *MASTERController) Getallmodual()
- func (ctl *MASTERController) Getallmodualoptions()
- func (ctl *MASTERController) Getallorg()
- func (ctl *MASTERController) Getallorgoptions()
- func (ctl *MASTERController) Getallrole()
- func (ctl *MASTERController) Getallroleoptions()
- func (ctl *MASTERController) Getalluser()
- func (ctl *MASTERController) Getalluseroptions()
- func (ctl *MASTERController) Getgroup()
- func (ctl *MASTERController) Getgrouproletreejson()
- func (ctl *MASTERController) Getgrouptreejson()
- func (ctl *MASTERController) Getmenumodualbyparent()
- func (ctl *MASTERController) Getmodual()
- func (ctl *MASTERController) Getmodualtemplate()
- func (ctl *MASTERController) Getmodualtreejson()
- func (ctl *MASTERController) Getnavigatormodualbyuser()
- func (ctl *MASTERController) Getorg()
- func (ctl *MASTERController) Getorgroletreejson()
- func (ctl *MASTERController) Getorgtreejson()
- func (ctl *MASTERController) Getrole()
- func (ctl *MASTERController) Getroleprivilegetreejson()
- func (ctl *MASTERController) Getroletreejson()
- func (ctl *MASTERController) Getuser()
- func (ctl *MASTERController) Getusergroup()
- func (ctl *MASTERController) Getusermodualtreejson()
- func (ctl *MASTERController) Getuseroptionsbyorgid()
- func (ctl *MASTERController) Getuserrole()
- func (ctl *MASTERController) Getuserroletreejson()
- func (ctl *MASTERController) Getusersbyorgid()
- func (ctl *MASTERController) Passwordchange()
- func (ctl *MASTERController) Passwordreset()
- func (ctl *MASTERController) Savegroup()
- func (ctl *MASTERController) Savegroupprivileges()
- func (ctl *MASTERController) Savemodual()
- func (ctl *MASTERController) Savemodualtemplate()
- func (ctl *MASTERController) Saveorg()
- func (ctl *MASTERController) Saveorgprivileges()
- func (ctl *MASTERController) Saverole()
- func (ctl *MASTERController) Saveroleprivileges()
- func (ctl *MASTERController) Saveuser()
- func (ctl *MASTERController) Saveusergroup()
- func (ctl *MASTERController) Saveuserprivileges()
- func (ctl *MASTERController) Saveuserrole()
- func (ctl *MASTERController) Updateuserinfo()
- func (ctl *MASTERController) Uploadusers()
- type Userpassword
Constants ¶
This section is empty.
Variables ¶
var GlobalSessions *session.Manager
(2)建立一个全局session mananger对象
Functions ¶
This section is empty.
Types ¶
type BASEController ¶
type BASEController struct { beego.Controller i18n.Locale User models.CMN_USER_TB IsLogin bool }
Operations about Users
func (*BASEController) Prepare ¶
func (this *BASEController) Prepare()
Prepare implemented Prepare method for baseRouter.
type COMMONController ¶
type COMMONController struct { //beego.Controller BASEController }
Operations about Users
func (*COMMONController) DeCompressZip ¶
func (this *COMMONController) DeCompressZip(zipfilename string, unzipdir string) (err error, unzipfilenames []string)
func (*COMMONController) GetCurrentDirectory ¶
func (ctl *COMMONController) GetCurrentDirectory() string
func (*COMMONController) GetExt ¶
func (ctl *COMMONController) GetExt(filename string) string
获得文件的扩展名
func (*COMMONController) GetFileContentAsStringLines ¶
func (this *COMMONController) GetFileContentAsStringLines(filepath string) ([]string, error)
文件按行读入数组
func (*COMMONController) GetFilename ¶
func (ctl *COMMONController) GetFilename(filename string) string
func (*COMMONController) Getgoprojectnamebygopath ¶
func (ctl *COMMONController) Getgoprojectnamebygopath(gopath string) string
func (*COMMONController) IsFDexists ¶
func (this *COMMONController) IsFDexists(filePath string) bool
func (*COMMONController) IsFileIncludestring ¶
func (this *COMMONController) IsFileIncludestring(filePath string, includedstr string) bool
文件中是否包含此字符串
func (*COMMONController) Readfile2string ¶
func (this *COMMONController) Readfile2string(filePath string, charset string) (s string, err1 error)
文件转换为字符串
func (*COMMONController) Readfilefirstline ¶
func (this *COMMONController) Readfilefirstline(filePath string, charset string) (s string, err1 error)
文件转换为字符串
func (*COMMONController) Replacefilecontent ¶
func (ctl *COMMONController) Replacefilecontent(filepath string, fromstr string, tostr string) error
func (*COMMONController) Uploadfile ¶
func (ctl *COMMONController) Uploadfile()
type DEVController ¶
type DEVController struct { //beego.Controller BASEController }
Operations about Users
func (*DEVController) Createcomponent ¶
func (ctl *DEVController) Createcomponent()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*DEVController) Deletecomponent ¶
func (ctl *DEVController) Deletecomponent()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*DEVController) Execmd ¶
func (this *DEVController) Execmd(cmdstr string, arg ...string) error
func (*DEVController) Getallcomponent ¶
func (ctl *DEVController) Getallcomponent()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*DEVController) Getallcomponentoptions ¶
func (ctl *DEVController) Getallcomponentoptions()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*DEVController) Getcomponent ¶
func (ctl *DEVController) Getcomponent()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*DEVController) Getcomponenttreejson ¶
func (ctl *DEVController) Getcomponenttreejson()
func (*DEVController) IsFileIncludestring ¶
func (this *DEVController) IsFileIncludestring(filePath string, includedstr string) bool
func (*DEVController) Savecomponent ¶
func (ctl *DEVController) Savecomponent()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
type ENUMController ¶
type ENUMController struct { //beego.Controller BASEController }
Operations about Users
func (*ENUMController) Deleteenumbyid ¶
func (ctl *ENUMController) Deleteenumbyid()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*ENUMController) Getenum ¶
func (ctl *ENUMController) Getenum()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*ENUMController) Getenumbyid ¶
func (ctl *ENUMController) Getenumbyid()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*ENUMController) Getenumitem ¶
func (ctl *ENUMController) Getenumitem()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*ENUMController) Getenumitemoptions ¶
func (ctl *ENUMController) Getenumitemoptions()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*ENUMController) Getenumoptions ¶
func (ctl *ENUMController) Getenumoptions()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*ENUMController) Saveenum ¶
func (ctl *ENUMController) Saveenum()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
type ENUMSEARCHController ¶
type ENUMSEARCHController struct { //beego.Controller BASEController }
Operations about Users
func (*ENUMSEARCHController) Getenumsearchbypageindex ¶
func (ctl *ENUMSEARCHController) Getenumsearchbypageindex()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*ENUMSEARCHController) Getenumsearchcount ¶
func (ctl *ENUMSEARCHController) Getenumsearchcount()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
type LOGINController ¶
type LOGINController struct { //beego.Controller BASEController }
Operations about Users
func (*LOGINController) Login ¶
func (ctl *LOGINController) Login()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
type MASTERController ¶
type MASTERController struct { //beego.Controller BASEController }
Operations about Users
func (*MASTERController) Deletegroup ¶
func (ctl *MASTERController) Deletegroup()
func (*MASTERController) Deletegroupprivilege ¶
func (ctl *MASTERController) Deletegroupprivilege()
func (*MASTERController) Deletemodual ¶
func (ctl *MASTERController) Deletemodual()
func (*MASTERController) Deletemodualtemplate ¶
func (ctl *MASTERController) Deletemodualtemplate()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Deleteorg ¶
func (ctl *MASTERController) Deleteorg()
func (*MASTERController) Deleteorgprivilege ¶
func (ctl *MASTERController) Deleteorgprivilege()
func (*MASTERController) Deleterole ¶
func (ctl *MASTERController) Deleterole()
func (*MASTERController) Deleteroleprivilege ¶
func (ctl *MASTERController) Deleteroleprivilege()
func (*MASTERController) Deleteuser ¶
func (ctl *MASTERController) Deleteuser()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Deleteuserprivilege ¶
func (ctl *MASTERController) Deleteuserprivilege()
func (*MASTERController) Getallgroup ¶
func (ctl *MASTERController) Getallgroup()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getallmodual ¶
func (ctl *MASTERController) Getallmodual()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getallmodualoptions ¶
func (ctl *MASTERController) Getallmodualoptions()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getallorg ¶
func (ctl *MASTERController) Getallorg()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getallorgoptions ¶
func (ctl *MASTERController) Getallorgoptions()
func (*MASTERController) Getallrole ¶
func (ctl *MASTERController) Getallrole()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getallroleoptions ¶
func (ctl *MASTERController) Getallroleoptions()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getalluser ¶
func (ctl *MASTERController) Getalluser()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getalluseroptions ¶
func (ctl *MASTERController) Getalluseroptions()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getgroup ¶
func (ctl *MASTERController) Getgroup()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getgrouproletreejson ¶
func (ctl *MASTERController) Getgrouproletreejson()
func (*MASTERController) Getgrouptreejson ¶
func (ctl *MASTERController) Getgrouptreejson()
func (*MASTERController) Getmenumodualbyparent ¶
func (ctl *MASTERController) Getmenumodualbyparent()
@Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getmodual ¶
func (ctl *MASTERController) Getmodual()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getmodualtemplate ¶
func (ctl *MASTERController) Getmodualtemplate()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getmodualtreejson ¶
func (ctl *MASTERController) Getmodualtreejson()
func (*MASTERController) Getnavigatormodualbyuser ¶
func (ctl *MASTERController) Getnavigatormodualbyuser()
@Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getorg ¶
func (ctl *MASTERController) Getorg()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getorgroletreejson ¶
func (ctl *MASTERController) Getorgroletreejson()
func (*MASTERController) Getorgtreejson ¶
func (ctl *MASTERController) Getorgtreejson()
func (*MASTERController) Getrole ¶
func (ctl *MASTERController) Getrole()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getroleprivilegetreejson ¶
func (ctl *MASTERController) Getroleprivilegetreejson()
func (*MASTERController) Getroletreejson ¶
func (ctl *MASTERController) Getroletreejson()
func (*MASTERController) Getuser ¶
func (ctl *MASTERController) Getuser()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getusergroup ¶
func (ctl *MASTERController) Getusergroup()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getusermodualtreejson ¶
func (ctl *MASTERController) Getusermodualtreejson()
func (*MASTERController) Getuseroptionsbyorgid ¶
func (ctl *MASTERController) Getuseroptionsbyorgid()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getuserrole ¶
func (ctl *MASTERController) Getuserrole()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Getuserroletreejson ¶
func (ctl *MASTERController) Getuserroletreejson()
func (*MASTERController) Getusersbyorgid ¶
func (ctl *MASTERController) Getusersbyorgid()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Passwordchange ¶
func (ctl *MASTERController) Passwordchange()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Passwordreset ¶
func (ctl *MASTERController) Passwordreset()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Savegroup ¶
func (ctl *MASTERController) Savegroup()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Savegroupprivileges ¶
func (ctl *MASTERController) Savegroupprivileges()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Savemodual ¶
func (ctl *MASTERController) Savemodual()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Savemodualtemplate ¶
func (ctl *MASTERController) Savemodualtemplate()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Saveorg ¶
func (ctl *MASTERController) Saveorg()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Saveorgprivileges ¶
func (ctl *MASTERController) Saveorgprivileges()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Saverole ¶
func (ctl *MASTERController) Saverole()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Saveroleprivileges ¶
func (ctl *MASTERController) Saveroleprivileges()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Saveuser ¶
func (ctl *MASTERController) Saveuser()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Saveusergroup ¶
func (ctl *MASTERController) Saveusergroup()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Saveuserprivileges ¶
func (ctl *MASTERController) Saveuserprivileges()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Saveuserrole ¶
func (ctl *MASTERController) Saveuserrole()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Updateuserinfo ¶
func (ctl *MASTERController) Updateuserinfo()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*MASTERController) Uploadusers ¶
func (ctl *MASTERController) Uploadusers()
@Title createUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]