package com.hssx.pcbms.controller;


import com.hssx.pcbms.entity.TaskDynamic;
import com.hssx.pcbms.entity.vo.TaskVO;
import com.hssx.pcbms.service.TaskDynamicService;
import com.hssx.pcbms.util.HttpRespMsg;
import com.hssx.pcbms.util.PageUtil;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 吴涛涛
 * @since 2019-11-12
 */
@RestController
@RequestMapping("/taskdynamic")
public class TaskDynamicController {
    @Autowired
    private TaskDynamicService taskDynamicService;

    /**
     * 任务动态列表
     * 参数：pageNum:当前页，pageSize：每页多少条，id: 任务id
     */
    @ApiOperation(value = "任务动态列表", notes = "任务动态列表方法")
    @RequestMapping("/list")
    @ResponseBody
    public HttpRespMsg list(TaskVO taskVO, PageUtil page) {
        HttpRespMsg msg = taskDynamicService.getListByCondition(taskVO,page);
        return msg;
    }

}

