Message(站内消息)
GET /api/Message/List
const myHeaders = new Headers(); myHeaders.append("Authorization", "<API Key>"); const requestOptions = { method: "GET", headers: myHeaders, redirect: "follow" }; fetch("/api/Message/List?page=1&pageSize=10", requestOptions) .then((response) => response.json()) .then((result) => console.log(result)) .catch((error) => console.error(error));{ "success": true, "messages": { "send": [ { "id": 1, "senderId": 123, "receiverId": 456, "content": "你好,这是一条消息!", "createdAt": "2023-10-01T12:00:00Z" } ], "receive": [ { "id": 2, "senderId": 456, "receiverId": 123, "content": "收到,谢谢!", "createdAt": "2023-10-01T12:05:00Z" } ] } }
POST /api/Message/Send
GET /api/Message/Delete
注意事项
Last updated