Documentation ¶
Index ¶
- Constants
- 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_LANG_TB(u *CMN_LANG_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 AddCOMPANY(u *COMPANY) error
- func AddDATASOURCETABLE(u *DATASOURCETABLE) error
- func AddDATASOURCETABLEFIELD(u *DATASOURCETABLEFIELD) error
- func AddDATASOURCETABLEFIELDCHILD(u *DATASOURCETABLEFIELDCHILD) error
- func AddFLOWDEFINE(u FLOWTASK, u2 []FLOWMANTASKACTION, u4 []FLOWTASKEXECUTER, ...) error
- func AddFromDatasourceTableinfo(u FromDatasourceTableinfo) error
- func AddMultiCMN_GROUPROLE_TB(groupid string, u []CMN_GROUPROLE_TB) (err error)
- func AddMultiCMN_GROUP_TB(u []CMN_GROUP_TB) error
- func AddMultiCMN_LANG_TB(u []CMN_LANG_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 AddMultiCOMPANY(u []COMPANY) error
- func AddMultiDATASOURCE(u DATASOURCE) (err error)
- func AddMultiDATASOURCETABLE(u []DATASOURCETABLE) error
- func AddMultiDATASOURCETABLEFIELD(u []DATASOURCETABLEFIELD) error
- func AddMultiDATASOURCETABLEFIELDCHILD(u []DATASOURCETABLEFIELDCHILD) error
- func AddMultiENUM(u ENUM, u2 []ENUMITEM) (err error)
- func AddMultiFLOWORGVARY(u []FLOWORGVARY) error
- func AddMultiFLOWSTATUS(u []FISTATUS) error
- func AddMultiFLOWTEMPLATE(u FLOWTEMPLATE, u2 []FLOWTEMPLATEITEM) error
- func AddMultiORGVARY(u []ORGVARY) error
- func AddMultiagent(u2 []AGENT) error
- func Addnode(json *Json, m2 map[string]Node, id string) string
- func Calculate(source int, inc int) int
- func Cancelflow(u FIFLOW) (err error)
- 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 ConvertField2map(admins []DATASOURCETABLEFIELD) (fieldmap map[string][]DATASOURCETABLEFIELD, err error)
- func ConvertFieldchild2map(admins []DATASOURCETABLEFIELDCHILD) (fieldmap map[string][]DATASOURCETABLEFIELDCHILD, err error)
- func ConvertGBK2unicode(gbkstr string) string
- func ConvertInterface2valueByfieldtype(fieldtype string, arg interface{}) interface{}
- func ConvertParam2map(sourcemap []orm.Params) []map[string]interface{}
- func ConvertSQL(sql string, databasetype string) string
- func Convertinterface2value(arg interface{}) interface{}
- func Convertstring2instring(commastring string) string
- func Convertunicode2GBK(unicodestr string) string
- func Copyflowtemplate(flowtemplateid string, copyflowtemplateid string, copyflowtemplatename string) (err error)
- 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 Datamoveapply(dm DATAMOVEAPPLY) error
- 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_LANG_TB(u *CMN_LANG_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 DeleteCOMPANY(u *COMPANY) error
- func DeleteDATASOURCE(u *DATASOURCE) error
- func DeleteDATASOURCETABLE(u *DATASOURCETABLE) error
- func DeleteDATASOURCETABLEFIELD(u *DATASOURCETABLEFIELD) error
- func DeleteDATASOURCETABLEFIELDCHILD(u *DATASOURCETABLEFIELDCHILD) error
- func DeleteENUM(u *ENUM) error
- func DeleteFLOWTEMPLATE(u FLOWTEMPLATE) (err 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 DeleteTaskid(u FLOWTASK) error
- func Diffdays(startdate time.Time, enddate time.Time) int64
- func Doflow(o orm.Ormer, modualid string, currentfiid int, currenttiid int, ...) (fiid int, err error, isend bool)
- func GetCurrentDirectory() string
- func GetDATASOURCETABLEFIELDARR(datasource, tablename string) (admins []string, err error)
- func GetDATASOURCETABLEFIELDCHILDARR(datasource, tablename string, fieldname string) (admins []string, err error)
- func GetDD() string
- func GetFLOWDEFINE(fiid string) (ft []FLOWTASK, mantaskactions []FLOWMANTASKACTION, ...)
- func GetFieldIndexOfArray(fieldname string, fieldnames string) int
- func GetHHmmssstring() string
- func GetHourDiffer(start_time, end_time string) int64
- func GetMM() string
- func GetMinuteDiffer(start_time, end_time string) int64
- func GetMysqlConn(ds DATASOURCE) (db *sql.DB, err error)
- func GetOracleConn(ds DATASOURCE) (db *sql.DB, err error)
- func GetOracleConn2(ds DATASOURCE) (db *sql.DB, err error)
- func GetOrgbyid(mt CMN_ORG_TB) (admin CMN_ORG_TB, admins []CMN_ORGLEADER_TB, err error)
- func GetStructFieldnames(structobj interface{}) []string
- func GetYMDtime() time.Time
- func GetYYYY() string
- func GetYYYYMM() string
- func GetYYYYMMDD() string
- func GetYYYYMMDDHHMMSS() string
- func GetYYYYMMDDstring() string
- func Getchildtableprimarykeys(datasource, tablename, fieldname string) (primaryfields string, err error)
- func Getdbtype() string
- func Getexcelfileinfo(filepath string) (fileinfomaparr []map[string]interface{}, err error)
- func Getexportfileinfomap(sql string) (exportfileinfmap []orm.Params, err error)
- func Getfieldtype(value interface{}) (fieldtype string)
- func Getfromdatasourcefilter(fdt FromDatasourceTableinfo2) (filter string, err error)
- func Getlog() *logs.BeeLogger
- func GetmetaDATASOURCETABLE() (err error)
- func GetmetaDATASOURCETABLEFIELD() (err error)
- func GetmetaDATASOURCETABLEFIELDCHILD(dstf DATASOURCETABLEFIELDCHILDSEARCH) (err error)
- func GetmetaDATASOURCETABLEFIELDbydatasource(datasource string) (err error)
- func GetmetaDATASOURCETABLEFIELDbydstable(dstable DATASOURCETABLE) (err error)
- func GetmetaDATASOURCETABLEbydatasource(ds2 DATASOURCE) (err error)
- func Getmetadata(tablename string)
- func Getmssqltabledatacount(ds DATASOURCE, tablename string) (ncount int, err error)
- func Getmysqltabledatacount(ds DATASOURCE, tablename string) (ncount int, err error)
- func Getnexttaskbycaller(orglevel string, nexttaskid string, o orm.Ormer, caller string, ...) (nexttaskid1 string, err error)
- func Getoracletabledatacount(ds DATASOURCE, tablename string) (ncount int, err error)
- func Gettablefieldtypemap(datasource, tablename string) (fieldtypemap map[string]string, err error)
- func Gettableprimarykeys(datasource, tablename string) (primaryfields string, err error)
- func Gettaskidbytiid(o orm.Ormer, tiid int) string
- func Gettaskidbytiidforng(tiid int) string
- func InsertorUpdatelang(cltarr []CMN_LANG_TB, langtype string) (err error)
- func Isinarry(target []string, source string) bool
- func Leave(u TRANSFER) error
- func Loadlangjson() error
- func Mod(s, m int) int
- func NewMysqlConn(ds DATASOURCE) error
- func NewOracleConn(ds DATASOURCE) error
- func OutputFN(s string) string
- func Outputconvertleft(datatype string) string
- func Outputconvertright(datatype string) 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 SAVEPROJECTPATH(u PROJECTPATH) error
- 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 Setcellvalue(cell *xlsx.Cell, data interface{})
- func Skiptask(u TODOTASKLIST) (err error)
- func StringsToJSON(str string) string
- func Struct2Map(obj interface{}) map[string]interface{}
- func Syncatalog1table(...) (err error)
- func Syncatalog2table(...) (err error)
- func Syncatalog3table(...) (err error)
- func Syncitytable(fromdatasource, datasource, tablename string) (err error)
- func Synclassroom1table(fromdatasource, datasource, tablename string) (err error)
- func Synclassroom2table(fromdatasource, datasource, tablename string) (err error)
- func Synclassroom3table(fromdatasource, datasource, tablename string) (err error)
- func Synparentchildtable(...) (err error)
- func Synprovincetable(fromdatasource, datasource, tablename string) (err error)
- func Synregiontable(fromdatasource, datasource, tablename string) (err error)
- func Tofirstupper(s string) string
- func Tolower(s string) string
- func Toupper(s string) string
- func Transferpost(u TRANSFER) error
- func Transfersign(u TRANSFER) error
- 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_LANG_TB(u *CMN_LANG_TB) error
- func UpdateCMN_USER_TB(u CMN_USER_TB) error
- func UpdateCOMPANY(u *COMPANY) error
- func UpdateDATASOURCETABLE(u *DATASOURCETABLE) error
- func UpdateDATASOURCETABLEFIELD(u *DATASOURCETABLEFIELD) error
- func UpdateDATASOURCETABLEFIELDCHILD(u *DATASOURCETABLEFIELDCHILD) error
- func Updatelangjson(u2 []CMN_LANG_TB) error
- func Updatepassword(companycode, userid, password string) error
- func Uploadusers(filepath CMN_FILEINFO_TB) (err1 error)
- func WriteExcelfile(excelfilename string, colnames []string, datamaparr []map[string]interface{}) error
- func WriteExcelfileanddata(excelfilename string, colnames []string, datamaparr []map[string]interface{}, ...) error
- type AGENT
- type CMN_EXPORTTEMPLATE_TB
- type CMN_FILEINFO_TB
- type CMN_GROUPROLE_TB
- type CMN_GROUP_TB
- type CMN_IMPORTTEMPLATE_TB
- type CMN_LANG_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
- func GetALLCMN_USERROLE_TB(u CMN_USER_TB) (admins []CMN_USERROLE_TB, err error)
- func GetCMN_USERROLE_TB(u CMN_USER_TB) (admins []CMN_USERROLE_TB, err error)
- func GetCMN_USERROLE_TBbyroleid(u CMN_USERROLE_TB) (admins []CMN_USERROLE_TB, err error)
- func GetUSERSBYROLE(o orm.Ormer, u CMN_USERROLE_TB) (admins []CMN_USERROLE_TB, err error)
- type CMN_USER_TB
- type COLINF
- type COLLECTIONINFO
- type COMPANY
- type COMPONENT
- type COPYFLOWTEMPLATE
- type COUNTERSIGN
- type DATAMOVEAPPLY
- type DATAMOVEAPPLYITEM
- type DATASOURCE
- type DATASOURCETABLE
- func GetAllDATASOURCETABLE() (admins []DATASOURCETABLE, err error)
- func GetDATASOURCETABLE(u *DATASOURCETABLE) (admins []DATASOURCETABLE, err error)
- func GetDATASOURCETABLEBYID(e DATASOURCETABLE) (admin DATASOURCETABLE, err error)
- func GetDATASOURCETABLEBYdatasource(datasource string) (admins []DATASOURCETABLE, err error)
- func Getdatasourcetablebypageindex(l PAGE) (admins []DATASOURCETABLE, err error)
- func Getmssqltablenames(ds DATASOURCE) (tablenames []DATASOURCETABLE, err error)
- func Getmysqltablenames(ds DATASOURCE) (tablenames []DATASOURCETABLE, err error)
- func Getoracletablenames(ds DATASOURCE) (tablenames []DATASOURCETABLE, err error)
- func Getoracletablenames2(ds DATASOURCE) (tablenames []DATASOURCETABLE, err error)
- func GetsourceDATASOURCETABLE() (admins []DATASOURCETABLE, err error)
- type DATASOURCETABLEFIELD
- func GetAllDATASOURCETABLEFIELD() (admins []DATASOURCETABLEFIELD, err error)
- func GetAllDATASOURCETABLEFIELDbydatasourcetable(u DATASOURCETABLE) (admins []DATASOURCETABLEFIELD, err error)
- func GetDATASOURCETABLEFIELD(u *DATASOURCETABLEFIELD) (admins []DATASOURCETABLEFIELD, err error)
- func GetDATASOURCETABLEFIELDBYID(e DATASOURCETABLEFIELD) (admins []DATASOURCETABLEFIELD, err error)
- func Getdatasourcetablefieldbypageindex(l PAGE) (admins []DATASOURCETABLEFIELD, err error)
- func Getmssqltablefields(ds DATASOURCE, tablename string) (fieldsmap []DATASOURCETABLEFIELD, err error)
- func Getmysqltablefields(ds DATASOURCE, tablename string) (fieldsmap []DATASOURCETABLEFIELD, err error)
- func Getoracletablefields(ds DATASOURCE, tablename string) (fieldsmap []DATASOURCETABLEFIELD, err error)
- type DATASOURCETABLEFIELDCHILD
- func GetAllDATASOURCETABLEFIELDCHILD() (admins []DATASOURCETABLEFIELDCHILD, err error)
- func GetDATASOURCETABLEFIELDCHILD(u *DATASOURCETABLEFIELDCHILD) (admins []DATASOURCETABLEFIELDCHILD, err error)
- func GetDATASOURCETABLEFIELDCHILDbyfield(u *DATASOURCETABLEFIELDCHILD) (admins []DATASOURCETABLEFIELDCHILD, err error)
- func GetDATASOURCETABLEFIELDCHILDbyid(u *DATASOURCETABLEFIELDCHILD) (admins []DATASOURCETABLEFIELDCHILD, err error)
- func Getdatasourcetablefieldchildbypageindex(l PAGE) (admins []DATASOURCETABLEFIELDCHILD, err error)
- type DATASOURCETABLEFIELDCHILDSEARCH
- type DATASOURCETABLEFIELDCHILDSEARCHITEM
- type ENUM
- type ENUMANDITEM
- type ENUMITEM
- type ENUMSEARCH
- type ENUMSEARCHITEM
- type FIFLOW
- type FIFLOWPAGEINDEX
- type FILELIST
- type FIOWNER
- type FISTATUS
- type FITASK
- type FITASKPREVIEW
- type FIVAR
- type FLOWMANTASKACTION
- type FLOWORGVARY
- type FLOWSWITCHTASKACTION
- type FLOWTASK
- type FLOWTASKANDACTIONS
- type FLOWTASKEXECUTER
- type FLOWTEMPLATE
- type FLOWTEMPLATEANDITEM
- type FLOWTEMPLATEITEM
- type FromDatasourceTableinfo
- type FromDatasourceTableinfo2
- type Json
- type LANG
- type LANGPAGEINDEX
- type LEADERS
- type MODUALCNTANDMNY
- type MongoConn
- func (conn *MongoConn) Close()
- func (conn *MongoConn) GetDBVersion() (string, error)
- func (conn *MongoConn) Getcollectionchilddatasbyfieldnames(databasename string, collectionname string, ...) (result []map[string]interface{}, err error)
- func (conn *MongoConn) Getcollectiondataforparentchild(databasename, collectionname, fieldnames string, filterkey ...interface{}) (result []map[string]interface{}, err error)
- func (conn *MongoConn) Getcollectiondataforregion(databasename, collectionname, filterkey string, fieldnames string) (result []map[string]interface{}, err error)
- func (conn *MongoConn) Getcollectiondatas(databasename string, collectionname string) (result []map[string]interface{}, err error)
- func (conn *MongoConn) Getcollectiondatasbyfieldnames(databasename string, collectionname string, fieldnames string, ...) (result []map[string]interface{}, err error)
- func (conn *MongoConn) Getcollectiondatasbyfieldnamesonerow(databasename string, collectionname string, fieldnames string) (result []orm.Params, err error)
- func (conn *MongoConn) Getcollectiondatasrow(databasename string, collectionname string) (result []orm.Params, err error)
- func (conn *MongoConn) Getcollectionfieldinfo(databasename string, collectionname string) (fieldinfomap map[string]DATASOURCETABLEFIELD, err error)
- func (conn *MongoConn) Getcollectionfieldinfochild(databasename string, collectionname string, fieldname string, maptype string) (fieldinfomap map[string]DATASOURCETABLEFIELDCHILD, err error)
- func (conn *MongoConn) Getcollectionindexs(databasename string, collectionname string) (index []mgo.Index, err error)
- func (conn *MongoConn) Getcollectionkeys(databasename string, collectionname string) (keys []string, err error)
- func (conn *MongoConn) Getcollectionkeysbymapreduce(databasename string, collectionname string) (keys []string, err error)
- func (conn *MongoConn) Getcollectionnames(databasename string) (collectionnames []string, err error)
- func (conn *MongoConn) Getcollectionnames2(databasename string) (collectionnames []map[string]interface{}, err error)
- func (conn *MongoConn) Getcollectionrows(databasename string, collectionname string) (cltinf COLLECTIONINFO, err error)
- func (conn *MongoConn) Getdatabasenames() (databases []string, err error)
- func (conn *MongoConn) HasOplogNs() bool
- func (conn *MongoConn) IsGood() bool
- type Node
- type OPTIONS
- func GetALLCMN_USER_TBoptions() (admins []OPTIONS, err error)
- func GetAllCOMPANYoptions() (admins []OPTIONS, err error)
- func GetAllDATASOURCETABLEFIELDCHILDoptions() (admins []OPTIONS, err error)
- func GetAllDATASOURCETABLEFIELDoptions(u *DATASOURCETABLEFIELD) (admins []OPTIONS, err error)
- func GetAllDATASOURCETABLEoptions(u *DATASOURCE) (admins []OPTIONS, err error)
- func GetAllDATASOURCEoptions() (admins []OPTIONS, err error)
- func GetAllENUMITEMoptions(e ENUM) (admins []OPTIONS, err error)
- func GetAllENUMoptions() (admins []OPTIONS, err error)
- func GetAllFLOWTEMPLATEoptions() (admins []OPTIONS, err error)
- func GetAllGroupoptions() (admins []OPTIONS, err error)
- func GetAllModualoptions() (admins []OPTIONS, err error)
- func GetAllORGVARYoptions() (admins []OPTIONS, err error)
- func GetAllOrgoptions() (admins []OPTIONS, err error)
- func GetAllRoleoptions() (admins []OPTIONS, err error)
- func GetDATASOURCEoptionsbytype(ds DATASOURCE) (admins []OPTIONS, err error)
- func GetLeaders() (admins []OPTIONS, err error)
- func GetUserforagentoptions(ufa USERFORAGENT) (admins []OPTIONS, err error)
- func Getuseroptionsbyorgid(u CMN_ORG_TB) (admins []OPTIONS, err error)
- type ORGVARY
- type PAGE
- func GetAllCMN_LANG_TBcount(l LANG) (page PAGE, err error)
- func GetAllFLOWORGVARYCOUNT() (page PAGE, err error)
- func Getdatamoveapplycount(u DATAMOVEAPPLY) (page PAGE, err error)
- func Getdatasourcetablecount() (page PAGE, err error)
- func Getdatasourcetablefieldchildcount() (page PAGE, err error)
- func Getdatasourcetablefieldchildsearchcount(u DATASOURCETABLEFIELDCHILDSEARCH) (page PAGE, err error)
- func Getdatasourcetablefieldcount() (page PAGE, err error)
- func Getenumsearchcount(u ENUMSEARCH) (page PAGE, err error)
- func Getflowmonitorcount(u FIFLOW) (page PAGE, err error)
- type PORG
- type PROFILE
- type PROJECTPATH
- type Parentgroupid
- type Result
- type SynDataMessage
- type TABLEINF
- type TASKINFO
- type TODOTASKLIST
- func Getdonetask(u FIFLOW) (admins []TODOTASKLIST, err error)
- func Getdonetasklist(u FITASK) (admins []TODOTASKLIST, err error)
- func Getflowmonitorbypageindex(u FIFLOWPAGEINDEX) (admins []TODOTASKLIST, err error)
- func Getmyflow(u FIFLOW) (admins []TODOTASKLIST, err error)
- func Gettodotask(u FIFLOW) (admins []TODOTASKLIST, err error)
- func Gettodotaskfortransfer(u TRANSFER) (admins []TODOTASKLIST, err error)
- func Gettodotasklist(u FITASK) (admins []TODOTASKLIST, err error)
- type TRANSFER
- type USERFORAGENT
- type Updatefi_var
- type WebsocketClient
- type WebsocketServer
Constants ¶
const ( OpenWebsocket = 1 // CloseWebsocket = 2 // ReceivedMessage = 3 // SendedMessage = 4 // )
const OplogNS = "oplog.rs"
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_LANG_TB ¶
func AddCMN_LANG_TB(u *CMN_LANG_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 AddCOMPANY ¶
func AddDATASOURCETABLE ¶
func AddDATASOURCETABLE(u *DATASOURCETABLE) error
func AddDATASOURCETABLEFIELD ¶
func AddDATASOURCETABLEFIELD(u *DATASOURCETABLEFIELD) error
func AddDATASOURCETABLEFIELDCHILD ¶
func AddDATASOURCETABLEFIELDCHILD(u *DATASOURCETABLEFIELDCHILD) error
func AddFLOWDEFINE ¶
func AddFLOWDEFINE(u FLOWTASK, u2 []FLOWMANTASKACTION, u4 []FLOWTASKEXECUTER, u3 []FLOWSWITCHTASKACTION) error
追加流程定义任务
func AddFromDatasourceTableinfo ¶
func AddFromDatasourceTableinfo(u FromDatasourceTableinfo) 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_LANG_TB ¶
func AddMultiCMN_LANG_TB(u []CMN_LANG_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 AddMultiCOMPANY ¶
func AddMultiDATASOURCE ¶
func AddMultiDATASOURCE(u DATASOURCE) (err error)
func AddMultiDATASOURCETABLE ¶
func AddMultiDATASOURCETABLE(u []DATASOURCETABLE) error
func AddMultiDATASOURCETABLEFIELD ¶
func AddMultiDATASOURCETABLEFIELD(u []DATASOURCETABLEFIELD) error
func AddMultiDATASOURCETABLEFIELDCHILD ¶
func AddMultiDATASOURCETABLEFIELDCHILD(u []DATASOURCETABLEFIELDCHILD) error
func AddMultiENUM ¶
func AddMultiFLOWTEMPLATE ¶
func AddMultiFLOWTEMPLATE(u FLOWTEMPLATE, u2 []FLOWTEMPLATEITEM) error
流程模板追加
func Checklogin ¶
func Convert2YYYYMM ¶
func Convert2YYYYMMDD ¶
func Convert2bool ¶
func Convert2float64 ¶
func Convert2int64 ¶
func Convert2time ¶
func ConvertField2map ¶
func ConvertField2map(admins []DATASOURCETABLEFIELD) (fieldmap map[string][]DATASOURCETABLEFIELD, err error)
convert []DATASOURCETABLEFIELD==>map["datasource"_"tablename"][]DATASOURCETABLEFIELD
func ConvertFieldchild2map ¶
func ConvertFieldchild2map(admins []DATASOURCETABLEFIELDCHILD) (fieldmap map[string][]DATASOURCETABLEFIELDCHILD, err error)
convert []DATASOURCETABLEFIELD==>map["datasource"_"tablename"][]DATASOURCETABLEFIELD
func ConvertGBK2unicode ¶
func ConvertInterface2valueByfieldtype ¶
func ConvertInterface2valueByfieldtype(fieldtype string, arg interface{}) interface{}
func ConvertParam2map ¶
func ConvertSQL ¶
func Convertinterface2value ¶
func Convertinterface2value(arg interface{}) interface{}
func Convertstring2instring ¶
a,b,c ==>'a','b','c'
func Convertunicode2GBK ¶
func Copyflowtemplate ¶
func Copyflowtemplate(flowtemplateid string, copyflowtemplateid string, copyflowtemplatename string) (err error)
流程模板复制,同时复制流程定义
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 Datamoveapply ¶
func Datamoveapply(dm DATAMOVEAPPLY) error
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_LANG_TB ¶
func DeleteCMN_LANG_TB(u *CMN_LANG_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 DeleteCOMPANY ¶
func DeleteDATASOURCE ¶
func DeleteDATASOURCE(u *DATASOURCE) error
func DeleteDATASOURCETABLE ¶
func DeleteDATASOURCETABLE(u *DATASOURCETABLE) error
func DeleteDATASOURCETABLEFIELD ¶
func DeleteDATASOURCETABLEFIELD(u *DATASOURCETABLEFIELD) error
func DeleteDATASOURCETABLEFIELDCHILD ¶
func DeleteDATASOURCETABLEFIELDCHILD(u *DATASOURCETABLEFIELDCHILD) error
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 Doflow ¶
func Doflow(o orm.Ormer, modualid string, currentfiid int, currenttiid int, actionid string, u MODUALCNTANDMNY, varmap []map[string]string) (fiid int, err error, isend bool)
流程引擎入口
func GetDATASOURCETABLEFIELDARR ¶
获得表字段数组 ==>['a','b','c'...]
func GetDATASOURCETABLEFIELDCHILDARR ¶
func GetDATASOURCETABLEFIELDCHILDARR(datasource, tablename string, fieldname string) (admins []string, err error)
获得表字段数组 ==>['a','b','c'...]
func GetFLOWDEFINE ¶
func GetFLOWDEFINE(fiid string) (ft []FLOWTASK, mantaskactions []FLOWMANTASKACTION, mantaskexecuters []FLOWTASKEXECUTER, switchtaskactions []FLOWSWITCHTASKACTION, err error)
根据流程编号获得流程定义
func GetFieldIndexOfArray ¶
获得字段在字段数组中的索引,根据字段名.fieldname:a;fieldnamesarr:b,a,c===>1
func GetHHmmssstring ¶
func GetHHmmssstring() string
func GetMysqlConn ¶
func GetMysqlConn(ds DATASOURCE) (db *sql.DB, err error)
func GetOracleConn ¶
func GetOracleConn(ds DATASOURCE) (db *sql.DB, err error)
func GetOracleConn2 ¶
func GetOracleConn2(ds DATASOURCE) (db *sql.DB, err error)
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 Getchildtableprimarykeys ¶
func Getchildtableprimarykeys(datasource, tablename, fieldname string) (primaryfields string, err error)
获得表的主键字段,根据数据源名、表名、字段名。适用于mongodb嵌套子表
func Getexcelfileinfo ¶
func Getexportfileinfomap ¶
func Getfieldtype ¶
func Getfieldtype(value interface{}) (fieldtype string)
func Getfromdatasourcefilter ¶
func Getfromdatasourcefilter(fdt FromDatasourceTableinfo2) (filter string, err error)
根据要迁移的源表获得表配置信息 一张源表可对于多张目标表
func GetmetaDATASOURCETABLE ¶
func GetmetaDATASOURCETABLE() (err error)
func GetmetaDATASOURCETABLEFIELD ¶
func GetmetaDATASOURCETABLEFIELD() (err error)
func GetmetaDATASOURCETABLEFIELDCHILD ¶
func GetmetaDATASOURCETABLEFIELDCHILD(dstf DATASOURCETABLEFIELDCHILDSEARCH) (err error)
func GetmetaDATASOURCETABLEFIELDbydstable ¶
func GetmetaDATASOURCETABLEFIELDbydstable(dstable DATASOURCETABLE) (err error)
func GetmetaDATASOURCETABLEbydatasource ¶
func GetmetaDATASOURCETABLEbydatasource(ds2 DATASOURCE) (err error)
func Getmetadata ¶
func Getmetadata(tablename string)
func Getmssqltabledatacount ¶
func Getmssqltabledatacount(ds DATASOURCE, tablename string) (ncount int, err error)
func Getmysqltabledatacount ¶
func Getmysqltabledatacount(ds DATASOURCE, tablename string) (ncount int, err error)
func Getnexttaskbycaller ¶
func Getoracletabledatacount ¶
func Getoracletabledatacount(ds DATASOURCE, tablename string) (ncount int, err error)
func Gettablefieldtypemap ¶
获得表的字段类型map,根据数据源名、表名
func Gettableprimarykeys ¶
获得表的主键字段,根据数据源名、表名
func InsertorUpdatelang ¶
func InsertorUpdatelang(cltarr []CMN_LANG_TB, langtype string) (err error)
func Loadlangjson ¶
func Loadlangjson() error
func NewMysqlConn ¶
func NewMysqlConn(ds DATASOURCE) error
func NewOracleConn ¶
func NewOracleConn(ds DATASOURCE) error
func Outputconvertleft ¶
func Outputconvertright ¶
func PASSWORDCHANGE ¶
func PASSWORDCHANGE(u CMN_USER_TB) (err error)
func PASSWORDRESET ¶
func PASSWORDRESET(u CMN_USER_TB) (err error)
func Readfile2string ¶
文件转换为字符串
func SAVEPROJECTPATH ¶
func SAVEPROJECTPATH(u PROJECTPATH) error
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 Setcellvalue ¶
write excel file cell value
func Skiptask ¶
func Skiptask(u TODOTASKLIST) (err error)
跳过任务节点 支持跳转的节点必须有actionid="next"配置,否则报错 todo: 有唯一的forward任务也可
func Syncatalog1table ¶
func Syncatalog1table(fromdatasource, fromtable, fromfieldname, fromkey, datasource, tablename, fieldname string) (err error)
从mongodb中同步一级嵌套的数据,例如从catalog取key=TrainerCategory的一级数据 fromdatasource:源数据源。例如tap_mongodb fromtable:源collectionname。例如catalog fromkey:源表过滤条件。TrainerCategory fromfieldname:源表查询字段。例如:subCatalogs.displayEN,subCatalogs.displayZH,subCatalogs.status datasource:目标数据源。例如target_mysql tablename:目标表。例如t_s_trainer fieldname:目标字段trainer_cn_name,trainer_en_name,trainer_status
func Syncatalog2table ¶
func Syncatalog2table(fromdatasource, fromtable, fromfieldname, fromkey, datasource, tablename, fieldname string) (err error)
从mongodb中同步二级嵌套的数据,例如从catalog取key=TrainerCategory的二级数据 fromdatasource:源数据源。例如tap_mongodb fromtable:源collectionname。例如catalog fromkey:源表过滤条件。TrainerCategory fromfieldname:源表查询字段。例如:subCatalogs.displayEN,subCatalogs.subCatalogs.displayEN,subCatalogs.subCatalogs.displayZH,subCatalogs.subCatalogs.status datasource:目标数据源。例如target_mysql tablename:目标表。例如t_s_trainer fieldname:目标字段parent,trainer_cn_name,trainer_en_name,trainer_status
func Syncatalog3table ¶
func Syncatalog3table(fromdatasource, fromtable, fromfieldname, fromkey, datasource, tablename, fieldname string) (err error)
从mongodb中同步三级嵌套的数据,例如从catalog取key=TrainerCategory的三级级数据 fromdatasource:源数据源。例如tap_mongodb fromtable:源collectionname。例如catalog fromkey:源表过滤条件。TrainerCategory fromfieldname:源表查询字段。例如:subCatalogs.subCatalogs.displayEN,subCatalogs.subCatalogs.subCatalogs.displayEN,subCatalogs.subCatalogs.subCatalogs.displayZH,subCatalogs.subCatalogs.subCatalogs.status datasource:目标数据源。例如target_mysql tablename:目标表。例如t_s_trainer fieldname:目标字段parent,trainer_cn_name,trainer_en_name,trainer_status
func Syncitytable ¶
从mongodb中同步市
func Synclassroom1table ¶
从mongodb中同步大区和国家
func Synclassroom2table ¶
从mongodb中同步省
func Synclassroom3table ¶
从mongodb中同步市
func Synparentchildtable ¶
func Synparentchildtable(fromdatasource, fromtable, fromfieldname, fromkey, datasource, tablename, fieldname string) (err error)
从mongodb中同步父子表的数据,例如从trainingRoom取培训教室的年度目标 fromdatasource:源数据源。例如tap_mongodb fromtable:源collectionname。例如trainingRoom fromkey:源表过滤条件。可以没有过滤条件 fromfieldname:源表查询字段。例如:roomNameEN,targetList.target,targetList.year datasource:目标数据源。例如target_mysql tablename:目标表。例如t_s_classroom_annual_target fieldname:目标字段classroom_id,report_annual_target,annual
func Synprovincetable ¶
从mongodb中同步省
func Synregiontable ¶
从mongodb中同步大区和国家
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_LANG_TB ¶
func UpdateCMN_LANG_TB(u *CMN_LANG_TB) error
func UpdateCMN_USER_TB ¶
func UpdateCMN_USER_TB(u CMN_USER_TB) error
func UpdateCOMPANY ¶
func UpdateDATASOURCETABLE ¶
func UpdateDATASOURCETABLE(u *DATASOURCETABLE) error
func UpdateDATASOURCETABLEFIELD ¶
func UpdateDATASOURCETABLEFIELD(u *DATASOURCETABLEFIELD) error
func UpdateDATASOURCETABLEFIELDCHILD ¶
func UpdateDATASOURCETABLEFIELDCHILD(u *DATASOURCETABLEFIELDCHILD) error
func Updatelangjson ¶
func Updatelangjson(u2 []CMN_LANG_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_LANG_TB ¶
type CMN_LANG_TB struct { Langid string `orm:"pk;column(langid)"` Chinese string `orm:"column(chinese);null"` Tchinese string `orm:"column(tchinese);null"` English string `orm:"column(english);null"` Japanese string `orm:"column(jpanese);null"` }
func GetAllCMN_LANG_TB ¶
func GetAllCMN_LANG_TB() (admins []CMN_LANG_TB, err error)
func GetAllCMN_LANG_TBbypageindex ¶
func GetAllCMN_LANG_TBbypageindex(l LANGPAGEINDEX) (admins []CMN_LANG_TB, err error)
func GetCMN_LANG_TB ¶
func GetCMN_LANG_TB(u *CMN_LANG_TB) (admins []CMN_LANG_TB, err error)
func (*CMN_LANG_TB) TableName ¶
func (u *CMN_LANG_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"` Displayno int64 `orm:"column(displayno);default(1)"` }
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 ¶
func GetUSERBYORGLEVEL ¶
func GetUSERBYORGLEVEL(o orm.Ormer, caller string, taskexecuter string, expressionorglevel string) []CMN_ORGLEADER_TB
获得用户的机构级别
func Getorgleaders ¶
func Getorgleaders(o orm.Ormer, orgid string, taskexecuter string, expressionorglevel string) (leaders []CMN_ORGLEADER_TB, err error)
获得机构主管
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)
func GetUSERSBYROLE ¶
func GetUSERSBYROLE(o orm.Ormer, u CMN_USERROLE_TB) (admins []CMN_USERROLE_TB, err error)
根据角色ID获得用户角色
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 COLLECTIONINFO ¶
type COMPANY ¶
type COMPANY struct { Companycode string `orm:"pk;column(companycode)"` Companyname string `orm:"column(companyname)"` Companyshortname string `orm:"column(companyshortname)"` Manager string `orm:"column(manager)"` Telphone string `orm:"column(telphone)"` Fax string `orm:"column(fax)"` Email string `orm:"column(email)"` Address string `orm:"column(address)"` Postcode string `orm:"column(postcode)"` Companytype string `orm:"column(companytype)"` Exportflag string `orm:"column(exportflag)"` }
Adminid int64 `orm:"pk;auto"` //主键,自动增长 Remark string `orm:"size(5000)"` Created time.Time `orm:"index"` {{Unescapedjs .uppercomponentname}}
func GetAllCOMPANY ¶
func GetCOMPANY ¶
type COMPONENT ¶
type COMPONENT struct { Componentname string Parentid string Title string Buttons string Style string Gutter string Colcount string Componentlevel string Godirectory string Ngdirectory string }
func GetProjectpath ¶
type COPYFLOWTEMPLATE ¶
type COPYFLOWTEMPLATE struct { Flowtemplateid string COPYFlowtemplateid string COPYFlowtemplatename string }
Adminid int64 `orm:"pk;auto"` //主键,自动增长 Remark string `orm:"size(5000)"` Created time.Time `orm:"index"` 流程定义fi_template_tb表
type COUNTERSIGN ¶
会签
type DATAMOVEAPPLY ¶
type DATAMOVEAPPLYITEM ¶
type DATAMOVEAPPLYITEM struct { Sourcetargettype string `json:"Sourcetargettype"` //源/目标区分,source/target Datasource string `json:"Datasource"` Tablename string `json:"Tablename"` Movestatus string `json:"Movestatus"` Starttime string `json:"Starttime"` Endtime string `json:"Endtime"` Spendtime string `json:"Spendtime"` Operator string `json:"Operator"` Fromdatasource string `json:"Fromdatasource"` Cancel string `json:"Cancel"` Log string `json:"Log"` Pageindex int `json:"Pageindex"` Pagesize int `json:"Pagesize"` }
func Getdatamoveapplybypageindex ¶
func Getdatamoveapplybypageindex(u DATAMOVEAPPLY) (admins []DATAMOVEAPPLYITEM, err error)
获得分页数据
type DATASOURCE ¶
type DATASOURCE struct { Datasource string `orm:"pk;column(datasource)"` Datasourcename string `orm:"column(datasourcename)"` Dbtype string `orm:"column(dbtype)"` Ip string `orm:"column(ip)"` Port int `orm:"column(port)"` Schema string `orm:"column(schema)"` Username string `orm:"column(username)"` Password string `orm:"column(password)"` Sourcetargettype string `orm:"column(sourcetargettype)"` }
Adminid int64 `orm:"pk;auto"` //主键,自动增长 Remark string `orm:"size(5000)"` Created time.Time `orm:"index"`
func GetAllDATASOURCE ¶
func GetAllDATASOURCE() (admins []DATASOURCE, err error)
func GetAllMYSQLDATASOURCE ¶
func GetAllMYSQLDATASOURCE() (admins []DATASOURCE, err error)
func GetAllORACLEDATASOURCE ¶
func GetAllORACLEDATASOURCE() (admins []DATASOURCE, err error)
func GetDATASOURCEBYID ¶
func GetDATASOURCEBYID(e DATASOURCE) (admin DATASOURCE, err error)
func (*DATASOURCE) TableName ¶
func (u *DATASOURCE) TableName() string
type DATASOURCETABLE ¶
type DATASOURCETABLE struct { Id int64 `orm:"pk;auto"` //主键,自动增长 Datasource string `orm:"column(datasource)"` Tablename string `orm:"column(tablename)"` }
Adminid int64 `orm:"pk;auto"` //主键,自动增长 Remark string `orm:"size(5000)"` Created time.Time `orm:"index"` {{Unescapedjs .uppercomponentname}}
func GetAllDATASOURCETABLE ¶
func GetAllDATASOURCETABLE() (admins []DATASOURCETABLE, err error)
func GetDATASOURCETABLE ¶
func GetDATASOURCETABLE(u *DATASOURCETABLE) (admins []DATASOURCETABLE, err error)
func GetDATASOURCETABLEBYID ¶
func GetDATASOURCETABLEBYID(e DATASOURCETABLE) (admin DATASOURCETABLE, err error)
func GetDATASOURCETABLEBYdatasource ¶
func GetDATASOURCETABLEBYdatasource(datasource string) (admins []DATASOURCETABLE, err error)
func Getdatasourcetablebypageindex ¶
func Getdatasourcetablebypageindex(l PAGE) (admins []DATASOURCETABLE, err error)
获得分页数据
func Getmssqltablenames ¶
func Getmssqltablenames(ds DATASOURCE) (tablenames []DATASOURCETABLE, err error)
func Getmysqltablenames ¶
func Getmysqltablenames(ds DATASOURCE) (tablenames []DATASOURCETABLE, err error)
func Getoracletablenames ¶
func Getoracletablenames(ds DATASOURCE) (tablenames []DATASOURCETABLE, err error)
func Getoracletablenames2 ¶
func Getoracletablenames2(ds DATASOURCE) (tablenames []DATASOURCETABLE, err error)
func GetsourceDATASOURCETABLE ¶
func GetsourceDATASOURCETABLE() (admins []DATASOURCETABLE, err error)
func (*DATASOURCETABLE) TableName ¶
func (u *DATASOURCETABLE) TableName() string
type DATASOURCETABLEFIELD ¶
type DATASOURCETABLEFIELD struct { Id int64 `orm:"pk;auto"` //主键,自动增长 Datasource string `orm:"column(datasource)"` //数据源 Tablename string `orm:"column(tablename)"` //表名 Fieldname string `orm:"column(fieldname)"` //字段名 Fieldtype string `orm:"column(fieldtype)"` // 字段类型 Isauto string `orm:"column(isauto);default(0)"` //是否自增 Fieldlength int `orm:"column(fieldlength)"` //字段长度 Isprimary string `orm:"column(isprimary);default(0)"` //是否主键 Isnull string `orm:"column(isnull);default(0)"` //是否为空 Defaultvalue string `orm:"column(defaultvalue)"` //缺省值 Isparent string `orm:"column(isparent);default(0)"` //是否为父,适用于mongodb的嵌套 Comment string `orm:"column(comment);"` //备注 }
Adminid int64 `orm:"pk;auto"` //主键,自动增长 Remark string `orm:"size(5000)"` Created time.Time `orm:"index"` {{Unescapedjs .uppercomponentname}}
func GetAllDATASOURCETABLEFIELD ¶
func GetAllDATASOURCETABLEFIELD() (admins []DATASOURCETABLEFIELD, err error)
func GetAllDATASOURCETABLEFIELDbydatasourcetable ¶
func GetAllDATASOURCETABLEFIELDbydatasourcetable(u DATASOURCETABLE) (admins []DATASOURCETABLEFIELD, err error)
func GetDATASOURCETABLEFIELD ¶
func GetDATASOURCETABLEFIELD(u *DATASOURCETABLEFIELD) (admins []DATASOURCETABLEFIELD, err error)
func GetDATASOURCETABLEFIELDBYID ¶
func GetDATASOURCETABLEFIELDBYID(e DATASOURCETABLEFIELD) (admins []DATASOURCETABLEFIELD, err error)
func Getdatasourcetablefieldbypageindex ¶
func Getdatasourcetablefieldbypageindex(l PAGE) (admins []DATASOURCETABLEFIELD, err error)
获得分页数据
func Getmssqltablefields ¶
func Getmssqltablefields(ds DATASOURCE, tablename string) (fieldsmap []DATASOURCETABLEFIELD, err error)
func Getmysqltablefields ¶
func Getmysqltablefields(ds DATASOURCE, tablename string) (fieldsmap []DATASOURCETABLEFIELD, err error)
func Getoracletablefields ¶
func Getoracletablefields(ds DATASOURCE, tablename string) (fieldsmap []DATASOURCETABLEFIELD, err error)
func (*DATASOURCETABLEFIELD) TableName ¶
func (u *DATASOURCETABLEFIELD) TableName() string
func (*DATASOURCETABLEFIELD) TableUnique ¶
func (u *DATASOURCETABLEFIELD) TableUnique() [][]string
多字段唯一键
type DATASOURCETABLEFIELDCHILD ¶
type DATASOURCETABLEFIELDCHILD struct { Id int64 `orm:"pk;auto"` //主键,自动增长 Datasource string `orm:"column(datasource);size(150)"` Tablename string `orm:"column(tablename);size(150)"` Fieldname string `orm:"column(fieldname);size(150)"` Childfieldname string `orm:"column(childfieldname);size(150)"` Fieldtype string `orm:"column(fieldtype)"` Fieldlength int `orm:"column(fieldlength)"` Isprimary string `orm:"column(isprimary);default(0)"` Isnull string `orm:"column(isnull);default(0)"` Defaultvalue string `orm:"column(defaultvalue)"` Isauto string `orm:"column(isauto);default(0)"` Isparent string `orm:"column(isparent);default(0)"` Comment string `orm:"column(comment);"` //备注 }
Adminid int64 `orm:"pk;auto"` //主键,自动增长 Remark string `orm:"size(5000)"` Created time.Time `orm:"index"` {{Unescapedjs .uppercomponentname}}
func GetAllDATASOURCETABLEFIELDCHILD ¶
func GetAllDATASOURCETABLEFIELDCHILD() (admins []DATASOURCETABLEFIELDCHILD, err error)
func GetDATASOURCETABLEFIELDCHILD ¶
func GetDATASOURCETABLEFIELDCHILD(u *DATASOURCETABLEFIELDCHILD) (admins []DATASOURCETABLEFIELDCHILD, err error)
func GetDATASOURCETABLEFIELDCHILDbyfield ¶
func GetDATASOURCETABLEFIELDCHILDbyfield(u *DATASOURCETABLEFIELDCHILD) (admins []DATASOURCETABLEFIELDCHILD, err error)
func GetDATASOURCETABLEFIELDCHILDbyid ¶
func GetDATASOURCETABLEFIELDCHILDbyid(u *DATASOURCETABLEFIELDCHILD) (admins []DATASOURCETABLEFIELDCHILD, err error)
func Getdatasourcetablefieldchildbypageindex ¶
func Getdatasourcetablefieldchildbypageindex(l PAGE) (admins []DATASOURCETABLEFIELDCHILD, err error)
获得分页数据
func (*DATASOURCETABLEFIELDCHILD) TableName ¶
func (u *DATASOURCETABLEFIELDCHILD) TableName() string
func (*DATASOURCETABLEFIELDCHILD) TableUnique ¶
func (u *DATASOURCETABLEFIELDCHILD) TableUnique() [][]string
多字段唯一键
type DATASOURCETABLEFIELDCHILDSEARCHITEM ¶
type DATASOURCETABLEFIELDCHILDSEARCHITEM struct { Id int64 Sourcetargettype string Datasource string Tablename string Fieldname string Childfieldname string Edit string Delete string Pageindex int Pagesize int }
func Getdatasourcetablefieldchildsearchbypageindex ¶
func Getdatasourcetablefieldchildsearchbypageindex(u DATASOURCETABLEFIELDCHILDSEARCH) (admins []DATASOURCETABLEFIELDCHILDSEARCHITEM, 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 FIFLOW ¶
type FIFLOW struct { Fiid int `orm:"pk;column(fiid)"` Modualid string `orm:"column(modualid)"` Flowtemplateid string `orm:"column(flowtemplateid)"` Flowcontent string `orm:"column(flowcontent)"` Caller string `orm:"column(caller)"` Flowstarttime time.Time `orm:"column(flowstarttime)"` Flowfinishtime time.Time `orm:"column(flowfinishtime);null"` Flowstatus string `orm:"column(flowstatus);default(0)"` State string `orm:"column(state);null"` }
fi_flow表
type FIFLOWPAGEINDEX ¶
type FIFLOWPAGEINDEX struct { Fiid int Modualid string Flowtemplateid string Flowcontent string Caller string Flowstarttime time.Time Flowfinishtime time.Time Flowstatus string State string Pageindex int Pagesize int }
fi_flow表
type FISTATUS ¶
type FISTATUS struct { Flowstatus string `orm:"pk;column(flowstatus)"` Flowstatusname string `orm:"column(flowstatusname)"` }
流程状态
type FITASK ¶
type FITASK struct { Tiid int `orm:"pk;column(tiid)"` Fiid int `orm:"column(fiid)"` Taskid string `orm:"column(taskid)"` Taskstarttime time.Time `orm:"column(taskstarttime)"` Taskfinishtime time.Time `orm:"column(taskfinishtime);null"` Editor string `orm:"column(editor);null"` Actionid string `orm:"column(actionid)"` Opinion string `orm:"column(opinion);null"` Direction string `orm:"column(direction);null"` Skiptotaskid string `orm:"column(skiptotaskid);null"` Islast string `orm:"column(islast);null"` Taskstatus string `orm:"column(taskstatus);null;default(0)"` }
fi_task表
type FITASKPREVIEW ¶
type FITASKPREVIEW struct { Id int32 `orm:"auto;column(id)"` Fiid int `orm:"column(fiid)"` Prevtiid int `orm:"column(prevtiid)"` Prevdirection string `orm:"column(prevdirection);null"` Prevtaskid string `orm:"column(prevtaskid)"` Taskid string `orm:"column(taskid)"` Tiid int `orm:"column(tiid)"` }
任务预览表fi_task_prev
type FLOWMANTASKACTION ¶
type FLOWMANTASKACTION struct { Flowtemplateid string Tasktype string Taskid string Action string Jump string Status string Nexttask string Backtask string }
流程定义人工任务action表fi_flowmantaskaction_tb
type FLOWORGVARY ¶
流程变量
func GetAllFLOWORGVARYBYPAGEINDEX ¶
func GetAllFLOWORGVARYBYPAGEINDEX(p PAGE) (admins []FLOWORGVARY, err error)
获得流程机构变量分页数据
func GetFLOWORGVARYBYORGID ¶
func GetFLOWORGVARYBYORGID(orgid string) (admins []FLOWORGVARY, err error)
func GetFLOWORGVARYBYUSERID ¶
func GetFLOWORGVARYBYUSERID(userid string) (admins []FLOWORGVARY, err error)
根据用户获得流程机构变量
type FLOWSWITCHTASKACTION ¶
type FLOWSWITCHTASKACTION struct { Flowtemplateid string Tasktype string Taskid string Nos string Conditions string Functions string Valuee string Jump string Statuss string Nexttask string Backtask string }
流程定义分支任务action表fi_flowswitchtaskaction_tb
type FLOWTASK ¶
type FLOWTASK struct { Flowtemplateid string Tasktype string Taskid string Taskname string Supportskip bool Sendmessage bool Concurrent string Samepersontask string Nopersontask string Skiptotaskid string }
流程定义fi_flowtask_tb表
type FLOWTASKANDACTIONS ¶
type FLOWTASKANDACTIONS struct { Flowtask FLOWTASK Flowmantaskaction []FLOWMANTASKACTION Flowmantaskexecuter []FLOWTASKEXECUTER Flowswitchtaskaction []FLOWSWITCHTASKACTION }
流程定义分支任务action表
type FLOWTASKEXECUTER ¶
type FLOWTASKEXECUTER struct { Flowtemplateid string Tasktype string Taskid string No string Taskexecuter string Expression string }
流程定义人工任务执行人表fi_flowtaskexecuter_tb
type FLOWTEMPLATE ¶
type FLOWTEMPLATE struct { Flowtemplateid string `orm:"pk;column(flowtemplateid)"` Flowtemplatename string `orm:"column(flowtemplatename)"` Flowcontent string `orm:"column(flowcontent);null"` Flowinstidcol string `orm:"column(flowinstidcol);null"` Flowstatuscol string `orm:"column(flowstatuscol);null"` }
func GetFLOWTEMPLATE ¶
func GetFLOWTEMPLATE(e FLOWTEMPLATE) (admin FLOWTEMPLATE, err error)
根据流程模板ID获得流程模板数据
type FLOWTEMPLATEANDITEM ¶
type FLOWTEMPLATEANDITEM struct { Flowtemplate FLOWTEMPLATE Flowtemplateitem []FLOWTEMPLATEITEM }
type FLOWTEMPLATEITEM ¶
type FLOWTEMPLATEITEM struct { Id int `orm:"auto;column(id)"` Flowtemplateid string `orm:"column(flowtemplateid)"` Vary string `orm:"column(vary)"` Varyname string `orm:"column(varyname)"` Varytype string `orm:"column(varytype)"` Varyvalue string `orm:"column(varyvalue);null"` }
流程定义fi_templateitem_tb表
func GetAllFLOWTEMPLATEITEM ¶
func GetAllFLOWTEMPLATEITEM(e FLOWTEMPLATE) (admins []FLOWTEMPLATEITEM, err error)
获得所有的流程模板明细
type FromDatasourceTableinfo ¶
type FromDatasourceTableinfo struct { Id int64 `orm:"pk;auto"` Fromdatasource string `orm:"column(fromdatasource)"` //源数据源 Fromtablename string `orm:"column(fromtablename)"` //源表 Fromfieldnames string `orm:"column(fromfieldnames)"` //源表字段,用逗号分隔;例如 a,b,c Fromchildfieldnames string `orm:"column(fromchildfieldnames)"` //源子表字段,用逗号分隔;例如 a,b,c Fromfieldandchildnames string `orm:"column(fromfieldandchildnames)"` //父字段和子字段组合,用逗号分隔;例如 activity.userName,activity.email Datasource string `orm:"column(datasource)"` //目标数据源 Tablename string `orm:"column(tablename)"` //目标表 Targetfieldnames string `orm:"column(targetfieldnames)"` //目标表字段,用逗号分隔;例如 a,b,c TruncateTargetSql string `orm:"column(truncateTargetSql)"` //truncate目标表 QuerySourceSql string `orm:"column(querySourceSql)"` //查询源表SQL,例如select a,b,c from table InsertTargetSql string `orm:"column(insertTargetSql)"` //插入目标表SQL,例如insert into table(a,b,c) values(?,?,?) UpdateTargetSql string `orm:"column(updateTargetSql)"` //更新目标表SQL,例如update table set a=?,b=?,c=? where primarykey1=? and primarykey2=? SelectcountTargetSql string `orm:"column(selectcountTargetSql)"` //判断目标表是否存在记录SQL,例如select count(1) as ncount from table where primarykey1=? and primarykey2=? Sourcetableprimarykeys string `orm:"column(sourcetableprimarykeys)"` //源表主键字段 Targettableprimarykeys string `orm:"column(targettableprimarykeys)"` //目标表主键字段 }
func (*FromDatasourceTableinfo) TableName ¶
func (u *FromDatasourceTableinfo) TableName() string
type FromDatasourceTableinfo2 ¶
type FromDatasourceTableinfo2 struct { Id int64 Fromdatasource string //源数据源 Fromtablename string //源表 Fromfieldnames string //源表字段,用逗号分隔;例如 a,b,c Fromchildfieldnames string //源子表字段,用逗号分隔;例如 a,b,c Fromfieldandchildnames string //父字段和子字段组合,用逗号分隔;例如 activity.userName,activity.email Datasource string //目标数据源 Tablename string //目标表 Targetfieldnames string //目标表字段,用逗号分隔;例如 a,b,c TruncateTargetSql string //truncate目标表 QuerySourceSql string //查询源表SQL,例如select a,b,c from table InsertTargetSql string //插入目标表SQL,例如insert into table(a,b,c) values(?,?,?) UpdateTargetSql string //更新目标表SQL,例如update table set a=?,b=?,c=? where primarykey1=? and primarykey2=? SelectcountTargetSql string //判断目标表是否存在记录SQL,例如select count(1) as ncount from table where primarykey1=? and primarykey2=? Sourcetableprimarykeys string //源表主键字段 Targettableprimarykeys string //目标表主键字段 Targettablefieldtype map[string]string //目标表字段类型 }
func Getdatamovetableinfobysource ¶
func Getdatamovetableinfobysource(dm DATAMOVEAPPLY) (admins []FromDatasourceTableinfo2, err error)
根据要迁移的源表获得表配置信息 一张源表可对于多张目标表
func Getdatamovetableinfobytarget ¶
func Getdatamovetableinfobytarget(dm DATAMOVEAPPLY) (admins []FromDatasourceTableinfo2, err error)
根据要迁移的目标表获得表配置信息 一张目标表可对应多张源表
func (*FromDatasourceTableinfo2) GetSQLByTableInfo ¶
func (tblinf *FromDatasourceTableinfo2) GetSQLByTableInfo()
type LANGPAGEINDEX ¶
type MODUALCNTANDMNY ¶
共通
type MongoConn ¶
func GetMongoConn ¶
func GetMongoConn(ds DATASOURCE) (*MongoConn, error)
func (*MongoConn) GetDBVersion ¶
获得mongodb的版本号 OK
func (*MongoConn) Getcollectionchilddatasbyfieldnames ¶
func (conn *MongoConn) Getcollectionchilddatasbyfieldnames(databasename string, collectionname string, parentfieldname, childfieldnames string) (result []map[string]interface{}, err error)
获得指定key的数据,如fieldnames为'a','b','c',获得a b c列数据
func (*MongoConn) Getcollectiondataforparentchild ¶
func (conn *MongoConn) Getcollectiondataforparentchild(databasename, collectionname, fieldnames string, filterkey ...interface{}) (result []map[string]interface{}, err error)
filterkey:Country;fieldnames: subCatalogs.displayEN,subCatalogs.displayZH filterkey:Country;fieldnames: subCatalogs.displayEN,subCatalogs.subCatalogs.displayEN,subCatalogs.subCatalogs.displayZH filterkey:Country;fieldnames: subCatalogs.subCatalogs.displayEN,subCatalogs.subCatalogs.subCatalogs.displayEN,subCatalogs.subCatalogs.subCatalogs.displayZH 获得父子表数据
func (*MongoConn) Getcollectiondataforregion ¶
func (conn *MongoConn) Getcollectiondataforregion(databasename, collectionname, filterkey string, fieldnames string) (result []map[string]interface{}, err error)
filterkey:Country;fieldnames: subCatalogs.displayEN,subCatalogs.displayZH filterkey:Country;fieldnames: subCatalogs.displayEN,subCatalogs.subCatalogs.displayEN,subCatalogs.subCatalogs.displayZH filterkey:Country;fieldnames: subCatalogs.subCatalogs.displayEN,subCatalogs.subCatalogs.subCatalogs.displayEN,subCatalogs.subCatalogs.subCatalogs.displayZH 通过key获得数据
func (*MongoConn) Getcollectiondatas ¶
func (conn *MongoConn) Getcollectiondatas(databasename string, collectionname string) (result []map[string]interface{}, err error)
获得指定schema指定collection的所有数据 返回数据为[]map[string]interface{}
func (*MongoConn) Getcollectiondatasbyfieldnames ¶
func (conn *MongoConn) Getcollectiondatasbyfieldnames(databasename string, collectionname string, fieldnames string, fdt ...FromDatasourceTableinfo2) (result []map[string]interface{}, err error)
获得指定key的数据,如fieldnames为'a','b','c',获得a b c列数据
func (*MongoConn) Getcollectiondatasbyfieldnamesonerow ¶
func (conn *MongoConn) Getcollectiondatasbyfieldnamesonerow(databasename string, collectionname string, fieldnames string) (result []orm.Params, err error)
获得指定key的一行数据,如fieldnames为'a','b','c',获得a b c列数据
func (*MongoConn) Getcollectiondatasrow ¶
func (conn *MongoConn) Getcollectiondatasrow(databasename string, collectionname string) (result []orm.Params, err error)
获得一行数据
func (*MongoConn) Getcollectionfieldinfo ¶
func (conn *MongoConn) Getcollectionfieldinfo(databasename string, collectionname string) (fieldinfomap map[string]DATASOURCETABLEFIELD, err error)
获得collection的字段信息,包括 字段名称、字段类型、字段长度、是否主键、是否允许为空、是否为父、是否自动增长
func (*MongoConn) Getcollectionfieldinfochild ¶
func (conn *MongoConn) Getcollectionfieldinfochild(databasename string, collectionname string, fieldname string, maptype string) (fieldinfomap map[string]DATASOURCETABLEFIELDCHILD, err error)
获得collection的字段信息,包括 字段名称、字段类型、字段长度、是否主键、是否允许为空、是否为父、是否自动增长
func (*MongoConn) Getcollectionindexs ¶
func (conn *MongoConn) Getcollectionindexs(databasename string, collectionname string) (index []mgo.Index, err error)
获得collection的索引
func (*MongoConn) Getcollectionkeys ¶
func (conn *MongoConn) Getcollectionkeys(databasename string, collectionname string) (keys []string, err error)
获得collection的所有key,不包含子key
func (*MongoConn) Getcollectionkeysbymapreduce ¶
func (conn *MongoConn) Getcollectionkeysbymapreduce(databasename string, collectionname string) (keys []string, err error)
job := &mgo.MapReduce{ Map: "function() { emit(this.n, 1) }", Reduce: "function(key, values) { return Array.sum(values) }", }
_, err := collection.Find(nil).MapReduce(job, &result)
if err != nil { return err }
func (*MongoConn) Getcollectionnames ¶
func (conn *MongoConn) Getcollectionnames(databasename string) (collectionnames []string, err error)
获得指定schema所有的collection名,3.0以上才能获得
func (*MongoConn) Getcollectionnames2 ¶
func (*MongoConn) Getcollectionrows ¶
func (conn *MongoConn) Getcollectionrows(databasename string, collectionname string) (cltinf COLLECTIONINFO, err error)
获得指定schema指定collection的数据条数
func (*MongoConn) Getdatabasenames ¶
func (*MongoConn) HasOplogNs ¶
type OPTIONS ¶
type OPTIONS struct { Value string `json:"value"` Label string `json:"label"` Checked bool `json:"checked"` }
func GetAllCOMPANYoptions ¶
func GetAllDATASOURCETABLEFIELDoptions ¶
func GetAllDATASOURCETABLEFIELDoptions(u *DATASOURCETABLEFIELD) (admins []OPTIONS, err error)
func GetAllDATASOURCETABLEoptions ¶
func GetAllDATASOURCETABLEoptions(u *DATASOURCE) (admins []OPTIONS, err error)
func GetAllDATASOURCEoptions ¶
func GetAllENUMITEMoptions ¶
func GetAllENUMoptions ¶
func GetAllFLOWTEMPLATEoptions ¶
获得所有的流程模板
func GetAllGroupoptions ¶
func GetAllModualoptions ¶
func GetAllOrgoptions ¶
func GetAllRoleoptions ¶
func GetDATASOURCEoptionsbytype ¶
func GetDATASOURCEoptionsbytype(ds DATASOURCE) (admins []OPTIONS, err error)
func GetLeaders ¶
func GetUserforagentoptions ¶
func GetUserforagentoptions(ufa USERFORAGENT) (admins []OPTIONS, err error)
获得本部门或全体用户
func Getuseroptionsbyorgid ¶
func Getuseroptionsbyorgid(u CMN_ORG_TB) (admins []OPTIONS, err error)
type ORGVARY ¶
type ORGVARY struct { Vid string `orm:"pk;column(vid)"` Vname string `orm:"column(vname)"` Defaultvalue string `orm:"column(defaultvalue)"` }
变量
type PAGE ¶
func GetAllCMN_LANG_TBcount ¶
func Getdatamoveapplycount ¶
func Getdatamoveapplycount(u DATAMOVEAPPLY) (page PAGE, err error)
获得数据条数
func Getdatasourcetablefieldchildcount ¶
获得数据条数
func Getdatasourcetablefieldchildsearchcount ¶
func Getdatasourcetablefieldchildsearchcount(u DATASOURCETABLEFIELDCHILDSEARCH) (page PAGE, err error)
获得数据条数
func Getdatasourcetablefieldcount ¶
获得数据条数
type PORG ¶
type PORG struct {
Porg []CMN_ORG_TB
}
type PROFILE ¶
type PROFILE struct { Userid string Username string Companycode string Loginip string Logintime time.Time }
func GetUserforagent ¶
func GetUserforagent(ufa USERFORAGENT) (admins []PROFILE, err error)
获得本部门或全体用户
type PROJECTPATH ¶
func GETPROJECTPATH ¶
func GETPROJECTPATH() (u PROJECTPATH, err error)
type Parentgroupid ¶
func Getparentgroupids ¶
func Getparentgroupids() (parentids []Parentgroupid, err error)
type SynDataMessage ¶
type SynDataMessage struct { Messagetype int `json:"Messagetype"` Ip string `json:"Ip"` Message DATAMOVEAPPLYITEM }
type TODOTASKLIST ¶
type TODOTASKLIST struct { Fiid int Tiid int Caller string Flowcontent string Taskid string Flowstarttime time.Time Flowfinishtime time.Time Flowstatus string Url string Routerlink string Opinion string Flowtemplateid string Editor string Taskstarttime time.Time Taskfinishtime time.Time Taskstatus string Supportskip bool Flowstatusname string Taskname string Checked bool Pageindex int Pagesize int }
待办任务列表
func Getflowmonitorbypageindex ¶
func Getflowmonitorbypageindex(u FIFLOWPAGEINDEX) (admins []TODOTASKLIST, err error)
获得流程监控分页数据
func Gettodotaskfortransfer ¶
func Gettodotaskfortransfer(u TRANSFER) (admins []TODOTASKLIST, err error)
为转签转岗业务获得待办
type TRANSFER ¶
type TRANSFER struct { Usertype string Submitter string Userid string Cancel bool Transferuserid string Listdata []TODOTASKLIST }
转签转岗离职
type USERFORAGENT ¶
代理人
type WebsocketClient ¶
type WebsocketClient struct { Ws *WebsocketServer // The websocket connection. Conn *websocket.Conn // Buffered channel of outbound messages. Send chan []byte // Buffered channel of inbound messages. Recieve chan []byte }
func (*WebsocketClient) ReadMessage ¶
func (c *WebsocketClient) ReadMessage()
func (*WebsocketClient) WriteMessage ¶
func (c *WebsocketClient) WriteMessage()
type WebsocketServer ¶
type WebsocketServer struct { // Registered clients. Clients map[*WebsocketClient]bool // Inbound messages from the clients. Broadcast chan []byte // Register requests from the clients. Register chan *WebsocketClient // Unregister requests from clients. Unregister chan *WebsocketClient //unread data message Unreaddatamessage []*SynDataMessage //指定IP data message Datamessage chan *SynDataMessage }
func GetWebsocketServer ¶
func GetWebsocketServer() *WebsocketServer
func NewWebsocketServer ¶
func NewWebsocketServer() *WebsocketServer
func (*WebsocketServer) PushUnreaddatamessage ¶
func (ws *WebsocketServer) PushUnreaddatamessage(wc *WebsocketClient)
func (*WebsocketServer) Run ¶
func (ws *WebsocketServer) Run()
Source Files ¶
- cmn_group_tbmodel.go
- cmn_lang_tbmodel.go
- cmn_modual_tbmodel.go
- cmn_org_tbmodel.go
- cmn_role_tbmodel.go
- cmn_user_tbmodel.go
- commonmodel.go
- companymodel.go
- createtreemodel.go
- datamoveapplymodel.go
- datasourcemodel.go
- datasourcetablefieldchildmodel.go
- datasourcetablefieldchildsearchmodel.go
- datasourcetablefieldmodel.go
- datasourcetablemodel.go
- enummodel.go
- enumsearchmodel.go
- flowmodel.go
- init.go
- log.go
- mongoconn.go
- mssqlconn.go
- mysqlconn.go
- oracleconn.go
- websocketclient.go
- websocketserver.go