UsersRoleModel

package
v0.0.0-...-80a2261 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Table = "users_role"

Functions

func Delete

func Delete(ctx context.Context, id string) error

func Filter

func Filter(ctx context.Context, where []interface{}, like, orderby string) ([]interface{}, error)

func Insert

func Insert(ctx context.Context, data UsersRole) (int64, error)

func Update

func Update(ctx context.Context, data map[string]interface{}, id string) error

Types

type UsersRole

type UsersRole struct {
	ID          int    `json:"id" query:"id" form:"id"`
	Name        string `json:"name" query:"name" form:"name" validate:"required"`
	Description string `json:"description" query:"description" form:"description" validate:"required"`
}

func All

func All(ctx context.Context) ([]UsersRole, error)

func Find

func Find(ctx context.Context, role_id int) (UsersRole, error)

Jump to

Keyboard shortcuts

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