feat(diary): 添加贴纸包 UpdateStickerPackReq DTO + update service/handler — Task 13
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user