28 lines
597 B
Go
28 lines
597 B
Go
package admin
|
|
|
|
import (
|
|
"nl-video-api/internal/service"
|
|
|
|
"github.com/gogf/gf/v2/net/ghttp"
|
|
)
|
|
|
|
// CommentController 管理员评论控制器
|
|
type CommentController struct{}
|
|
|
|
var Comment = &CommentController{}
|
|
|
|
// List 管理员评论列表
|
|
func (c *CommentController) List(r *ghttp.Request) {
|
|
service.Comment.AdminList(r)
|
|
}
|
|
|
|
// UpdateStatus 更新评论状态
|
|
func (c *CommentController) UpdateStatus(r *ghttp.Request) {
|
|
service.Comment.AdminUpdateStatus(r)
|
|
}
|
|
|
|
// BatchDelete 批量删除评论
|
|
func (c *CommentController) BatchDelete(r *ghttp.Request) {
|
|
service.Comment.AdminBatchDelete(r)
|
|
}
|