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

com.wu.framework.easy.temple.run.RunTest Maven / Gradle / Ivy

The newest version!
package com.wu.framework.easy.temple.run;


import com.wu.framework.easy.excel.stereotype.EasyExcel;
import com.wu.framework.easy.temple.domain.UserLog;
import com.wu.framework.easy.temple.service.RunService;
import com.wu.framework.easy.upsert.autoconfigure.EasySmartField;
import com.wu.framework.inner.layer.web.EasyController;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author : Jia wei Wu
 * @version 1.0
 * describe :
 * @date : 2020/9/18 下午11:32
 */
@EasyController
public class RunTest {

    private final RunService runService;

    public RunTest(RunService runService) {
        this.runService = runService;
    }


    @EasyExcel(fileName = "导出数据")
    @GetMapping("/run/{size}")
    public List run(@PathVariable Integer size) {
        return runService.run(size);
    }

    @EasyExcel(fileName = "非原生注解导出数据", fieldColumnAnnotation = EasySmartField.class, multipleSheet = true, limit = 10)
    @GetMapping("/run1")
    public List run1() {
        return runService.run1();
    }

    @GetMapping("/run2/{size}")
    public void run2(@PathVariable Integer size) {
        runService.run(size);
    }

    @GetMapping("/run3")
    public void run3() {
        runService.run1();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy