Documentation ¶
Index ¶
- func AddCMN_EXPORTTEMPLATE_TB(u *CMN_EXPORTTEMPLATE_TB) error
- func AddCMN_FILEINFO_TB(u *CMN_FILEINFO_TB) error
- func AddCMN_GROUP_TB(u CMN_GROUP_TB) error
- func AddCMN_IMPORTTEMPLATE_TB(u *CMN_IMPORTTEMPLATE_TB) error
- func AddCMN_TEMPLATE_TB(template1 *CMN_TEMPLATE_TB, templateitems []CMN_TEMPLATEITEM_TB) error
- func AddCMN_USER_TB(u CMN_USER_TB) error
- func AddCOMPONENT(u COMPONENT, udetail []COMPONENTDETAIL) error
- func AddMultiCMN_GROUPROLE_TB(groupid string, u []CMN_GROUPROLE_TB) (err error)
- func AddMultiCMN_GROUP_TB(u []CMN_GROUP_TB) error
- func AddMultiCMN_ORGROLE_TB(orgid string, u []CMN_ORGROLE_TB) (err error)
- func AddMultiCMN_ROLEPRIVILEGE_TB(roleid string, u []CMN_ROLEPRIVILEGE_TB) error
- func AddMultiCMN_TEMPLATEITEM_TB(tr *sql.Tx, rows int, templateid string, templateitems []CMN_TEMPLATEITEM_TB) error
- func AddMultiCMN_USERGROUP_TB(u []CMN_USERGROUP_TB) error
- func AddMultiCMN_USERROLE_TB(userid string, u []CMN_USERROLE_TB) (err error)
- func AddMultiCMN_USERROLE_TBbyrole(u []CMN_USERROLE_TB) error
- func AddMultiCMN_USER_TB(u []CMN_USER_TB) error
- func AddMultiENUM(u ENUM, u2 []ENUMITEM) (err error)
- func Addnode(json *Json, m2 map[string]Node, id string) string
- func Bool2string(bvalue bool) string
- func Calculate(source int, inc int) int
- func Checklogin(companycode, userid, password string) bool
- func Convert2YYYYMM(times time.Time) string
- func Convert2YYYYMMDD(times time.Time) string
- func Convert2bool(input string) bool
- func Convert2float64(input string) float64
- func Convert2int64(input string) int64
- func Convert2time(input string) time.Time
- func ConvertSQL(sql string, databasetype string) string
- func CreateComponentTreeJson() string
- func CreateGroupRoleTreeJson(grouprole []CMN_GROUPROLE_TB) string
- func CreateGroupTreeJson() string
- func CreateModualTreeJson() string
- func CreateModualTreeJsonForuser(user CMN_USER_TB) string
- func CreateOrgRoleTreeJson(orgrole []CMN_ORGROLE_TB) string
- func CreateOrgTreeJson() string
- func CreateRolePrivilegeTreeJson(roleprivilege []CMN_ROLEPRIVILEGE_TB) string
- func CreateRoleTreeJson() string
- func CreateUserRoleTreeJson(userrole []CMN_USERROLE_TB) string
- func DeleteCMN_EXPORTTEMPLATE_TB(u *CMN_EXPORTTEMPLATE_TB) error
- func DeleteCMN_EXPORTTEMPLATE_TB2(u *CMN_EXPORTTEMPLATE_TB) error
- func DeleteCMN_FILEINFO_TB(u *CMN_FILEINFO_TB) error
- func DeleteCMN_GROUPROLE_TB(u CMN_GROUP_TB) (err error)
- func DeleteCMN_GROUP_TB(u CMN_GROUP_TB) error
- func DeleteCMN_IMPORTTEMPLATE_TB(u *CMN_IMPORTTEMPLATE_TB) error
- func DeleteCMN_IMPORTTEMPLATE_TB2(u *CMN_IMPORTTEMPLATE_TB) error
- func DeleteCMN_ORGROLE_TB(u CMN_ORG_TB) (err error)
- func DeleteCMN_ROLEPRIVILEGE_TB(roleid string) (err error)
- func DeleteCMN_TEMPLATE_TB(templateid string) error
- func DeleteCMN_USERROLE_TB(u CMN_USER_TB) (err error)
- func DeleteCMN_USER_TB(u CMN_USER_TB) error
- func DeleteComponent(u COMPONENT) (err error)
- func DeleteENUM(u *ENUM) error
- func DeleteGroupbyid(mt CMN_GROUP_TB) (err error)
- func DeleteModualbyid(mt CMN_MODUAL_TB) (err error)
- func DeleteModualtemplatebyid(mt CMN_MODUALTEMPLATE_TB) (err error)
- func DeleteOrgbyid(mt CMN_ORG_TB) (err error)
- func DeleteRolebyid(mt CMN_ROLE_TB) (err error)
- func GetDD() string
- func GetHHmmssstring() string
- func GetMM() string
- func GetOrgbyid(mt CMN_ORG_TB) (admin CMN_ORG_TB, admins []CMN_ORGLEADER_TB, err error)
- func GetYMDtime() time.Time
- func GetYYYY() string
- func GetYYYYMM() string
- func GetYYYYMMDD() string
- func GetYYYYMMDDHHMMSS() string
- func GetYYYYMMDDstring() string
- func Getdbtype() string
- func Getexcelfileinfo(filepath string) (fileinfomaparr []map[string]interface{}, err error)
- func Getexportfileinfomap(sql string) (exportfileinfmap []orm.Params, err error)
- func Getmetadata(tablename string)
- func Hastime(cadarr []COMPONENT_AND_DETAIL) bool
- func Mod(s, m int) int
- func OutputFN(s string) string
- func Outputcontrol(cd COMPONENTDETAIL) string
- func Outputconvertleft(datatype string) string
- func Outputconvertright(datatype string) string
- func Outputdatatype(cd COMPONENTDETAIL) string
- func Outputfieldtype(cd COMPONENTDETAIL) string
- func Outputifcondition(cad COMPONENTDETAIL) string
- func PASSWORDCHANGE(u CMN_USER_TB) (err error)
- func PASSWORDRESET(u CMN_USER_TB) (err error)
- func Readfile2string(filePath string, charset string) (s string, err1 error)
- func Replace(s string, oldstr string, newstr string) string
- func SQLBRACKET2SPACE(sql string, databasetype string) string
- func SaveModual(mt CMN_MODUAL_TB) (err error)
- func SaveModualtemplate(mt CMN_MODUALTEMPLATE_TB) (err error)
- func SaveOrg(mt CMN_ORG_TB, orglds []CMN_ORGLEADER_TB) (err error)
- func SaveRole(mt CMN_ROLE_TB) (err error)
- func Tofirstupper(s string) string
- func Tolower(s string) string
- func Toupper(s string) string
- func Unescaped(x string) interface{}
- func UnescapedJSStr(x string) interface{}
- func Unescapedjs(x string) interface{}
- func UpdateCMN_GROUP_TB(u CMN_GROUP_TB) error
- func UpdateCMN_USER_TB(u CMN_USER_TB) error
- func Updatepassword(companycode, userid, password string) error
- func Uploadusers(filepath CMN_FILEINFO_TB) (err1 error)
- type CMN_EXPORTTEMPLATE_TB
- type CMN_FILEINFO_TB
- type CMN_GROUPROLE_TB
- type CMN_GROUP_TB
- type CMN_IMPORTTEMPLATE_TB
- type CMN_MODUALTEMPLATE_TB
- type CMN_MODUAL_TB
- func GetALLCMN_USERROLEMODUAL_TB(u CMN_USER_TB) (admins2 []CMN_MODUAL_TB, err error)
- func GetAllModual() (admins []CMN_MODUAL_TB, err error)
- func GetMENUMODUALBYPARENT(u CMN_USERMODUAL_TB) (admins2 []CMN_MODUAL_TB, err error)
- func GetModualbyid(mt CMN_MODUAL_TB) (admin CMN_MODUAL_TB, err error)
- func GetNAVIGATORMODUALBYUSER(u CMN_USER_TB) (admins2 []CMN_MODUAL_TB, err error)
- type CMN_ORGANDLEADER_TB
- type CMN_ORGLEADER_TB
- type CMN_ORGROLE_TB
- type CMN_ORG_TB
- type CMN_ROLEPRIVILEGE_TB
- type CMN_ROLE_TB
- type CMN_TEMPLATEITEM_TB
- type CMN_TEMPLATE_TB
- type CMN_USERGROUP_TB
- type CMN_USERMODUAL_TB
- type CMN_USERROLE_TB
- type CMN_USER_TB
- type COLINF
- type COMPONENT
- type COMPONENTDETAIL
- type COMPONENT_AND_DETAIL
- type ENUM
- type ENUMANDITEM
- type ENUMITEM
- type ENUMSEARCH
- type ENUMSEARCHITEM
- type FILELIST
- type Json
- type Node
- type OPTIONS
- func GetALLCMN_USER_TBoptions() (admins []OPTIONS, err error)
- func GetAllComponentoptions() (u []OPTIONS, err error)
- func GetAllENUMITEMoptions(e ENUM) (admins []OPTIONS, err error)
- func GetAllENUMoptions() (admins []OPTIONS, err error)
- func GetAllModualoptions() (admins []OPTIONS, err error)
- func GetAllOrgoptions() (admins []OPTIONS, err error)
- func GetAllRoleoptions() (admins []OPTIONS, err error)
- func GetLeaders() (admins []OPTIONS, err error)
- func Getuseroptionsbyorgid(u CMN_ORG_TB) (admins []OPTIONS, err error)
- type PAGE
- type PROFILE
- type Parentgroupid
- type TABLEINF
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCMN_EXPORTTEMPLATE_TB ¶
func AddCMN_EXPORTTEMPLATE_TB(u *CMN_EXPORTTEMPLATE_TB) error
func AddCMN_FILEINFO_TB ¶
func AddCMN_FILEINFO_TB(u *CMN_FILEINFO_TB) error
func AddCMN_GROUP_TB ¶
func AddCMN_GROUP_TB(u CMN_GROUP_TB) error
func AddCMN_IMPORTTEMPLATE_TB ¶
func AddCMN_IMPORTTEMPLATE_TB(u *CMN_IMPORTTEMPLATE_TB) error
func AddCMN_TEMPLATE_TB ¶
func AddCMN_TEMPLATE_TB(template1 *CMN_TEMPLATE_TB, templateitems []CMN_TEMPLATEITEM_TB) error
func AddCMN_USER_TB ¶
func AddCMN_USER_TB(u CMN_USER_TB) error
func AddCOMPONENT ¶
func AddCOMPONENT(u COMPONENT, udetail []COMPONENTDETAIL) error
func AddMultiCMN_GROUPROLE_TB ¶
func AddMultiCMN_GROUPROLE_TB(groupid string, u []CMN_GROUPROLE_TB) (err error)
func AddMultiCMN_GROUP_TB ¶
func AddMultiCMN_GROUP_TB(u []CMN_GROUP_TB) error
func AddMultiCMN_ORGROLE_TB ¶
func AddMultiCMN_ORGROLE_TB(orgid string, u []CMN_ORGROLE_TB) (err error)
func AddMultiCMN_ROLEPRIVILEGE_TB ¶
func AddMultiCMN_ROLEPRIVILEGE_TB(roleid string, u []CMN_ROLEPRIVILEGE_TB) error
func AddMultiCMN_USERGROUP_TB ¶
func AddMultiCMN_USERGROUP_TB(u []CMN_USERGROUP_TB) error
func AddMultiCMN_USERROLE_TB ¶
func AddMultiCMN_USERROLE_TB(userid string, u []CMN_USERROLE_TB) (err error)
func AddMultiCMN_USERROLE_TBbyrole ¶
func AddMultiCMN_USERROLE_TBbyrole(u []CMN_USERROLE_TB) error
func AddMultiCMN_USER_TB ¶
func AddMultiCMN_USER_TB(u []CMN_USER_TB) error
func AddMultiENUM ¶
func Bool2string ¶
func Checklogin ¶
func Convert2YYYYMM ¶
func Convert2YYYYMMDD ¶
func Convert2bool ¶
func Convert2float64 ¶
func Convert2int64 ¶
func Convert2time ¶
func ConvertSQL ¶
func CreateComponentTreeJson ¶
func CreateComponentTreeJson() string
func CreateGroupRoleTreeJson ¶
func CreateGroupRoleTreeJson(grouprole []CMN_GROUPROLE_TB) string
func CreateGroupTreeJson ¶
func CreateGroupTreeJson() string
func CreateModualTreeJson ¶
func CreateModualTreeJson() string
func CreateModualTreeJsonForuser ¶
func CreateModualTreeJsonForuser(user CMN_USER_TB) string
func CreateOrgRoleTreeJson ¶
func CreateOrgRoleTreeJson(orgrole []CMN_ORGROLE_TB) string
func CreateOrgTreeJson ¶
func CreateOrgTreeJson() string
func CreateRolePrivilegeTreeJson ¶
func CreateRolePrivilegeTreeJson(roleprivilege []CMN_ROLEPRIVILEGE_TB) string
func CreateRoleTreeJson ¶
func CreateRoleTreeJson() string
func CreateUserRoleTreeJson ¶
func CreateUserRoleTreeJson(userrole []CMN_USERROLE_TB) string
func DeleteCMN_EXPORTTEMPLATE_TB ¶
func DeleteCMN_EXPORTTEMPLATE_TB(u *CMN_EXPORTTEMPLATE_TB) error
func DeleteCMN_EXPORTTEMPLATE_TB2 ¶
func DeleteCMN_EXPORTTEMPLATE_TB2(u *CMN_EXPORTTEMPLATE_TB) error
func DeleteCMN_FILEINFO_TB ¶
func DeleteCMN_FILEINFO_TB(u *CMN_FILEINFO_TB) error
func DeleteCMN_GROUPROLE_TB ¶
func DeleteCMN_GROUPROLE_TB(u CMN_GROUP_TB) (err error)
func DeleteCMN_GROUP_TB ¶
func DeleteCMN_GROUP_TB(u CMN_GROUP_TB) error
func DeleteCMN_IMPORTTEMPLATE_TB ¶
func DeleteCMN_IMPORTTEMPLATE_TB(u *CMN_IMPORTTEMPLATE_TB) error
func DeleteCMN_IMPORTTEMPLATE_TB2 ¶
func DeleteCMN_IMPORTTEMPLATE_TB2(u *CMN_IMPORTTEMPLATE_TB) error
func DeleteCMN_ORGROLE_TB ¶
func DeleteCMN_ORGROLE_TB(u CMN_ORG_TB) (err error)
func DeleteCMN_TEMPLATE_TB ¶
func DeleteCMN_USERROLE_TB ¶
func DeleteCMN_USERROLE_TB(u CMN_USER_TB) (err error)
func DeleteCMN_USER_TB ¶
func DeleteCMN_USER_TB(u CMN_USER_TB) error
func DeleteComponent ¶
func DeleteENUM ¶
func DeleteGroupbyid ¶
func DeleteGroupbyid(mt CMN_GROUP_TB) (err error)
func DeleteModualbyid ¶
func DeleteModualbyid(mt CMN_MODUAL_TB) (err error)
func DeleteModualtemplatebyid ¶
func DeleteModualtemplatebyid(mt CMN_MODUALTEMPLATE_TB) (err error)
func DeleteOrgbyid ¶
func DeleteOrgbyid(mt CMN_ORG_TB) (err error)
func DeleteRolebyid ¶
func DeleteRolebyid(mt CMN_ROLE_TB) (err error)
func GetHHmmssstring ¶
func GetHHmmssstring() string
func GetOrgbyid ¶
func GetOrgbyid(mt CMN_ORG_TB) (admin CMN_ORG_TB, admins []CMN_ORGLEADER_TB, err error)
func GetYMDtime ¶
func GetYYYYMMDD ¶
func GetYYYYMMDD() string
func GetYYYYMMDDHHMMSS ¶
func GetYYYYMMDDHHMMSS() string
返回20181118175858格式的数据,即2018年11月18日17点58分58秒
func GetYYYYMMDDstring ¶
func GetYYYYMMDDstring() string
func Getexcelfileinfo ¶
func Getexportfileinfomap ¶
func Getmetadata ¶
func Getmetadata(tablename string)
func Hastime ¶
func Hastime(cadarr []COMPONENT_AND_DETAIL) bool
func Outputcontrol ¶
func Outputcontrol(cd COMPONENTDETAIL) string
func Outputconvertleft ¶
func Outputconvertright ¶
func Outputdatatype ¶
func Outputdatatype(cd COMPONENTDETAIL) string
func Outputfieldtype ¶
func Outputfieldtype(cd COMPONENTDETAIL) string
func Outputifcondition ¶
func Outputifcondition(cad COMPONENTDETAIL) string
func PASSWORDCHANGE ¶
func PASSWORDCHANGE(u CMN_USER_TB) (err error)
func PASSWORDRESET ¶
func PASSWORDRESET(u CMN_USER_TB) (err error)
func Readfile2string ¶
文件转换为字符串
func SQLBRACKET2SPACE ¶
func SaveModual ¶
func SaveModual(mt CMN_MODUAL_TB) (err error)
func SaveModualtemplate ¶
func SaveModualtemplate(mt CMN_MODUALTEMPLATE_TB) (err error)
func SaveOrg ¶
func SaveOrg(mt CMN_ORG_TB, orglds []CMN_ORGLEADER_TB) (err error)
func SaveRole ¶
func SaveRole(mt CMN_ROLE_TB) (err error)
func Tofirstupper ¶
func UnescapedJSStr ¶
func UnescapedJSStr(x string) interface{}
func Unescapedjs ¶
func Unescapedjs(x string) interface{}
func UpdateCMN_GROUP_TB ¶
func UpdateCMN_GROUP_TB(u CMN_GROUP_TB) error
func UpdateCMN_USER_TB ¶
func UpdateCMN_USER_TB(u CMN_USER_TB) error
func Updatepassword ¶
func Uploadusers ¶
func Uploadusers(filepath CMN_FILEINFO_TB) (err1 error)
Types ¶
type CMN_EXPORTTEMPLATE_TB ¶
type CMN_EXPORTTEMPLATE_TB struct { Exporttemplateid string `orm:"pk;column(exporttemplateid)"` Exporttemplatename string `orm:"column(exporttemplatename)"` Templateid string `orm:"column(templateid)"` Exporttitle string `orm:"column(exporttitle)"` Exporttype string `orm:"column(exporttype)"` Exportsql string `orm:"column(exportsql)"` Exportfilepath string `orm:"column(exportfilepath)"` Exportfilename string `orm:"column(exportfilename)"` Accessmethod string `orm:"column(accessmethod)"` Emailtitle string `orm:"column(emailtitle)"` }
func GetCMN_EXPORTTEMPLATE_TB ¶
func GetCMN_EXPORTTEMPLATE_TB(Exporttemplateid string) (templates []CMN_EXPORTTEMPLATE_TB, err error)
func (*CMN_EXPORTTEMPLATE_TB) TableName ¶
func (u *CMN_EXPORTTEMPLATE_TB) TableName() string
type CMN_FILEINFO_TB ¶
type CMN_FILEINFO_TB struct { Filename string `orm:"pk;column(filename)"` Filesize int64 `orm:"column(filesize)"` Fileext string `orm:"column(fileext)"` Filepath string `orm:"column(filepath);null"` Filerights string `orm:"column(filerights);null"` Expired time.Time `orm:"column(expired);null"` Downloadstatus string `orm:"column(downloadstatus);default(0)"` Createuser string `orm:"column(createuser);null"` Createtime time.Time `orm:"column(createtime);null"` Updateuser string `orm:"column(updateuser);null"` Updatetime time.Time `orm:"column(updatetime);null"` }
func GetAllCMN_FILEINFO_TB ¶
func GetAllCMN_FILEINFO_TB() (admins []CMN_FILEINFO_TB, err error)
func GetCMN_FILEINFO_TB ¶
func GetCMN_FILEINFO_TB(u *CMN_FILEINFO_TB) (admins []CMN_FILEINFO_TB, err error)
func (*CMN_FILEINFO_TB) TableName ¶
func (u *CMN_FILEINFO_TB) TableName() string
type CMN_GROUPROLE_TB ¶
func GetCMN_GROUPROLE_TB ¶
func GetCMN_GROUPROLE_TB(u CMN_GROUP_TB) (admins []CMN_GROUPROLE_TB, err error)
type CMN_GROUP_TB ¶
type CMN_GROUP_TB struct { Groupid string `orm:"pk;column(groupid)"` Parentid string `orm:"column(parentid)"` Groupname string `orm:"column(groupname)"` Grouplevel string `orm:"column(grouplevel)"` Remark string `orm:"column(remark);null"` }
func GetAllCMN_GROUP_TB ¶
func GetAllCMN_GROUP_TB() (admins []CMN_GROUP_TB, err error)
func GetCMN_GROUP_TB ¶
func GetCMN_GROUP_TB(u *CMN_GROUP_TB) (admins []CMN_GROUP_TB, err error)
func GetGroupbyid ¶
func GetGroupbyid(mt CMN_GROUP_TB) (admin CMN_GROUP_TB, err error)
func (*CMN_GROUP_TB) TableName ¶
func (u *CMN_GROUP_TB) TableName() string
type CMN_IMPORTTEMPLATE_TB ¶
type CMN_IMPORTTEMPLATE_TB struct { Importtemplateid string `orm:"pk;column(importtemplateid)"` Importtemplatename string `orm:"column(importtemplatename)"` Templateid string `orm:"column(templateid)"` Importtable string `orm:"column(importtable)"` Importtype string `orm:"column(importtype)"` Importsql string `orm:"column(importsql)"` }
func GetCMN_IMPORTTEMPLATE_TB ¶
func GetCMN_IMPORTTEMPLATE_TB(Importtemplateid string) (templates []CMN_IMPORTTEMPLATE_TB, err error)
func (*CMN_IMPORTTEMPLATE_TB) TableName ¶
func (u *CMN_IMPORTTEMPLATE_TB) TableName() string
type CMN_MODUALTEMPLATE_TB ¶
type CMN_MODUALTEMPLATE_TB struct { Modualid string `orm:"pk;column(modualid)"` Flowtemplateid string `orm:"column(flowtemplateid)"` Tablename string `orm:"column(tablename)"` }
func GetModualtemplatebyid ¶
func GetModualtemplatebyid(mt CMN_MODUALTEMPLATE_TB) (admin CMN_MODUALTEMPLATE_TB, err error)
func (*CMN_MODUALTEMPLATE_TB) TableName ¶
func (u *CMN_MODUALTEMPLATE_TB) TableName() string
type CMN_MODUAL_TB ¶
type CMN_MODUAL_TB struct { Modualid string `orm:"pk;column(modualid)"` Modualname string `orm:"column(modualname)"` Parentid string `orm:"column(parentid)"` Url string `orm:"column(url);null"` Remark string `orm:"column(remark);null"` }
Adminid int64 `orm:"pk;auto"` //主键,自动增长 Remark string `orm:"size(5000)"` Created time.Time `orm:"index"`
func GetALLCMN_USERROLEMODUAL_TB ¶
func GetALLCMN_USERROLEMODUAL_TB(u CMN_USER_TB) (admins2 []CMN_MODUAL_TB, err error)
func GetAllModual ¶
func GetAllModual() (admins []CMN_MODUAL_TB, err error)
func GetMENUMODUALBYPARENT ¶
func GetMENUMODUALBYPARENT(u CMN_USERMODUAL_TB) (admins2 []CMN_MODUAL_TB, err error)
func GetModualbyid ¶
func GetModualbyid(mt CMN_MODUAL_TB) (admin CMN_MODUAL_TB, err error)
func GetNAVIGATORMODUALBYUSER ¶
func GetNAVIGATORMODUALBYUSER(u CMN_USER_TB) (admins2 []CMN_MODUAL_TB, err error)
func (*CMN_MODUAL_TB) TableName ¶
func (u *CMN_MODUAL_TB) TableName() string
type CMN_ORGANDLEADER_TB ¶
type CMN_ORGANDLEADER_TB struct { Org CMN_ORG_TB Orgleader []CMN_ORGLEADER_TB }
type CMN_ORGLEADER_TB ¶
type CMN_ORGROLE_TB ¶
func GetCMN_ORGROLE_TB ¶
func GetCMN_ORGROLE_TB(u CMN_ORG_TB) (admins []CMN_ORGROLE_TB, err error)
type CMN_ORG_TB ¶
type CMN_ORG_TB struct { Orgid string `orm:"pk;column(orgid)"` Orgname string `orm:"column(orgname)"` Parentid string `orm:"column(parentid)"` Orgtype string `orm:"column(orgtype);null"` Orglevel string `orm:"column(orglevel)"` Url string `orm:"column(url);null"` Remark string `orm:"column(remark);null"` }
Adminid int64 `orm:"pk;auto"` //主键,自动增长 Remark string `orm:"size(5000)"` Created time.Time `orm:"index"`
func GetAllOrg ¶
func GetAllOrg() (admins []CMN_ORG_TB, err error)
func (*CMN_ORG_TB) TableName ¶
func (u *CMN_ORG_TB) TableName() string
type CMN_ROLEPRIVILEGE_TB ¶
func GetCMN_ROLEPRIVILEGE_TB ¶
func GetCMN_ROLEPRIVILEGE_TB(roleid string) (admins []CMN_ROLEPRIVILEGE_TB, err error)
type CMN_ROLE_TB ¶
type CMN_ROLE_TB struct { Roleid string `orm:"pk;column(roleid)"` Rolename string `orm:"column(rolename)"` Parentid string `orm:"column(parentid)"` Rolelevel string `orm:"column(rolelevel)"` Remark string `orm:"column(remark);null"` }
Adminid int64 `orm:"pk;auto"` //主键,自动增长 Remark string `orm:"size(5000)"` Created time.Time `orm:"index"`
func GetAllRole ¶
func GetAllRole() (admins []CMN_ROLE_TB, err error)
func GetRolebyid ¶
func GetRolebyid(mt CMN_ROLE_TB) (admin CMN_ROLE_TB, err error)
func (*CMN_ROLE_TB) TableName ¶
func (u *CMN_ROLE_TB) TableName() string
type CMN_TEMPLATEITEM_TB ¶
type CMN_TEMPLATEITEM_TB struct { Templateid string `orm:"pk;column(templateid)"` Colid string `orm:"pk;column(colid)"` Colname string `orm:"column(colname)"` Coltype string `orm:"column(coltype)"` Required string `orm:"column(required)"` Length string `orm:"column(length)"` Accuracy string `orm:"column(accuracy)"` Defaultvalue string `orm:"column(defaultvalue)"` Pretype string `orm:"column(pretype)"` Sep string `orm:"column(sep)"` }
func GetCMN_TEMPLATEITEM_TB ¶
func GetCMN_TEMPLATEITEM_TB(templateid string) (templateitems []CMN_TEMPLATEITEM_TB, err error)
func (*CMN_TEMPLATEITEM_TB) TableName ¶
func (u *CMN_TEMPLATEITEM_TB) TableName() string
type CMN_TEMPLATE_TB ¶
type CMN_TEMPLATE_TB struct { Templateid string `orm:"pk;column(templateid)"` Templatename string `orm:"column(templatename)"` Formate string `orm:"column(formate)"` }
func GetCMN_TEMPLATE_TB ¶
func GetCMN_TEMPLATE_TB() (templates []CMN_TEMPLATE_TB, err error)
func GetCMN_TEMPLATE_TBbyid ¶
func GetCMN_TEMPLATE_TBbyid(templateid string) (template CMN_TEMPLATE_TB, err error)
func (*CMN_TEMPLATE_TB) TableName ¶
func (u *CMN_TEMPLATE_TB) TableName() string
type CMN_USERGROUP_TB ¶
type CMN_USERGROUP_TB struct { Userid string Groupid string Expiredtime time.Time Username string Groupname string }
func GetCMN_USERGROUP_TB ¶
func GetCMN_USERGROUP_TB(u CMN_GROUP_TB) (admins []CMN_USERGROUP_TB, err error)
type CMN_USERMODUAL_TB ¶
type CMN_USERROLE_TB ¶
func GetALLCMN_USERROLE_TB ¶
func GetALLCMN_USERROLE_TB(u CMN_USER_TB) (admins []CMN_USERROLE_TB, err error)
func GetCMN_USERROLE_TB ¶
func GetCMN_USERROLE_TB(u CMN_USER_TB) (admins []CMN_USERROLE_TB, err error)
func GetCMN_USERROLE_TBbyroleid ¶
func GetCMN_USERROLE_TBbyroleid(u CMN_USERROLE_TB) (admins []CMN_USERROLE_TB, err error)
type CMN_USER_TB ¶
type CMN_USER_TB struct { Userid string `orm:"pk;column(userid)"` Username string `orm:"column(username);null;"` Adminid string `orm:"column(adminid);null;"` Orgid string `orm:"column(orgid);null;"` Password string `orm:"column(password)"` Userlevel string `orm:"column(userlevel);null;"` Expireddate time.Time `orm:"column(expireddate);null;"` Logintime time.Time `orm:"column(logintime);null;"` Loginip string `orm:"column(loginip);null;"` Lasttime time.Time `orm:"column(lasttime);null;"` Lastip string `orm:"column(lastip);null;"` Skin string `orm:"column(skin);null;"` Langcode string `orm:"column(langcode);null;"` Sex string `orm:"column(sex);null;"` Birthday time.Time `orm:"column(birthday);null;"` Idcard string `orm:"column(idcard);null;"` School string `orm:"column(school);null;"` Graduation string `orm:"column(graduation);null;"` Degree string `orm:"column(degree);null;"` Major string `orm:"column(major);null;"` Country string `orm:"column(country);null;"` Province string `orm:"column(province);null;"` City string `orm:"column(city);null;"` Address string `orm:"column(address);null;"` Postcode string `orm:"column(postcode);null;"` Phone string `orm:"column(phone);null;"` Fax string `orm:"column(fax);null;"` Mobile string `orm:"column(mobile);null;"` Email string `orm:"column(email);null;"` Remark string `orm:"column(remark);null;"` Creator string `orm:"column(creator);null;"` Createtime time.Time `orm:"column(createtime);null;"` Modifier string `orm:"column(modifier);null;"` Modifytime time.Time `orm:"column(modifytime);null;"` Usertype string `orm:"column(usertype);null;"` Postid string `orm:"column(postid);null;"` Isleader bool `orm:"column(isleader);null;default(false)"` Expired string `orm:"column(expired);null;default(0)"` Ipconfig string `orm:"column(ipconfig);null;"` English_name string `orm:"column(english_name);null;"` Nationality string `orm:"column(nationality);null;"` Employeeid string `orm:"column(employeeid);null;"` Entrydate time.Time `orm:"column(entrydate);null;"` Residence_addres string `orm:"column(residence_addres)"` Residence_type string `orm:"column(residence_type);null;"` Marital_status string `orm:"column(marital_status);null;"` Native_place string `orm:"column(native_place);null;"` Work_date time.Time `orm:"column(work_date);null;"` Contact_way string `orm:"column(contact_way);null;"` Contact_person string `orm:"column(contact_person);null;"` Professional_title string `orm:"column(professional_title);null;"` Computer_level string `orm:"column(computer_level);null;"` Computer_cert string `orm:"column(computer_cert);null;"` English_level string `orm:"column(english_level);null;"` English_cert string `orm:"column(english_cert);null;"` Japanese_level string `orm:"column(japanese_level);null;"` Japanese_cert string `orm:"column(japanese_cert);null;"` Speciality string `orm:"column(speciality);null;"` Speciality_cert string `orm:"column(speciality_cert);null;"` Hobby_sport string `orm:"column(hobby_sport);null;"` Hobby_art string `orm:"column(hobby_art);null;"` Hobby_other string `orm:"column(hobby_other);null;"` Key_user string `orm:"column(key_user);null;"` Work_card string `orm:"column(work_card);null;"` Guard_card string `orm:"column(guard_card);null;"` Computer string `orm:"column(computer);null;"` Ext string `orm:"column(ext);null;"` Msn string `orm:"column(msn);null;"` Carborrow_qualification string `orm:"column(carborrow_qualification);null;"` Rank string `orm:"column(rank);null;"` }
func GetALLCMN_USER_TB ¶
func GetALLCMN_USER_TB() (admins []CMN_USER_TB, err error)
func GetAllCMN_USER_TB ¶
func GetAllCMN_USER_TB() (admins []CMN_USER_TB, err error)
func GetCMN_USER_TB ¶
func GetCMN_USER_TB(u CMN_USER_TB) (admins []CMN_USER_TB, err error)
func GetUsersbyorgid ¶
func GetUsersbyorgid(cot CMN_ORG_TB) (admins []CMN_USER_TB, err error)
func (*CMN_USER_TB) TableName ¶
func (u *CMN_USER_TB) TableName() string
type COLINF ¶
type COLINF struct { Id string `json:"id"` Name string `json:"text"` Type string `json:"coltype"` Length string `json:"length"` Isnull string `json:"isnull"` Isprimary string `json:"isprimary"` Isautoinc string `json:"isautoinc"` Defaultvalue string `json:"defaultvalue"` Comment string `json:"comment"` }
type COMPONENT ¶
type COMPONENT struct { Componentname string `orm:"pk;column(componentname)"` Parentid string `orm:"column(parentid)"` Title string `orm:"column(title)"` Buttons string `orm:"column(buttons);null"` Style string `orm:"column(style);null"` Gutter string `orm:"column(gutter);null"` Colcount string `orm:"column(colcount);null"` Componentlevel string `orm:"column(componentlevel);null"` Godirectory string `orm:"column(godirectory);null"` Ngdirectory string `orm:"column(ngdirectory);null"` }
Adminid int64 `orm:"pk;auto"` //主键,自动增长 Remark string `orm:"size(5000)"` Created time.Time `orm:"index"` 流程定义fi_template_tb表
func GetAllComponent ¶
func GetComponentbyid ¶
func GetProjectpath ¶
type COMPONENTDETAIL ¶
type COMPONENTDETAIL struct { Componentname string `orm:"pk;column(componentname)"` Seq int `orm:"pk;column(seq)"` Controlname string `orm:"column(controlname)"` Controldisplayname string `orm:"column(controldisplayname)"` Controltype string `orm:"column(controltype)"` Rows int `orm:"column(rows)"` Filetype string `orm:"column(filetype)"` Ismultiple bool `orm:"column(ismultiple)"` Filesize int `orm:"column(filesize)"` Islimit bool `orm:"column(islimit)"` Limitfileqty int `orm:"column(limitfileqty)"` Minvalues int `orm:"column(minvalues)"` Maxvalues int `orm:"column(maxvalues)"` Stepvalue int `orm:"column(stepvalue)"` Icon string `orm:"column(icon)"` }
Adminid int64 `orm:"pk;auto"` //主键,自动增长 Remark string `orm:"size(5000)"` Created time.Time `orm:"index"` 流程定义fi_template_tb表
type COMPONENT_AND_DETAIL ¶
type COMPONENT_AND_DETAIL struct { Component COMPONENT Detail []COMPONENTDETAIL }
func GetComponent ¶
func GetComponent(u COMPONENT) (cad COMPONENT_AND_DETAIL, err error)
func GetComponentbyparentid ¶
func GetComponentbyparentid(u COMPONENT) (cad []COMPONENT_AND_DETAIL, err error)
type ENUM ¶
type ENUM struct { Enumcode string `orm:"pk;column(enumcode)"` Enumname string `orm:"column(enumname)"` }
Adminid int64 `orm:"pk;auto"` //主键,自动增长 Remark string `orm:"size(5000)"` Created time.Time `orm:"index"`
func GetAllENUM ¶
func GetENUMBYID ¶
type ENUMANDITEM ¶
type ENUMITEM ¶
type ENUMITEM struct { Id int64 `orm:"pk;auto"` Enumcode string `orm:"column(enumcode)"` Value string `orm:"column(value)"` Label string `orm:"column(label)"` }
func GetAllENUMITEM ¶
type ENUMSEARCH ¶
type ENUMSEARCHITEM ¶
func Getenumsearchbypageindex ¶
func Getenumsearchbypageindex(u ENUMSEARCH) (admins []ENUMSEARCHITEM, err error)
获得分页数据
type OPTIONS ¶
type OPTIONS struct { Value string `json:"value"` Label string `json:"label"` Checked bool `json:"checked"` }
func GetAllComponentoptions ¶
func GetAllENUMITEMoptions ¶
func GetAllENUMoptions ¶
func GetAllModualoptions ¶
func GetAllOrgoptions ¶
func GetAllRoleoptions ¶
func GetLeaders ¶
func Getuseroptionsbyorgid ¶
func Getuseroptionsbyorgid(u CMN_ORG_TB) (admins []OPTIONS, err error)
type Parentgroupid ¶
func Getparentgroupids ¶
func Getparentgroupids() (parentids []Parentgroupid, err error)