Documentation ¶
Index ¶
- Variables
- func AllFolders(state, search string, page, rows int) (et.List, error)
- func AllModuleProfiles(projectId, moduleId, state, search string, page, rows int) (et.List, error)
- func AllModules(state, search string, page, rows int, _select string) (et.List, error)
- func AllProjects(state, search string, page, rows int, _select string) (et.List, error)
- func AllTypes(projectId, kind, state, search string, page, rows int, _select string) (et.List, error)
- func AllUsers(state, search string, page, rows int, _select string) (et.List, error)
- func CheckModuleFolder(module_id, folder_id string, chk bool) (et.Item, error)
- func CheckPermission(projectId, model, profileTp, permissionTp string, chk bool) (et.Item, error)
- func CheckProfileFolder(moduleId, profileTp, folderId string, chk bool) (et.Item, error)
- func CheckProjectModule(project_id, module_id string, chk bool) (et.Item, error)
- func CheckRole(projectId, moduleId, profileTp, userId string, chk bool) (et.Item, error)
- func DefaultFolderUsers(moduleId string) error
- func DefineFolders(db *jdb.DB) error
- func DefineMigration(db *jdb.DB) error
- func DefineModuleFolders(db *jdb.DB) error
- func DefineModules(db *jdb.DB) error
- func DefinePermisions(db *jdb.DB) error
- func DefineProfileFolders(db *jdb.DB) error
- func DefineProfiles(db *jdb.DB) error
- func DefineProjectModules(db *jdb.DB) error
- func DefineProjects(db *jdb.DB) error
- func DefineRoles(db *jdb.DB) error
- func DefineSchemaModule(db *jdb.DB) error
- func DefineTokens(db *jdb.DB) error
- func DefineTypes(db *jdb.DB) error
- func DefineUsers(db *jdb.DB) error
- func DeleteFolder(id string) (et.Item, error)
- func DeleteModule(id string) (et.Item, error)
- func DeleteProfile(moduleId, profileTp string) (et.Item, error)
- func DeleteProject(id string) (et.Item, error)
- func DeleteToken(id string) (et.Item, error)
- func DeleteType(id string) (et.Item, error)
- func DeleteUser(id string) (et.Item, error)
- func GetFolderById(id string) (et.Item, error)
- func GetFolderByName(moduleId, mainId, name string) (et.Item, error)
- func GetModuleById(id string) (et.Item, error)
- func GetModuleByName(name string) (et.Item, error)
- func GetModuleFolderById(module_id, folder_id string) (et.Item, error)
- func GetModuleFolderByIdT(_idt string) (et.Item, error)
- func GetPermission(projectId, model, profileTp, permissionTp string) (et.Item, error)
- func GetPermissions(projectId, model, profileTp string) (map[string]bool, error)
- func GetProfile(userId string) (et.Item, error)
- func GetProfileById(moduleId, profileTp string) (et.Item, error)
- func GetProfileFolderById(moduleId, profileTp, folderId string) (et.Item, error)
- func GetProfileFolderByIdT(idT string) (et.Item, error)
- func GetProfileFolders(userId, projectId string) ([]et.Json, error)
- func GetProjectById(id string) (et.Item, error)
- func GetProjectByModule(projectId, moduleId string) (et.Item, error)
- func GetProjectModules(projectId, state, search string, page, rows int) (et.List, error)
- func GetProjectName(name string) (et.Item, error)
- func GetRoleById(projectId, moduleId, userId string) (et.Item, error)
- func GetTokenById(id string) (et.Item, error)
- func GetTokensByUserId(userId, search string, page, rows int) (et.List, error)
- func GetTypeById(id string) (et.Item, error)
- func GetTypeByIndex(idx int) (et.Item, error)
- func GetTypeByName(kind, name string) (et.Item, error)
- func GetUserByEmail(email string) (et.Item, error)
- func GetUserById(id string) (et.Item, error)
- func GetUserByName(name string) (et.Item, error)
- func GetUserModules(userId string) ([]et.Json, error)
- func GetUserProjects(userId string) ([]et.Json, error)
- func GetUserRoleByIndex(idx int64) (et.Item, error)
- func IdMigration(old_id string, tag string) (string, error)
- func InitData() error
- func InitDefine(db *jdb.DB) error
- func InitFolder(moduleId, mainId, id, name, description string, data et.Json) (et.Item, error)
- func InitModule(id, name, description string, data et.Json) (et.Item, error)
- func InitProfile(moduleId, profileTp string, data et.Json) (et.Item, error)
- func InitProject(id, name, description string, data et.Json) (et.Item, error)
- func InitType(projectId, id, state, kind, name, description string) (et.Item, error)
- func InsertUser(id, fullName, country, phone, email, password string) (et.Item, error)
- func LoadTokens() error
- func SetMigration(old_id string, id string, tag string) (et.Item, error)
- func StateFolder(id, state string) (et.Item, error)
- func StateModule(id, state string) (et.Item, error)
- func StateProject(id, state string) (et.Item, error)
- func StateType(id, state string) (et.Item, error)
- func StateUser(id, state string) (et.Item, error)
- func UnLoadTokens() error
- func UpSetFolder(moduleId, mainId, id, name, description string, data et.Json) (et.Item, error)
- func UpSetModule(id, name, description string, data et.Json) (et.Item, error)
- func UpSetProfile(moduleId, profileTp string, data et.Json) (et.Item, error)
- func UpSetProfileTp(projectId, moduleId, id, name, description string, data et.Json) (et.Item, error)
- func UpSetProject(id, moduleId, name, description string, data et.Json) (et.Item, error)
- func UpSetToken(projeectId, id, app, device, name, userId string) (et.Item, error)
- func UpSetType(projectId, id, kind, name, description string) (et.Item, error)
- func UpdateUser(id string, data et.Json) (et.Item, error)
- type Token
Constants ¶
This section is empty.
Variables ¶
var Folders *linq.Model
var Migration *linq.Model
var ModelFolders *linq.Model
var Modules *linq.Model
var PERMISION_DELETE = "PERMISION.DELETE"
var PERMISION_EXECUTE = "PERMISION.EXECUTE"
var PERMISION_READ = "PERMISION.READ"
var PERMISION_WRITE = "PERMISION.WRITE"
var PROFILE_ADMIN = "PROFILE.ADMIN"
var PROFILE_DEV = "PROFILE.DEV"
var PROFILE_SUPORT = "PROFILE.SUPORT"
var Permissions *linq.Model
var ProfileFolders *linq.Model
var Profiles *linq.Model
var ProjectModules *linq.Model
var Projects *linq.Model
var Roles *linq.Model
var SchemaModule *linq.Schema
var Tokens *linq.Model
var Types *linq.Model
var Users *linq.Model
Functions ¶
func AllFolders ¶
* * AllFolders * @param state string * @param search string * @param page int * @param rows int * @return et.List, error *
func AllModuleProfiles ¶
func AllModules ¶
* * AllModules * @param state string * @param search string * @param page int * @param rows int * @param _select string * @return et.List, error *
func AllProjects ¶
* * AllProjects * @param state string * @param search string * @param page int * @param rows int * @param _select string * @return et.List, error *
func AllUsers ¶
* * AllUsers * @param state string * @param search string * @param page int * @param rows int * @param _select string * @return et.List * @return error *
func CheckModuleFolder ¶ added in v0.0.134
Check folder that module
func CheckPermission ¶ added in v1.0.38
* * CheckPermission * @param projectId string * @param model string * @param profileTp string * @param permissionTp string * @return et.Item, error *
func CheckProfileFolder ¶
* * CheckProfileFolder * @param moduleId string * @param profileTp string * @param folderId string * @param chk bool * @return et.Item, error *
func CheckProjectModule ¶
* * CheckProjectModule * @param projectId string * @param moduleId string * @param chk bool * @return et.Item, error *
func CheckRole ¶
* * CheckRole * @param projectId string * @param moduleId string * @param profileTp string * @param userId string * @param chk bool * @return et.Item, error *
func DefaultFolderUsers ¶ added in v0.0.152
* * DefaultFolderUsers * @param moduleId string * @return error *
func DefineFolders ¶
func DefineMigration ¶ added in v0.0.167
func DefineModuleFolders ¶ added in v0.0.134
func DefineModules ¶
func DefinePermisions ¶ added in v1.0.38
func DefineProfileFolders ¶ added in v0.0.22
func DefineProfiles ¶
func DefineProjectModules ¶ added in v0.0.22
func DefineProjects ¶
func DefineRoles ¶
func DefineSchemaModule ¶ added in v0.0.53
func DefineTokens ¶
func DefineTypes ¶
func DefineUsers ¶
func DeleteFolder ¶
* * DeleteFolder * @param id string * @return et.Item, error *
func DeleteModule ¶
* * DeleteModule * @param id string * @return et.Item, error *
func DeleteProject ¶
* * DeleteProject * @param id string * @return et.Item, error *
func DeleteToken ¶
* * DeleteToken * @param id string * @return et.Item * @return error *
func DeleteUser ¶
* * DeleteUser * @param id string * @return et.Item * @return error *
func GetFolderById ¶
* * GetFolderById * @param id string * @return et.Item, error *
func GetFolderByName ¶
* * GetFolderByName * @param moduleId string * @param mainId string * @param name string * @return et.Item, error *
func GetModuleById ¶
* * GetModuleById * @param id string * @return et.Item, error *
func GetModuleByName ¶
* * GetModuleByName * @param name string * @return et.Item, error *
func GetModuleFolderById ¶ added in v0.0.134
* * GetModuleFolderById * @param module_id string * @param folder_id string * @return et.Item, error *
func GetModuleFolderByIdT ¶ added in v0.0.134
* * GetModuleFolderByIdT * @param _idt string * @return et.Item, error *
func GetPermission ¶ added in v1.0.38
* * GetPermission * @param projectId string * @param model string * @param profileTp string * @param permissionTp string * @return et.Item, error *
func GetPermissions ¶ added in v1.0.38
* * GetPermissions * @param projectId string * @param model string * @param profileTp string * @return et.Items, error *
func GetProfile ¶
* * GetProfile * @param userId string * @return et.Item * @return error *
func GetProfileById ¶
* * Profile * Handler for CRUD data *
func GetProfileFolderById ¶
* * GetProfileFolderById * @param moduleId string * @param profileTp string * @param folderId string * @return et.Item, error *
func GetProfileFolderByIdT ¶ added in v0.0.121
* * Profile Folder *
func GetProjectById ¶
* * GetProjectById * @param id string * @return et.Item, error *
func GetProjectByModule ¶
* * GetProjectByModule * @param projectId string * @param moduleId string * @return et.Item, error *
func GetProjectModules ¶
* * GetProjectModules * @param projectId string * @param state string * @param search string * @param page int * @param rows int * @return et.List, error *
func GetProjectName ¶
* * GetProjectName * @param name string * @return et.Item, error *
func GetRoleById ¶
* * GetRoleById * @param projectId string * @param moduleId string * @param userId string * @return et.Item, error *
func GetTokenById ¶
* * GetTokenById * @param id string * @return et.Item * @return error *
func GetTokensByUserId ¶
* * GetTokensByUserId * @param userId string * @param search string * @param page int * @param rows int * @return et.List * @return error *
func GetTypeById ¶
* * GetTypeById * @param string id * @return et.Item, error *
func GetTypeByIndex ¶
* * GetTypeByIndex * @param int idx * @return et.Item, error *
func GetTypeByName ¶
* * Types * Handler for CRUD data *
func GetUserByEmail ¶ added in v0.0.147
* * GetUserByEmail * @param email string * @return et.Item * @return error *
func GetUserById ¶
* * GetUserById * @param id string * @return et.Item * @return error *
func GetUserByName ¶
* * GetUserByName * @param name string * @return et.Item * @return error *
func GetUserModules ¶
* * GetUserModules * @param userId string * @return []et.Json, error *
func GetUserProjects ¶
* * GetUserProjects * @param userId string * @return []et.Json, error *
func GetUserRoleByIndex ¶
* * GetUserRoleByIndex * @param idx int64 * @return et.Item, error *
func IdMigration ¶ added in v0.0.167
* * IdMigration * @param old_id string * @param tag string * @return string, error *
func InitDefine ¶ added in v0.0.75
func InitFolder ¶
* * InitFolder * @param moduleId string * @param mainId string * @param id string * @param name string * @param description string * @param data et.Json * @return et.Item, error *
func InitModule ¶
* * InitModule * @param id string * @param name string * @param description string * @param data et.Json * @return et.Item, error *
func InitProfile ¶
* * InitProfile * @param moduleId string * @param profileTp string * @param data et.Json * @return et.Item, error *
func InitProject ¶
* * InitProject * @param id string * @param name string * @param description string * @param data et.Json * @return et.Item, error *
func InitType ¶
* * InitType * @param string projectId * @param string id * @param string state * @param string kind * @param string name * @param string description * @return et.Item, error *
func InsertUser ¶ added in v0.0.137
* * InsertUser * @param id string * @param fullName string * @param country string * @param phone string * @param email string * @param password string * @return et.Item * @return error *
func SetMigration ¶ added in v0.0.167
* * SetMigration * @param old_id string * @param id string * @param tag string * @return et.Item, error *
func StateFolder ¶
* * StateFolder * @param id string * @param state string * @return et.Item, error *
func StateModule ¶
* * StateModule * @param id string * @param state string * @return et.Item, error *
func StateProject ¶
* * StateProject * @param id string * @param state string * @return et.Item, error *
func StateUser ¶
* * StateUser * @param id string * @param state string * @return et.Item * @return error *
func UpSetFolder ¶
* * UpSetFolder * @param moduleId string * @param mainId string * @param name string * @param description string * @param data et.Json * @return et.Item, error *
func UpSetModule ¶
* * UpSetModule * @param id string * @param name string * @param description string * @param data et.Json * @return et.Item, error *
func UpSetProfileTp ¶
func UpSetProject ¶
* * UpSetProject * @param id string * @param moduleId string * @param name string * @param description string * @param data et.Json * @return et.Item, error *
func UpSetToken ¶
* * UpSetToken * @param projeectId string * @param id string * @param app string * @param device string * @param name string * @param userId string * @return et.Item * @return error *