module

package
v0.0.147 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Folders *linq.Model
View Source
var ModelFolders *linq.Model
View Source
var Modules *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)

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)

func AllProjects

func AllProjects(state, search string, page, rows int, _select string) (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)

func CheckModuleFolder added in v0.0.134

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

Check folder that module

func CheckProfileFolder

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

func CheckProjectModule

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

func CheckRole

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

func DefineFolders

func DefineFolders() error

func DefineModuleFolders added in v0.0.134

func DefineModuleFolders() error

func DefineModules

func DefineModules() error

func DefineProfileFolders added in v0.0.22

func DefineProfileFolders() error

func DefineProfiles

func DefineProfiles() error

func DefineProjectModules added in v0.0.22

func DefineProjectModules() error

func DefineProjects

func DefineProjects() error

func DefineRoles

func DefineRoles() error

func DefineSchemaModule added in v0.0.53

func DefineSchemaModule() error

func DefineTokens

func DefineTokens() error

func DefineTypes

func DefineTypes() error

func DefineUsers

func DefineUsers() error

func DeleteFolder

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

func DeleteModule

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

func DeleteProfile

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

func DeleteProject

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

func DeleteToken

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

func DeleteType

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

func DeleteUser

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

func GetFolderById

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

func GetFolderByIdT added in v0.0.121

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

* * Folder * Handler for CRUD data *

func GetFolderByName

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

func GetModuleById

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

func GetModuleByIdT added in v0.0.121

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

* * Module * Handler for CRUD data *

func GetModuleByName

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

func GetModuleFolderById added in v0.0.134

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

func GetModuleFolderByIdT added in v0.0.134

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

Module Folder

func GetProfile

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

func GetProfileById

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

func GetProfileByIdT added in v0.0.121

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

* * Profile * Handler for CRUD data *

func GetProfileFolderById

func GetProfileFolderById(moduleId, profileTp, folderId string) (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)

func GetProjectByIdT added in v0.0.121

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

* * Project * Handler for CRUD data *

func GetProjectByModule

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

func GetProjectModules

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

func GetProjectModulesByIdT added in v0.0.121

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

* * ProjectModules *

func GetProjectName

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

func GetRoleById

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

func GetRoleByIdT added in v0.0.121

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

* * Role * Handler for CRUD data *

func GetTokenById

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

func GetTokenByIdT added in v0.0.121

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

* * Token * Handler for CRUD data *

func GetTokensByUserId

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

func GetTypeById

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

func GetTypeByIdT added in v0.0.121

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

* * Types * Handler for CRUD data *

func GetTypeByIndex

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

func GetTypeByName

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

func GetUserByEmail added in v0.0.147

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

func GetUserById

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

func GetUserByIdT added in v0.0.121

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

* * User * Handler for CRUD data *

func GetUserByName

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

func GetUserModules

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

func GetUserProjects

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

func GetUserRoleByIndex

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

func InitAdmin

func InitAdmin(fullName, country, phone, email string) (et.Item, error)

func InitDefine added in v0.0.75

func InitDefine() error

func InitFolder

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

func InitModule

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

func InitProfile

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

func InitProject

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

func InitType

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

func InsertUser added in v0.0.137

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

func IsInit

func IsInit() (et.Item, error)

func LoadTokens

func LoadTokens() error

func SetUser

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

func StateFolder

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

func StateModule

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

func StateProject

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

func StateType

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

func StateUser

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

func UnLoadTokens

func UnLoadTokens() error

func UpSetAdmin

func UpSetAdmin(fullName, country, phone, email string) (et.Item, error)

func UpSetFolder

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

func UpSetModule

func UpSetModule(id, name, description string, data et.Json) (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)

func UpSetToken

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

func UpSetType

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

func UpdateUser

func UpdateUser(id, fullName, phone, email string, data et.Json) (et.Item, 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