Documentation ¶
Index ¶
- Variables
- func CreateUser(client *ent.Client, name string, age int) (*ent.User, error)
- func DeleteUser(client *ent.Client, id int) error
- func GetUser(client *ent.Client, id int) (*ent.User, error)
- func Init()
- func SearchUsers(client *ent.Client, keyword string, page, pageSize int) ([]*ent.User, error)
- func UpdateUser(client *ent.Client, id int, name string, age int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *ent.Client
Functions ¶
func SearchUsers ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.