blessingChess
  1. 贺卡
blessingChess
  • 🦊一分钟,了解 Apifox !
  • 用户
    • 登录
      POST
    • 查询用户数据
      GET
    • 更新棋盘数据
      POST
  • 祝福
    • 发送祝福
      POST
    • 查询已发送祝福
      GET
    • 查询收到的祝福
      GET
    • 获取新祝福
      GET
    • 删除祝福
      DELETE
    • 更改祝福
      PUT
  • 贺卡
    • 发送贺卡
      POST
    • 查询已发送贺卡
      GET
    • 查询收到的贺卡
      GET
    • 获取新贺卡
      GET
    • 删除贺卡
      DELETE
    • 更改贺卡
      PUT
    • 查询贺卡被点亮次数
      GET
    • 查询所有贺卡
      GET
  • 图标、背景
    • icon查询
      GET
    • background查询
      GET
    • icon上传
      POST
    • background上传
      POST
  • test前端不用管
    • 发送贺卡test
      POST
    • 查询收到的贺卡test
      GET
    • 删除贺卡 Copy
      DELETE
    • test
      GET
  1. 贺卡

查询收到的贺卡

开发中
GET
/greetingCard/receive/{id}
用于查询用户收到的贺卡。

请求参数

Path 参数
id
integer 
用户的id
必需
示例值:
3

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:8080/greetingCard/receive/3'

返回响应

🟢200成功
application/json
Body
code
integer 
响应状态码
必需
200成功,0失败
data
array[object (贺卡) {6}] 
数据
必需
给前端响应的数据
id
integer 
必需
贺卡的唯一标识符,由数据库自动生成。
senderId
integer 
必需
发送贺卡的用户的ID
deliveryTime
string 
贺卡的发送时间
必需
content
string 
贺卡的内容
必需
icon
string 
必需
贺卡的图标图片URL
background
string 
必需
贺卡的背景图片URL
message
string 
状态码信息
必需
给页面的提示信息
示例
{
    "code": "200",
    "data": [
        {
            "id": 44,
            "senderId": 23,
            "deliveryTime": "2002-06-24 10:47:23",
            "content": "Show time!",
            "icon": "/icon/public/image.png",
            "background": "/background/75/image.png"
        },
        {
            "id": 32,
            "senderId": 2,
            "deliveryTime": "2008-06-16 23:04:36",
            "content": "信仰没有高低贵贱,战争也并非黑白分明。",
            "icon": "/icon/public/image.png",
            "background": "/background/75/image.png"
        },
        {
            "id": 75,
            "senderId": 233,
            "deliveryTime": "1988-09-17 06:41:03",
            "content": "嗯,风暴、危机、怪兽——除了颜色,好像也没有太大差别。",
            "icon": "/icon/public/image.png",
            "background": "/background/75/image.png"
        },
        {
            "id": 43,
            "senderId": 3,
            "deliveryTime": "2009-06-08 18:07:15",
            "content": "世界和平~",
            "icon": "/icon/public/image.png",
            "background": "/background/75/image.png"
        }
    ],
    "message": "success"
}
🟢200失败
修改于 2024-02-16 08:18:28
上一页
查询已发送贺卡
下一页
获取新贺卡
Built with