feat(diary): 添加贴纸包 UpdateStickerPackReq DTO + update service/handler — Task 13
Some checks failed
Main Merge / backend (push) Has been cancelled
Main Merge / frontend (push) Has been cancelled

This commit is contained in:
iven
2026-06-02 23:54:04 +08:00
parent d6dd017155
commit 45530616ee
4 changed files with 130 additions and 3 deletions

View File

@@ -223,6 +223,23 @@ pub struct CreateStickerPackReq {
fn default_true() -> bool { true }
/// 更新贴纸包请求 — 所有字段可选,仅更新传入的字段
#[derive(Debug, Deserialize, ToSchema)]
pub struct UpdateStickerPackReq {
/// 贴纸包名称
pub name: Option<String>,
/// 描述
pub description: Option<String>,
/// 缩略图 URL
pub thumbnail_url: Option<String>,
/// 是否免费
pub is_free: Option<bool>,
/// 价格(积分)
pub price: Option<i32>,
/// 分类
pub category: Option<String>,
}
/// 创建贴纸请求
#[derive(Debug, Deserialize, ToSchema)]
pub struct CreateStickerReq {