Files
backend_v2/internal/dto/history.go
toom1996 1fd9c48f58 update
2026-09-02 21:51:35 +08:00

16 lines
557 B
Go
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.

package dto
// ---------- 浏览历史 ----------
// HistoryItem 对外返回的浏览历史项:id 即 target_uid(带 r=/s= 前缀的对外编码串)。
// 前端据此判断类型(s= 街拍,其余走秀)并回查公开详情接口取标题/封面用于渲染。
type HistoryItem struct {
ID string `json:"id"`
ViewedAt uint32 `json:"viewed_at"`
}
// HistoryAdd 记录一次浏览请求体:打开某篇文章详情时上报其对外编码串 id。
type HistoryAdd struct {
TargetUID string `json:"target_uid" binding:"required"`
}