Skip to content

Latest commit

 

History

History
86 lines (67 loc) · 1.71 KB

File metadata and controls

86 lines (67 loc) · 1.71 KB

user_points(用户积分记录表)

用户积分记录表,存储用户积分变动记录。

字段说明

字段 类型 说明
id INTEGER 内部主键
user_uuid VARCHAR(36) 用户UUID,外键关联users表
point_value FLOAT 积分值(浮点数)
created_at BIGINT 创建时间(毫秒时间戳)
updated_at BIGINT 更新时间(毫秒时间戳)

API接口

接口 方法 说明
/point/create POST 创建积分记录
/point/list POST 查询积分记录列表
/point/detail POST 查询积分记录详情
/point/update POST 更新积分记录
/point/delete POST 删除积分记录

接口详情

创建积分记录 /point/create

请求:

{
    "user_uuid": "用户UUID",
    "point_value": 100.5
}

查询积分记录列表 /point/list

请求:

{
    "user_uuid": "用户UUID(可选)",
    "page": 1,
    "page_size": 10
}

查询积分记录详情 /point/detail

请求:

{
    "id": 1
}

更新积分记录 /point/update

请求:

{
    "id": 1,
    "point_value": 200.0
}

删除积分记录 /point/delete

请求:

{
    "id": 1
}