37 lines
1.1 KiB
TypeScript
Raw Normal View History

import { ResPage, User } from "@/api/types/common";
// import { BASEURL } from "@/api/config/servicePort";
import http from "@/api";
const BASEURL = import.meta.env.VITE_API_URL;
/**
* @name api
*/
// 添加政策法规信息
export const addLows = (params: FormData) => {
return http.post(BASEURL + `/xmgl/policy/add`, params);
};
//分页查询我发布的通知公告
export const myPostPage = (params: User.ReqUserParams) => {
return http.post<ResPage<User.ResUserList>>(BASEURL + `/xmgl/policy/fromMePage`, params);
};
// 编辑
export const editmyPost = (params: FormData) => {
return http.post(BASEURL + `/xmgl/policy/edit`, params);
};
// 删除政策法规信息
export const delMyPost = (params: { policyId: number }) => {
return http.post(BASEURL + `/xmgl/policy/delete`, params);
};
export const getDetailPolicy = (params: { policyId: number }) => {
return http.post(BASEURL + `/xmgl/policy/queryById`, params);
};
//分页查询我接收的通知公告
export const myReceivePage = (params: User.ReqUserParams) => {
return http.post<ResPage<User.ResUserList>>(BASEURL + `/xmgl/policy/toMePage`, params);
};