| 1234567891011121314151617181920212223242526 |
- package fileManager
- import (
- "github.com/gin-gonic/gin"
- "go.uber.org/zap"
- "log-server/global"
- "log-server/model/common/response"
- )
- type ApiFileFolder struct {
- }
- // GetAllTaskSimple 查询所有任务
- func (api *ApiFileFolder) GetAllTaskSimple(c *gin.Context) {
- if list, err := ServiceFileFolder.GetAllTaskSimple(); err != nil {
- global.GVA_LOG.Error("获取失败!", zap.Error(err))
- response.FailWithMessage("获取失败", c)
- } else {
- //响应结果
- response.OkWithDetailed(response.PageResult{
- List: list,
- }, "获取成功", c)
- }
- }
|