Files
my-spring/web-vue/packages/core/api/msg/msgInner.ts
2026-03-19 10:57:24 +08:00

44 lines
1.9 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* Copyright (c) 2013-Now https://jeesite.com All rights reserved.
* No deletion without permission, or be held responsible to law.
* @author ThinkGem
*/
import { defHttp } from '@jeesite/core/utils/http/axios';
import { useGlobSetting } from '@jeesite/core/hooks/setting';
import { BasicModel, Page } from '@jeesite/core/api/model/baseModel';
const { adminPath } = useGlobSetting();
export interface MsgInner extends BasicModel<MsgInner> {
msgTitle?: string; // 消息标题
contentLevel?: string; // 内容级别1普通 2一般 3紧急
contentType?: string; // 内容类型1公告 2新闻 3会议 4其它
msgContent?: string; // 消息内容
receiveType?: string; // 接受者类型0全部 1用户 2部门 3角色 4岗位
receiveCodes?: string; // 接受者字符串
receiveNames?: string; // 接受者名称字符串
sendUserCode?: string; // 发送者用户编码
sendUserName?: string; // 发送者用户姓名
sendDate?: string; // 发送时间
isAttac?: string; // 是否有附件
notifyTypes?: string; // 通知类型PC APP 短信 邮件 微信)多选
}
export const msgInnerList = (params?: MsgInner | any) =>
defHttp.get<MsgInner>({ url: adminPath + '/msg/msgInner/list', params });
export const msgInnerListData = (params?: MsgInner | any) =>
defHttp.post<Page<MsgInner>>({ url: adminPath + '/msg/msgInner/listData', params });
export const msgInnerForm = (params?: MsgInner | any) =>
defHttp.get<MsgInner>({ url: adminPath + '/msg/msgInner/form', params });
export const msgInnerView = (params?: MsgInner | any) =>
defHttp.get<MsgInner>({ url: adminPath + '/msg/msgInner/view', params });
export const msgInnerSave = (params?: any, data?: MsgInner | any) =>
defHttp.postJson<MsgInner>({ url: adminPath + '/msg/msgInner/save', params, data });
export const msgInnerDelete = (params?: MsgInner | any) =>
defHttp.get<MsgInner>({ url: adminPath + '/msg/msgInner/delete', params });