Commit 71c9c051 authored by 麻笑宇's avatar 麻笑宇

大屏相关路径文件初始化

parent f1d35223
package com.yeejoin.amos.boot.module.tcm.api.dto;
import lombok.Data;
@Data
public class ScreenDto {
/**
* 城市编码
*/
String cityCode;
}
package com.yeejoin.amos.boot.module.tcm.api.service.statistics;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.tcm.api.dto.*;
import com.yeejoin.amos.boot.module.tcm.api.enums.DispatchPaperEnums;
import org.typroject.tyboot.core.restful.utils.ResponseModel;
import java.util.List;
import java.util.Map;
/**
* 大屏接口类
*
* @author maxy
* @date 2024-07-09
*/
public interface IScreenService {
ResponseModel<Map> companyInfo(ScreenDto screenDto);
}
package com.yeejoin.amos.boot.module.tcm.biz.controller.statistics.dp;
import com.yeejoin.amos.boot.module.tcm.api.dto.ScreenDto;
import com.yeejoin.amos.boot.module.tcm.api.service.statistics.IScreenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.utils.ResponseModel;
import javax.annotation.Resource;
import java.util.Map;
/**
* 大屏控制层
*
* @author maxy
* @date 2024-07-09
*/
@RestController
@Api(tags = "警情接警填报记录Api")
@RequestMapping(value = "/statistics")
public class ScreenController {
@Resource
private IScreenService screenService;
@TycloudOperation(ApiLevel = UserType.AGENCY)
@PostMapping(value = "/companyInfo")
@ApiOperation(httpMethod = "POST", value = "大屏企业统计", notes = "大屏企业统计")
public ResponseModel<Map> companyInfo(@RequestBody ScreenDto screenDto){
return screenService.companyInfo(screenDto);
}
}
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