feat: add admin work visibility controls
This commit is contained in:
@@ -85,37 +85,37 @@ pub struct PuzzleAgentMessageRow {
|
||||
)]
|
||||
pub struct PuzzleWorkProfileRow {
|
||||
#[primary_key]
|
||||
profile_id: String,
|
||||
work_id: String,
|
||||
owner_user_id: String,
|
||||
source_session_id: Option<String>,
|
||||
author_display_name: String,
|
||||
work_title: String,
|
||||
work_description: String,
|
||||
level_name: String,
|
||||
summary: String,
|
||||
theme_tags_json: String,
|
||||
cover_image_src: Option<String>,
|
||||
cover_asset_id: Option<String>,
|
||||
levels_json: String,
|
||||
publication_status: PuzzlePublicationStatus,
|
||||
play_count: u32,
|
||||
anchor_pack_json: String,
|
||||
publish_ready: bool,
|
||||
created_at: Timestamp,
|
||||
updated_at: Timestamp,
|
||||
published_at: Option<Timestamp>,
|
||||
pub(crate) profile_id: String,
|
||||
pub(crate) work_id: String,
|
||||
pub(crate) owner_user_id: String,
|
||||
pub(crate) source_session_id: Option<String>,
|
||||
pub(crate) author_display_name: String,
|
||||
pub(crate) work_title: String,
|
||||
pub(crate) work_description: String,
|
||||
pub(crate) level_name: String,
|
||||
pub(crate) summary: String,
|
||||
pub(crate) theme_tags_json: String,
|
||||
pub(crate) cover_image_src: Option<String>,
|
||||
pub(crate) cover_asset_id: Option<String>,
|
||||
pub(crate) levels_json: String,
|
||||
pub(crate) publication_status: PuzzlePublicationStatus,
|
||||
pub(crate) play_count: u32,
|
||||
pub(crate) anchor_pack_json: String,
|
||||
pub(crate) publish_ready: bool,
|
||||
pub(crate) created_at: Timestamp,
|
||||
pub(crate) updated_at: Timestamp,
|
||||
pub(crate) published_at: Option<Timestamp>,
|
||||
#[default(0)]
|
||||
remix_count: u32,
|
||||
pub(crate) remix_count: u32,
|
||||
#[default(0)]
|
||||
like_count: u32,
|
||||
pub(crate) like_count: u32,
|
||||
#[default(PUZZLE_POINT_INCENTIVE_DEFAULT_U64)]
|
||||
point_incentive_total_half_points: u64,
|
||||
pub(crate) point_incentive_total_half_points: u64,
|
||||
#[default(PUZZLE_POINT_INCENTIVE_DEFAULT_U64)]
|
||||
point_incentive_claimed_points: u64,
|
||||
// ???????????????????????????????
|
||||
pub(crate) point_incentive_claimed_points: u64,
|
||||
// 后台可见性开关;默认显示,隐藏后不进入公开列表。
|
||||
#[default(WORK_VISIBLE_DEFAULT)]
|
||||
visible: bool,
|
||||
pub(crate) visible: bool,
|
||||
}
|
||||
|
||||
/// 拼图广场公开详情兼容投影。
|
||||
|
||||
Reference in New Issue
Block a user