Documentation ¶
Overview ¶
Code generated by go generate forge model v0.2.0. DO NOT EDIT.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { Userid string `model:"userid,VARCHAR(31);index" query:"userid,getgroupeq,role;deleq,userid"` Role string `` /* 151-byte string literal not displayed */ }
Model is the db User role model
type Repo ¶
type Repo interface { New(userid, role string) *Model GetByID(userid, role string) (*Model, error) GetByRole(role string, limit, offset int) ([]string, error) GetUserRoles(userid string, limit, offset int) ([]string, error) InsertBulk(m []*Model) error DeleteRoles(userid string, roles []string) error DeleteUserRoles(userid string) error Setup() error }
Click to show internal directories.
Click to hide internal directories.