|
|
|
|
import { _get, _post,_form,_delete } from "../../http/index";
|
|
|
|
|
|
|
|
|
|
// region 重新整理有用的接口
|
|
|
|
|
|
|
|
|
|
let enterpriseAppBaseUrl = "/app-ent";
|
|
|
|
|
// 企业端用户登录
|
|
|
|
|
export const enterpriseLogin = (params, success, error) => _post(enterpriseAppBaseUrl + "/enterprise/login/siqLoginMock", params, success, error);
|
|
|
|
|
export const enterpriseLoginByPassword = (params, success, error) => _post(enterpriseAppBaseUrl + "/login/do", params, success, error);
|
|
|
|
|
|
|
|
|
|
// 获取深i企鉴权 accessKey / accessSecret
|
|
|
|
|
export const siqCode = (params, success, error) => _get(enterpriseAppBaseUrl + "/enterprise/login/getSiqCode", params, success, error);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取用户关联的企业信息
|
|
|
|
|
export const getUserRefEnterpriseInfo = (params, success, error) => _get(enterpriseAppBaseUrl + "/enterpriseInfo/getUserRefEnterpriseInfo", params, success, error);
|
|
|
|
|
//查询用户关联企业授权信息
|
|
|
|
|
export const getEnterpriseMerchantAuthorization = (params, success, error) => _get(enterpriseAppBaseUrl + "/authorization/queryList",params,success,error);
|
|
|
|
|
|
|
|
|
|
//查询企业二维码
|
|
|
|
|
export const queryEnterpriseInformationQrCode = (params, success, error) => _get(enterpriseAppBaseUrl+"/enterpriseInfo/getQrCode",params,success,error)
|
|
|
|
|
|
|
|
|
|
//查询企业执法登记列表-企业端(含投诉标记、字典翻译、超时计算等)
|
|
|
|
|
export const getEnterpriseEnforcementRegistrationList = (params, success, error) => _get(enterpriseAppBaseUrl+"/lawEnforcementCase/list",params,success,error)
|
|
|
|
|
|
|
|
|
|
//执法登记列表
|
|
|
|
|
export const queryEnforcementRegistrationPageList = (params, success, error) => _get(enterpriseAppBaseUrl+"/enforcement_registration/queryEnforcementRegistrationPageList",params,success,error)
|
|
|
|
|
|
|
|
|
|
//执法信息详情
|
|
|
|
|
export const getLawDetail = (params, success, error) => _get(enterpriseAppBaseUrl+"/lawEnforcementCase/lawDetail",params,success,error)
|
|
|
|
|
|
|
|
|
|
//执法案件信息详情
|
|
|
|
|
export const getLawCaseDetail = (params, success, error) => _get(enterpriseAppBaseUrl+"/lawEnforcementCase/lawCasedetail",params,success,error)
|
|
|
|
|
|
|
|
|
|
//评价详情
|
|
|
|
|
export const getEvaluateDetail = (params, success, error) => _get(enterpriseAppBaseUrl +"/enterprise/evaluate", params, success, error)
|
|
|
|
|
|
|
|
|
|
//提交评价
|
|
|
|
|
export const submitEvaluate = (params, success, error) => _post(enterpriseAppBaseUrl +"/enterprise/evaluate", params, success, error)
|
|
|
|
|
|
|
|
|
|
//企业消息 / 执法消息详情
|
|
|
|
|
export const getEnforcementRegistrationDetailById = (params, success, error) => _get(enterpriseAppBaseUrl + "/enforcement_registration/queryDetailById", params, success, error)
|
|
|
|
|
|
|
|
|
|
//普法服务列表
|
|
|
|
|
export const getEducationServicesList = (params, success, error) => _get(enterpriseAppBaseUrl +"/enforcementcode/educationServices/list",params,success,error)
|
|
|
|
|
|
|
|
|
|
//普法服务详情
|
|
|
|
|
export const getEducationServicesDetail = (params, success, error) => _get(enterpriseAppBaseUrl +"/enforcementcode/educationServices/details",params,success,error)
|
|
|
|
|
|
|
|
|
|
//执法预告列表
|
|
|
|
|
export const getLawNoticeList = (params, success, error) => _get(enterpriseAppBaseUrl +"/enterprise/lawNotice/queryAllList",params,success,error)
|
|
|
|
|
|
|
|
|
|
//首页轮播图列表
|
|
|
|
|
export const getCarouselBannerList = (params, success, error) => _get(enterpriseAppBaseUrl +"/enterprise/carouselBanner/list",params,success,error)
|
|
|
|
|
|
|
|
|
|
//系统通知公告列表
|
|
|
|
|
export const getSystemNoticeList = (params, success, error) => _get(enterpriseAppBaseUrl +"/enterprise/noticeInfo/list",params,success,error)
|
|
|
|
|
|
|
|
|
|
//获取企业信息(我的)
|
|
|
|
|
export const getUserMine = (params, success, error) => _get(enterpriseAppBaseUrl+"/mine/userMine",params,success,error)
|
|
|
|
|
|
|
|
|
|
//修改联系电话
|
|
|
|
|
export const updateContactPhone = (params, success, error) => _post(enterpriseAppBaseUrl+"/mine/updatePhone",params,success,error)
|
|
|
|
|
|
|
|
|
|
//投诉建议-查询列表
|
|
|
|
|
export const getComplaintList = (params, success, error) => _get(enterpriseAppBaseUrl+"/complaint/list",params,success,error)
|
|
|
|
|
|
|
|
|
|
//投诉建议-详情
|
|
|
|
|
export const getComplaintDetail = (params, success, error) => _get(enterpriseAppBaseUrl+"/complaint/detail",params,success,error)
|
|
|
|
|
|
|
|
|
|
//投诉建议-处置进度
|
|
|
|
|
export const getComplaintDisposalProgress = (params, success, error) => _get(enterpriseAppBaseUrl+"/complaint/disposalProgress",params,success,error)
|
|
|
|
|
|
|
|
|
|
//投诉建议-提交
|
|
|
|
|
export const addComplaint = (params, success, error) => _post(enterpriseAppBaseUrl+"/complaint/add",params,success,error)
|
|
|
|
|
|
|
|
|
|
//查询字典数据(公共)
|
|
|
|
|
export const queryDict = (params, success, error) => _get("/system/dict/data/dictType",params,success,error)
|
|
|
|
|
|
|
|
|
|
//执法单位(部门)列表
|
|
|
|
|
export const getDeptList = (params, success, error) => _get("/enforcementcode/virtualUnit/list",params,success,error)
|
|
|
|
|
|
|
|
|
|
//投诉事项列表
|
|
|
|
|
export const getComplaintItemList = (params, success, error) => _post(enterpriseAppBaseUrl +"/complaint/listNotComplaint",params,success,error)
|
|
|
|
|
|
|
|
|
|
//深i企登录
|
|
|
|
|
export const getSiqLoginAuth = (params, success, error) => _post(enterpriseAppBaseUrl + "/enterprise/login/siqLogin", params, success, error);
|
|
|
|
|
|
|
|
|
|
//深i企模拟登录(通过userId模拟)
|
|
|
|
|
export const getSiqLoginAuthMock = (params, success, error) => _post(enterpriseAppBaseUrl + "/enterprise/login/siqLoginMock", params, success, error);
|
|
|
|
|
|
|
|
|
|
//强制生成二维码
|
|
|
|
|
export const forceGenerateQrCode = (params, success, error) => _get(enterpriseAppBaseUrl+"/enterpriseInfo/forceGenerateQrCode",params,success,error)
|
|
|
|
|
|
|
|
|
|
//消息数据统计接口(未读数量)
|
|
|
|
|
export const getMessageUnreadCount = (params, success, error) => _get(enterpriseAppBaseUrl +"/enterprise/todoitem/statisticsUnReadCount",params,success,error);
|
|
|
|
|
|
|
|
|
|
// endregion
|
|
|
|
|
// 分页查询非现场执法任务
|
|
|
|
|
export const nosTaskPageApi = (params, success, error) =>
|
|
|
|
|
_post("/app-ent/nos-law-enforcement-task/page", params, success, error);
|
|
|
|
|
// 获取非现场执法任务详情
|
|
|
|
|
export const nosTaskDetailAPi = (params, success, error) =>
|
|
|
|
|
_get("/app-ent/nos-law-enforcement-task/detail", params, success, error);
|
|
|
|
|
// 企业端提交非现场执法任务检查材料
|
|
|
|
|
export const nosTaskSubmitAPi = (params, success, error) =>
|
|
|
|
|
_post("/app-ent/nos-law-enforcement-task/submit", params, success, error);
|
|
|
|
|
// 企业端评价任务
|
|
|
|
|
export const nosTaskCommentAPi = (params, success, error) =>
|
|
|
|
|
_post("/app-ent/nos-law-enforcement-task/comment", params, success, error);
|
|
|
|
|
// 根据评价状态查询当前企业任务
|
|
|
|
|
export const nosTaskListByCommentStatusAPi = (params, success, error) =>
|
|
|
|
|
_get("/app-ent/nos-law-enforcement-task/query/by-comment-status", params, success, error);
|
|
|
|
|
|
|
|
|
|
// ----------------------------- 非现场执法任务通知 -----------------------------
|
|
|
|
|
// 分页查询非现场执法未读任务通知
|
|
|
|
|
export const nosTaskListNoticeAPi = (params, success, error) =>
|
|
|
|
|
_post("/app-ent/nos-law-enforcement-task/msg/un-read/page", params, success, error);
|
|
|
|
|
// 查询未读消息数量
|
|
|
|
|
export const nosTaskListUnReadCountAPi = (params, success, error) =>
|
|
|
|
|
_post("/app-ent/nos-law-enforcement-task/msg/un-read/count", params, success, error);
|
|
|
|
|
// 标记消息为已读
|
|
|
|
|
export const nosTaskMarkReadAPi = (params, success, error) =>
|
|
|
|
|
_get("/app-ent/nos-law-enforcement-task/msg/mark-read", params, success, error);
|
|
|
|
|
|
|
|
|
|
// 提交云笔录材料
|
|
|
|
|
export const submitCloudRecordApi = (params, success, error) =>
|
|
|
|
|
_post("/app-ent/nos-law-enforcement-task/digital-voice-logging/submit", params, success, error);
|
|
|
|
|
// 查询云笔录详情
|
|
|
|
|
export const cloudRecordDetailApi = (params, success, error) =>
|
|
|
|
|
_get("/app-ent/nos-law-enforcement-task/digital-voice-logging/detail", params, success, error);
|