package user import ( "github.com/gogf/gf/v2/net/ghttp" "nl-video-api/internal/service" ) // AttachmentController 用户附件管理控制器 type AttachmentController struct{} // NewAttachmentController 创建用户附件管理控制器实例 func NewAttachmentController() *AttachmentController { return &AttachmentController{} } // Upload 上传附件 func (c *AttachmentController) Upload(r *ghttp.Request) { service.NewAttachmentService().UserUpload(r) } // GetList 获取用户附件列表 func (c *AttachmentController) GetList(r *ghttp.Request) { service.NewAttachmentService().UserGetList(r) } // GetDetail 获取附件详情 func (c *AttachmentController) GetDetail(r *ghttp.Request) { service.NewAttachmentService().UserGetDetail(r) } // Update 更新附件 func (c *AttachmentController) Update(r *ghttp.Request) { service.NewAttachmentService().UserUpdate(r) } // Delete 删除附件 func (c *AttachmentController) Delete(r *ghttp.Request) { service.NewAttachmentService().UserDelete(r) } // Download 下载附件 func (c *AttachmentController) Download(r *ghttp.Request) { service.NewAttachmentService().UserDownload(r) } // Copy 复制附件 func (c *AttachmentController) Copy(r *ghttp.Request) { service.NewAttachmentService().UserCopy(r) } // Rename 重命名附件 func (c *AttachmentController) Rename(r *ghttp.Request) { service.NewAttachmentService().UserRename(r) } // Search 搜索附件 func (c *AttachmentController) Search(r *ghttp.Request) { service.NewAttachmentService().UserSearch(r) } // GetCategoryList 获取附件分类列表 func (c *AttachmentController) GetCategoryList(r *ghttp.Request) { service.NewAttachmentService().UserGetCategoryList(r) }