Skip to content

Notice系统通告

(数据库表 sys_notice)

🍓查询列表

partcontent
url/system/notice
methodGET
JS
// params(请求参数)
{
   pageNum:1, // 页数 
   pageSize:10,// 条数
   noticeTitle:"" // 通告标题 --查询参数
   noticeType:"" // 通告类型 --查询参数
}
// 返回参数
{
  code: 200,
  data: [{
    createTime: "2024-05-28 05:43:40", // 创建时间
    noticeId: 1, // 通告id
    noticeTitle: "通知标题", // 通告标题
    noticeType: "success",  // 通告类型
    // 通告类型  
    // {label:'系统提示 ',value:'success'},
    // {label:'聊天信息',value:'chatmsg'},
    // {label:'系统公告',value:'info'},
    // {label:'用户求助',value:'warn'},
    updateTime: "1970-01-01 00:00:00" // 更新时间
    noticeContent: "通知内容", // 通告内容
  }],
  msg: "操作成功",
  total: 1
}

🍓新增

partcontent
url/system/notice
methodPOST
JS
// params(请求参数)
{
    "noticeTitle": "公告标题", // 通告标题
    "noticeType": "danger", // 通告类型
    "noticeContent": "内容", // 通告内容
    "status": "0" // 状态
}

Released under the MIT License.