Documentation ¶
Index ¶
- func ArrayPerm(c *gin.Context, rol Rol) []string
- func ArrayPermWithRol(c *gin.Context, rol Rol) []string
- func CanPerm() []string
- func CloudantDefault() *couchdb.Client
- func CloudantOther(drive string) *couchdb.Client
- func ComparePasswords(hashedPwd string, plainPwd []byte) bool
- func CurlBodyJSON(method string, uri string, payload interface{}) string
- func CurlGet(uri string) string
- func CurlPost(payload interface{}, uri string) string
- func FindDataAll(payload model.QuerySelectorAll) string
- func FindDataIndex(payload model.QuerySelectorPaginateIndex) string
- func FindDataInterface(payload interface{}) string
- func FindDataPaginate(payload model.QuerySelectorPaginate) string
- func GetIDsByRol(c *gin.Context, rol Rol) []model.RolesDev
- func HashAndSalt(pwd []byte) string
- func IndexOf(element string, data []string) int
- func SetToken(claims CustomClaims) string
- type CustomClaims
- type Module
- type Paginate
- type Response
- type ResponseJSON
- type ResponseProfile
- type ResponseU
- type Rol
- type Roles
- type RolesDev
- type Token
- type TokenDecode
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloudantDefault ¶
func CloudantDefault() *couchdb.Client
func CloudantOther ¶
func CloudantOther(drive string) *couchdb.Client
func ComparePasswords ¶
func CurlBodyJSON ¶
func FindDataAll ¶
func FindDataAll(payload model.QuerySelectorAll) string
func FindDataIndex ¶
func FindDataIndex(payload model.QuerySelectorPaginateIndex) string
func FindDataInterface ¶
func FindDataInterface(payload interface{}) string
func FindDataPaginate ¶
func FindDataPaginate(payload model.QuerySelectorPaginate) string
func HashAndSalt ¶
func SetToken ¶
func SetToken(claims CustomClaims) string
Types ¶
type CustomClaims ¶
type Module ¶
type Module struct { Url string `json:"url"` IconWeb string `json:"iconWeb"` Mobile string `json:"mobile"` Android string `json:"android"` Ios string `json:"ios"` Ionic string `json:"ionic"` Name string `json:"name"` LangProperty string `json:"lang_property"` Acl string `json:"acl"` Visible bool `json:"visible"` Value []string `json:"value"` }
func ArrayPermMenu ¶
type Response ¶
type ResponseJSON ¶
type ResponseJSON struct {
Data interface{} `json:"data"`
}
type ResponseProfile ¶
type ResponseU ¶
type ResponseU struct { Success bool `json:"success"` Message string `json:"message"` Data model.User `json:"data"` }
func DecodeHeaderToken ¶
func DecodeToken ¶
type TokenDecode ¶
type User ¶
type User struct { // ID string `json:"id"` // Avatar string `json:"avatar"` // Username string `json:"username"` // Email string `json:"email"` IDs string `json:"_id"` Rev string `json:"_rev"` ID string `json:"id"` Avatar string `json:"avatar"` Username string `json:"username" validate:"required"` Email string `json:"email" validate:"required"` }
Click to show internal directories.
Click to hide internal directories.