Documentation ¶
Index ¶
- Constants
- Variables
- func Authenticate(payload toolkit.M) (toolkit.M, error)
- func ChangePass(payload toolkit.M) error
- func ClearPLCache()
- func Delete(o orm.IModel) error
- func DeleteAccess(payload toolkit.M) error
- func DeleteGroup(payload toolkit.M) error
- func DeleteUser(payload toolkit.M) error
- func EditGroup(payload toolkit.M) (toolkit.M, error)
- func EditUser(payload toolkit.M) (toolkit.M, error)
- func FilterParse(where toolkit.M) *dbox.Filter
- func Find(o orm.IModel, filter *dbox.Filter) (dbox.ICursor, error)
- func FindAccess(payload toolkit.M) (toolkit.M, error)
- func GenerateDummyLedgerSummary()
- func GenerateDummySalesLinePL()
- func Get(o orm.IModel, id interface{}) error
- func GetAccess(payload toolkit.M) (toolkit.M, error)
- func GetAccessGroup(payload toolkit.M) ([]interface{}, error)
- func GetAccessMenu(sessionId interface{}) ([]toolkit.M, error)
- func GetAccessUser(payload toolkit.M) ([]interface{}, error)
- func GetChildMenu(sessionId interface{}, childMenu []Menu) (interface{}, error)
- func GetConfig(key string, args ...string) interface{}
- func GetDB(key string) interface{}
- func GetFileList(search toolkit.M) ([]gdrj.UploadData, error)
- func GetGroup() ([]toolkit.M, error)
- func GetLog(payload toolkit.M) (toolkit.M, error)
- func GetSession(payload toolkit.M) (toolkit.M, error)
- func GetTableList() (toolkit.Ms, error)
- func GetUser(payload toolkit.M) (toolkit.M, error)
- func GetUserName(sessionId interface{}) (tUser acl.User, err error)
- func Getaccessdropdown() ([]toolkit.M, error)
- func InitialSetDatabase() error
- func LoadMasterToMemory() (map[string]*gdrj.ProfitCenter, map[string]*gdrj.CostCenter, ...)
- func LoginProcess(payload toolkit.M) (string, error)
- func PrepareDefaultUser() (err error)
- func Query(driver string, host string, other ...interface{}) *queryWrapper
- func RemoveConfig(key string)
- func ResetPassword(payload toolkit.M) error
- func Save(o orm.IModel) error
- func SaveAccess(payload toolkit.M) error
- func SaveGroup(payload toolkit.M) error
- func SavePassword(payload toolkit.M) error
- func SaveUser(payload toolkit.M) error
- func SearchGroup(payload toolkit.M) (toolkit.M, error)
- func SetConfig(key string, value interface{})
- func SetDB(value interface{})
- func SetExpired(payload toolkit.M) error
- func SetPort(_port *Ports, value interface{}) error
- func WriteLog(sessionId interface{}, access, reference string) error
- type AnalysisIdea
- type Configuration
- type DataBrowser
- type Databases
- type Log
- type Login
- type Menu
- type MetaSave
- type Organization
- type Ports
- type StructInfo
Constants ¶
View Source
const ( CONF_DB_ACL string = "db_acl" CONF_DB_GDRJ string = "db_godrej" )
Variables ¶
View Source
var ConfigPath string
Functions ¶
func ChangePass ¶
func ClearPLCache ¶
func ClearPLCache()
func DeleteAccess ¶
func DeleteGroup ¶
func DeleteUser ¶
func GenerateDummyLedgerSummary ¶
func GenerateDummyLedgerSummary()
func GenerateDummySalesLinePL ¶
func GenerateDummySalesLinePL()
func GetAccessGroup ¶
func GetAccessMenu ¶
func GetAccessUser ¶
func GetChildMenu ¶
func GetFileList ¶
func GetTableList ¶
func GetUserName ¶
func Getaccessdropdown ¶
func InitialSetDatabase ¶
func InitialSetDatabase() error
func LoadMasterToMemory ¶
func PrepareDefaultUser ¶
func PrepareDefaultUser() (err error)
func RemoveConfig ¶
func RemoveConfig(key string)
func ResetPassword ¶
func SaveAccess ¶
func SavePassword ¶
func SetExpired ¶
Types ¶
type AnalysisIdea ¶
type AnalysisIdea struct { orm.ModelBase `json:"-" bson:"-"` ID string `json:"_id" bson:"_id"` Order int `json:"order" bson:"order"` Name string `json:"name" bson:"name"` Status bool `json:"status" bson:"status"` }
func AnalysisIdeaGetAll ¶
func AnalysisIdeaGetAll() ([]*AnalysisIdea, error)
func AnalysisIdeaGetByID ¶
func AnalysisIdeaGetByID(id string) *AnalysisIdea
func (*AnalysisIdea) RecordID ¶
func (a *AnalysisIdea) RecordID() interface{}
func (*AnalysisIdea) TableName ¶
func (a *AnalysisIdea) TableName() string
type Configuration ¶
type Configuration struct { orm.ModelBase ID string `json:"_id",bson:"_id"` Value interface{} }
func (*Configuration) RecordID ¶
func (a *Configuration) RecordID() interface{}
func (*Configuration) TableName ¶
func (a *Configuration) TableName() string
type DataBrowser ¶
type DataBrowser struct { orm.ModelBase ID string `json:"_id",bson:"_id"` TableNames string IsAdd bool IsEdit bool MetaData []*StructInfo }
func ConnectToDatabase ¶
func GetDataBrowserList ¶
func GetDataBrowserList() ([]DataBrowser, error)
func (*DataBrowser) RecordID ¶
func (b *DataBrowser) RecordID() interface{}
func (*DataBrowser) TableName ¶
func (b *DataBrowser) TableName() string
type Databases ¶
type Databases struct { orm.ModelBase ID string `json:"_id",bson:"_id"` Data interface{} `json:"data",bson:"data"` }
type Log ¶
type Login ¶
func (*Login) GetConnectionInfo ¶
func (l *Login) GetConnectionInfo(db_type string) (string, *dbox.ConnectionInfo)
type Menu ¶
type Organization ¶
type Organization struct { orm.ModelBase `json:"-" bson:"-"` ID string `json:"_id" bson:"_id"` FullName string `json:"FullName" bson:"FullName"` Position string `json:"Position" bson:"Position"` Image string `json:"Image" bson:"Image"` Color string `json:"Color" bson:"Color"` Items []Organization `json:"Items" bson:"Items"` }
func GetOrganizationByID ¶
func GetOrganizationByID(id string) ([]Organization, error)
func (*Organization) RecordID ¶
func (o *Organization) RecordID() interface{}
func (*Organization) TableName ¶
func (o *Organization) TableName() string
Click to show internal directories.
Click to hide internal directories.