Commit 8afe6314 authored by Quxl's avatar Quxl

x

parent e71353c4
Pipeline #128 failed with stages
package com.egolm.member.web;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.egolm.common.bean.Rjx;
import com.egolm.common.jdbc.Page;
import com.egolm.member.bean.MetaTable;
import com.egolm.member.web.service.CommonService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
@Api(tags="测试接口")
@RestController("http")
public class TestController {
@Autowired
CommonService common;
@ResponseBody
@PostMapping("test")
@ApiOperation("查询影片列表")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="int", name="index"),
@ApiImplicitParam(paramType="query", dataType="int", name="limit"),
@ApiImplicitParam(paramType="query", dataType="string", name="limitKey"),
})
public Rjx test() {
Page page = new Page();
List<Map<String, Object>> list = common.limit(new MetaTable(), page);
return Rjx.jsonOk().setData(list).setPage(page);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment