module

package
v1.0.41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Folders *linq.Model
View Source
var Migration *linq.Model
View Source
var ModelFolders *linq.Model
View Source
var Modules *linq.Model
View Source
var PERMISION_DELETE = "PERMISION.DELETE"
View Source
var PERMISION_EXECUTE = "PERMISION.EXECUTE"
View Source
var PERMISION_READ = "PERMISION.READ"
View Source
var PERMISION_WRITE = "PERMISION.WRITE"
View Source
var PROFILE_ADMIN = "PROFILE.ADMIN"
View Source
var PROFILE_DEV = "PROFILE.DEV"
View Source
var PROFILE_SUPORT = "PROFILE.SUPORT"
View Source
var Permissions *linq.Model
View Source
var ProfileFolders *linq.Model
View Source
var Profiles *linq.Model
View Source
var ProjectModules *linq.Model
View Source
var Projects *linq.Model
View Source
var Roles *linq.Model
View Source
var SchemaModule *linq.Schema
View Source
var Tokens *linq.Model
View Source
var Types *linq.Model
View Source
var Users *linq.Model

Functions

func AllFolders

func AllFolders(state, search string, page, rows int) (et.List, error)

* * AllFolders * @param state string * @param search string * @param page int * @param rows int * @return et.List, error *

func AllModuleProfiles

func AllModuleProfiles(projectId, moduleId, state, search string, page, rows int) (et.List, error)

func AllModules

func AllModules(state, search string, page, rows int, _select string) (et.List, error)

* * AllModules * @param state string * @param search string * @param page int * @param rows int * @param _select string * @return et.List, error *

func AllProjects

func AllProjects(state, search string, page, rows int, _select string) (et.List, error)

* * AllProjects * @param state string * @param search string * @param page int * @param rows int * @param _select string * @return et.List, error *

func AllTypes

func AllTypes(projectId, kind, state, search string, page, rows int, _select string) (et.List, error)

func AllUsers

func AllUsers(state, search string, page, rows int, _select string) (et.List, error)

* * 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

func CheckModuleFolder(module_id, folder_id string, chk bool) (et.Item, error)

Check folder that module

func CheckPermission added in v1.0.38

func CheckPermission(projectId, model, profileTp, permissionTp string, chk bool) (et.Item, error)

* * CheckPermission * @param projectId string * @param model string * @param profileTp string * @param permissionTp string * @return et.Item, error *

func CheckProfileFolder

func CheckProfileFolder(moduleId, profileTp, folderId string, chk bool) (et.Item, error)

* * CheckProfileFolder * @param moduleId string * @param profileTp string * @param folderId string * @param chk bool * @return et.Item, error *

func CheckProjectModule

func CheckProjectModule(project_id, module_id string, chk bool) (et.Item, error)

* * CheckProjectModule * @param projectId string * @param moduleId string * @param chk bool * @return et.Item, error *

func CheckRole

func CheckRole(projectId, moduleId, profileTp, userId string, chk bool) (et.Item, error)

* * 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

func DefaultFolderUsers(moduleId string) error

* * DefaultFolderUsers * @param moduleId string * @return error *

func DefineFolders

func DefineFolders(db *jdb.DB) error

func DefineMigration added in v0.0.167

func DefineMigration(db *jdb.DB) error

func DefineModuleFolders added in v0.0.134

func DefineModuleFolders(db *jdb.DB) error

func DefineModules

func DefineModules(db *jdb.DB) error

func DefinePermisions added in v1.0.38

func DefinePermisions(db *jdb.DB) error

func DefineProfileFolders added in v0.0.22

func DefineProfileFolders(db *jdb.DB) error

func DefineProfiles

func DefineProfiles(db *jdb.DB) error

func DefineProjectModules added in v0.0.22

func DefineProjectModules(db *jdb.DB) error

func DefineProjects

func DefineProjects(db *jdb.DB) error

func DefineRoles

func DefineRoles(db *jdb.DB) error

func DefineSchemaModule added in v0.0.53

func DefineSchemaModule(db *jdb.DB) error

func DefineTokens

func DefineTokens(db *jdb.DB) error

func DefineTypes

func DefineTypes(db *jdb.DB) error

func DefineUsers

func DefineUsers(db *jdb.DB) error

func DeleteFolder

func DeleteFolder(id string) (et.Item, error)

* * DeleteFolder * @param id string * @return et.Item, error *

func DeleteModule

func DeleteModule(id string) (et.Item, error)

* * DeleteModule * @param id string * @return et.Item, error *

func DeleteProfile

func DeleteProfile(moduleId, profileTp string) (et.Item, error)

func DeleteProject

func DeleteProject(id string) (et.Item, error)

* * DeleteProject * @param id string * @return et.Item, error *

func DeleteToken

func DeleteToken(id string) (et.Item, error)

* * DeleteToken * @param id string * @return et.Item * @return error *

func DeleteType

func DeleteType(id string) (et.Item, error)

func DeleteUser

func DeleteUser(id string) (et.Item, error)

* * DeleteUser * @param id string * @return et.Item * @return error *

func GetFolderById

func GetFolderById(id string) (et.Item, error)

* * GetFolderById * @param id string * @return et.Item, error *

func GetFolderByName

func GetFolderByName(moduleId, mainId, name string) (et.Item, error)

* * GetFolderByName * @param moduleId string * @param mainId string * @param name string * @return et.Item, error *

func GetModuleById

func GetModuleById(id string) (et.Item, error)

* * GetModuleById * @param id string * @return et.Item, error *

func GetModuleByName

func GetModuleByName(name string) (et.Item, error)

* * GetModuleByName * @param name string * @return et.Item, error *

func GetModuleFolderById added in v0.0.134

func GetModuleFolderById(module_id, folder_id string) (et.Item, error)

* * GetModuleFolderById * @param module_id string * @param folder_id string * @return et.Item, error *

func GetModuleFolderByIdT added in v0.0.134

func GetModuleFolderByIdT(_idt string) (et.Item, error)

* * GetModuleFolderByIdT * @param _idt string * @return et.Item, error *

func GetPermission added in v1.0.38

func GetPermission(projectId, model, profileTp, permissionTp string) (et.Item, error)

* * GetPermission * @param projectId string * @param model string * @param profileTp string * @param permissionTp string * @return et.Item, error *

func GetPermissions added in v1.0.38

func GetPermissions(projectId, model, profileTp string) (map[string]bool, error)

* * GetPermissions * @param projectId string * @param model string * @param profileTp string * @return et.Items, error *

func GetProfile

func GetProfile(userId string) (et.Item, error)

* * GetProfile * @param userId string * @return et.Item * @return error *

func GetProfileById

func GetProfileById(moduleId, profileTp string) (et.Item, error)

* * Profile * Handler for CRUD data *

func GetProfileFolderById

func GetProfileFolderById(moduleId, profileTp, folderId string) (et.Item, error)

* * GetProfileFolderById * @param moduleId string * @param profileTp string * @param folderId string * @return et.Item, error *

func GetProfileFolderByIdT added in v0.0.121

func GetProfileFolderByIdT(idT string) (et.Item, error)

* * Profile Folder *

func GetProfileFolders

func GetProfileFolders(userId, projectId string) ([]et.Json, error)

func GetProjectById

func GetProjectById(id string) (et.Item, error)

* * GetProjectById * @param id string * @return et.Item, error *

func GetProjectByModule

func GetProjectByModule(projectId, moduleId string) (et.Item, error)

* * GetProjectByModule * @param projectId string * @param moduleId string * @return et.Item, error *

func GetProjectModules

func GetProjectModules(projectId, state, search string, page, rows int) (et.List, error)

* * GetProjectModules * @param projectId string * @param state string * @param search string * @param page int * @param rows int * @return et.List, error *

func GetProjectName

func GetProjectName(name string) (et.Item, error)

* * GetProjectName * @param name string * @return et.Item, error *

func GetRoleById

func GetRoleById(projectId, moduleId, userId string) (et.Item, error)

* * GetRoleById * @param projectId string * @param moduleId string * @param userId string * @return et.Item, error *

func GetTokenById

func GetTokenById(id string) (et.Item, error)

* * GetTokenById * @param id string * @return et.Item * @return error *

func GetTokensByUserId

func GetTokensByUserId(userId, search string, page, rows int) (et.List, error)

* * GetTokensByUserId * @param userId string * @param search string * @param page int * @param rows int * @return et.List * @return error *

func GetTypeById

func GetTypeById(id string) (et.Item, error)

* * GetTypeById * @param string id * @return et.Item, error *

func GetTypeByIndex

func GetTypeByIndex(idx int) (et.Item, error)

* * GetTypeByIndex * @param int idx * @return et.Item, error *

func GetTypeByName

func GetTypeByName(kind, name string) (et.Item, error)

* * Types * Handler for CRUD data *

func GetUserByEmail added in v0.0.147

func GetUserByEmail(email string) (et.Item, error)

* * GetUserByEmail * @param email string * @return et.Item * @return error *

func GetUserById

func GetUserById(id string) (et.Item, error)

* * GetUserById * @param id string * @return et.Item * @return error *

func GetUserByName

func GetUserByName(name string) (et.Item, error)

* * GetUserByName * @param name string * @return et.Item * @return error *

func GetUserModules

func GetUserModules(userId string) ([]et.Json, error)

* * GetUserModules * @param userId string * @return []et.Json, error *

func GetUserProjects

func GetUserProjects(userId string) ([]et.Json, error)

* * GetUserProjects * @param userId string * @return []et.Json, error *

func GetUserRoleByIndex

func GetUserRoleByIndex(idx int64) (et.Item, error)

* * GetUserRoleByIndex * @param idx int64 * @return et.Item, error *

func IdMigration added in v0.0.167

func IdMigration(old_id string, tag string) (string, error)

* * IdMigration * @param old_id string * @param tag string * @return string, error *

func InitData added in v0.0.159

func InitData() error

func InitDefine added in v0.0.75

func InitDefine(db *jdb.DB) error

func InitFolder

func InitFolder(moduleId, mainId, id, name, description string, data et.Json) (et.Item, error)

* * 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

func InitModule(id, name, description string, data et.Json) (et.Item, error)

* * InitModule * @param id string * @param name string * @param description string * @param data et.Json * @return et.Item, error *

func InitProfile

func InitProfile(moduleId, profileTp string, data et.Json) (et.Item, error)

* * InitProfile * @param moduleId string * @param profileTp string * @param data et.Json * @return et.Item, error *

func InitProject

func InitProject(id, name, description string, data et.Json) (et.Item, error)

* * InitProject * @param id string * @param name string * @param description string * @param data et.Json * @return et.Item, error *

func InitType

func InitType(projectId, id, state, kind, name, description string) (et.Item, error)

* * 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

func InsertUser(id, fullName, country, phone, email, password string) (et.Item, error)

* * 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 LoadTokens

func LoadTokens() error

* * LoadTokens * @return error *

func SetMigration added in v0.0.167

func SetMigration(old_id string, id string, tag string) (et.Item, error)

* * SetMigration * @param old_id string * @param id string * @param tag string * @return et.Item, error *

func StateFolder

func StateFolder(id, state string) (et.Item, error)

* * StateFolder * @param id string * @param state string * @return et.Item, error *

func StateModule

func StateModule(id, state string) (et.Item, error)

* * StateModule * @param id string * @param state string * @return et.Item, error *

func StateProject

func StateProject(id, state string) (et.Item, error)

* * StateProject * @param id string * @param state string * @return et.Item, error *

func StateType

func StateType(id, state string) (et.Item, error)

* * StateType * @param string id * @param string state * @return et.Item, error *

func StateUser

func StateUser(id, state string) (et.Item, error)

* * StateUser * @param id string * @param state string * @return et.Item * @return error *

func UnLoadTokens

func UnLoadTokens() error

* * UnLoadTokens * @return error *

func UpSetFolder

func UpSetFolder(moduleId, mainId, id, name, description string, data et.Json) (et.Item, error)

* * UpSetFolder * @param moduleId string * @param mainId string * @param name string * @param description string * @param data et.Json * @return et.Item, error *

func UpSetModule

func UpSetModule(id, name, description string, data et.Json) (et.Item, error)

* * UpSetModule * @param id string * @param name string * @param description string * @param data et.Json * @return et.Item, error *

func UpSetProfile

func UpSetProfile(moduleId, profileTp string, data et.Json) (et.Item, error)

func UpSetProfileTp

func UpSetProfileTp(projectId, moduleId, id, name, description string, data et.Json) (et.Item, error)

func UpSetProject

func UpSetProject(id, moduleId, name, description string, data et.Json) (et.Item, error)

* * UpSetProject * @param id string * @param moduleId string * @param name string * @param description string * @param data et.Json * @return et.Item, error *

func UpSetToken

func UpSetToken(projeectId, id, app, device, name, userId string) (et.Item, error)

* * UpSetToken * @param projeectId string * @param id string * @param app string * @param device string * @param name string * @param userId string * @return et.Item * @return error *

func UpSetType

func UpSetType(projectId, id, kind, name, description string) (et.Item, error)

* * UpSetType * @param string projectId * @param string id * @param string kind * @param string name * @param string description * @return et.Item, error *

func UpdateUser

func UpdateUser(id string, data et.Json) (et.Item, error)

* * UpdateUser * @param id string * @param data et.Json * @return et.Item * @return error *

Types

type Token

type Token struct {
	Date_make   time.Time `json:"date_make"`
	Date_update time.Time `json:"date_update"`
	Id          string    `json:"_id"`
	Name        string    `json:"name"`
	App         string    `json:"app"`
	Device      string    `json:"device"`
	Token       string    `json:"token"`
	Index       int       `json:"index"`
}

func (*Token) Scan

func (n *Token) Scan(js *et.Json) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL