package com.panzhihua.serviceapi.biz;
|
|
import com.panzhihua.common.model.dtos.api.EventFile;
|
import com.panzhihua.common.model.dtos.api.EventInfo;
|
import com.panzhihua.common.model.vos.R;
|
import com.panzhihua.serviceapi.model.dto.LcGridData;
|
|
import java.util.List;
|
|
/**
|
* program 攀枝花智慧社区项目
|
* description 浪潮综治市平台网格管理API
|
*
|
* @author manailin
|
* Date 2021-01-22 15:30
|
**/
|
public interface LcApiService {
|
|
/**
|
* description 获取token,并将token存入到redis,设置失效时间是12小时
|
* 超过12个小时,重新获取token存入到redis数据库
|
*
|
* @param name 账号
|
* @param password 密码
|
* @return String token
|
* @author manailin
|
* @date 2021/6/10 17:00
|
*/
|
String saveTokenFromRemoteRequest(String name, String password);
|
|
/**
|
* description 获取全部的事件类型信息
|
*
|
* @return String token
|
* @author manailin
|
* @date 2021/6/10 17:00
|
*/
|
String getAllEventTypeList();
|
|
/**
|
* description 提交事件登记
|
*
|
* @param eventInfo 事件信息
|
* @return String 上传成功或失败信息
|
* @author manailin
|
* @date 2021/6/10 17:00
|
*/
|
String submitEventRegister(EventInfo eventInfo);
|
|
/**
|
* description 提交事件登记关联的文件或者图片信息
|
*
|
* @param eventFile 事件信息
|
* @return String 上传成功或失败信息
|
* @author manailin
|
* @date 2021/6/10 17:00
|
*/
|
R submitEventRelationFile(EventFile eventFile);
|
|
/**
|
* description 获取指定事件信息
|
*
|
* @param eventId 事件ID
|
* @return String 事件信息
|
* @author manailin
|
* @date 2021/6/10 17:00
|
*/
|
String getEventInfoById(String eventId);
|
|
/**
|
* description 获取指定区域网格列表
|
*
|
* @param areaId 区域ID
|
* @return String 事件信息
|
* @author manailin
|
* @date 2021/6/10 17:00
|
*/
|
List<LcGridData> getGridListByAreaId(String areaId);
|
|
/**
|
* description 获取所有或者根据姓名和工号查询,分页
|
*
|
* @param areaId 区域ID
|
* @return String 网格员列表
|
* @author manailin
|
* @date 2021/6/10 17:00
|
*/
|
String getGridMemberListByAreaIdOrName(String areaId);
|
|
/**
|
* description 提交事件登记关联的文件或者图片信息
|
*
|
* @author manailin
|
* @date 2021/6/10 17:00
|
*/
|
void automationUploadEventAndFile();
|
|
}
|