Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserController ¶
type UserController struct {
web.Controller
// contains filtered or unexported fields
}
hi: RestController
func (*UserController) DeleteById ¶
func (c *UserController) DeleteById(id string) (response model.Response, err error)
Delete /user/{id}
func (*UserController) GetById ¶
func (c *UserController) GetById(id string) (model.Response, error)
Get /user/{id}
func (*UserController) Init ¶
func (c *UserController) Init(userService *service.UserService)
Init inject userService automatically
Source Files
¶
- user.go
Click to show internal directories.
Click to hide internal directories.