package com.hxzk.controller;
|
|
import com.github.pagehelper.PageInfo;
|
import com.hxzk.pojo.TbRealkaoqing;
|
import com.hxzk.pojo.TbSmsLog;
|
import com.hxzk.service.SmsLogService;
|
import com.hxzk.util.result;
|
import com.hxzk.util.resultutil;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import java.util.List;
|
|
@RestController
|
@RequestMapping("/")
|
public class SMSLogController {
|
@Autowired
|
SmsLogService smsLogService;
|
@GetMapping("findSMSLogAll")
|
result<List<TbSmsLog>> findshishigaojing(Integer page, Integer limit){
|
PageInfo<TbSmsLog> cz= smsLogService.findAll(page, limit);
|
return resultutil.returnSuccess(cz.getTotal(), cz.getList());
|
}
|
|
@PostMapping("findSMSLogSearch")
|
result<List<TbSmsLog>> findSMSLogSearch(Integer page, Integer limit,String name){
|
PageInfo<TbSmsLog> cz= smsLogService.findAllSearch(page, limit,name);
|
return resultutil.returnSuccess(cz.getTotal(), cz.getList());
|
}
|
}
|