Documentation ¶
Index ¶
- type ArticleController
- func (controller *ArticleController) Create(w http.ResponseWriter, r *http.Request)
- func (controller *ArticleController) Delete(w http.ResponseWriter, r *http.Request)
- func (controller *ArticleController) FindAll(w http.ResponseWriter, r *http.Request)
- func (controller *ArticleController) FindByCategory(w http.ResponseWriter, r *http.Request)
- func (controller *ArticleController) FindById(w http.ResponseWriter, r *http.Request)
- func (controller *ArticleController) Update(w http.ResponseWriter, r *http.Request)
- type UserController
- func (controller *UserController) Create(w http.ResponseWriter, r *http.Request)
- func (controller *UserController) Delete(w http.ResponseWriter, r *http.Request)
- func (controller *UserController) FindById(w http.ResponseWriter, r *http.Request)
- func (controller *UserController) Update(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArticleController ¶
type ArticleController struct {
ArticleService service.ArticleService
}
func NewArticleController ¶
func NewArticleController(articleService service.ArticleService) *ArticleController
func (*ArticleController) Create ¶
func (controller *ArticleController) Create(w http.ResponseWriter, r *http.Request)
func (*ArticleController) Delete ¶
func (controller *ArticleController) Delete(w http.ResponseWriter, r *http.Request)
func (*ArticleController) FindAll ¶
func (controller *ArticleController) FindAll(w http.ResponseWriter, r *http.Request)
func (*ArticleController) FindByCategory ¶
func (controller *ArticleController) FindByCategory(w http.ResponseWriter, r *http.Request)
func (*ArticleController) FindById ¶
func (controller *ArticleController) FindById(w http.ResponseWriter, r *http.Request)
func (*ArticleController) Update ¶
func (controller *ArticleController) Update(w http.ResponseWriter, r *http.Request)
type UserController ¶
type UserController struct {
UserService service.UserService
}
func NewUserController ¶
func NewUserController(userService service.UserService) *UserController
func (*UserController) Create ¶
func (controller *UserController) Create(w http.ResponseWriter, r *http.Request)
func (*UserController) Delete ¶
func (controller *UserController) Delete(w http.ResponseWriter, r *http.Request)
func (*UserController) FindById ¶
func (controller *UserController) FindById(w http.ResponseWriter, r *http.Request)
func (*UserController) Update ¶
func (controller *UserController) Update(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.