All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aizuda.snailjob.server.web.controller.JobTaskController Maven / Gradle / Ivy

package com.aizuda.snailjob.server.web.controller;

import com.aizuda.snailjob.server.web.annotation.LoginRequired;
import com.aizuda.snailjob.server.web.model.base.PageResult;
import com.aizuda.snailjob.server.web.model.request.JobTaskQueryVO;
import com.aizuda.snailjob.server.web.model.response.JobTaskResponseVO;
import com.aizuda.snailjob.server.web.service.JobTaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: opensnail
 * @date : 2023-10-12 09:55
 * @since : 2.4.0
 */
@RestController
@RequestMapping("/job/task")
public class JobTaskController {

    @Autowired
    private JobTaskService jobTaskService;

    @GetMapping("/list")
    @LoginRequired
    public PageResult> getJobTaskPage(JobTaskQueryVO jobTaskQueryVO) {
        return jobTaskService.getJobTaskPage(jobTaskQueryVO);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy