refactor(游戏分发领域): 删除无调用方的 PublishVersionInput
- 该命令结构体只在定义与 lib 再导出出现,spacetime-module 用的是自己的 GameDistributionPublishVersionInput - 按「无现役调用方的退役对象直接清理」删除结构体、文档注释与再导出
This commit is contained in:
@@ -45,30 +45,6 @@ pub struct CreateVersionInput {
|
||||
pub created_at_micros: i64,
|
||||
}
|
||||
|
||||
/// 统一发布命令:作品 get-or-create + 建版本 + 自然幂等键收据。
|
||||
///
|
||||
/// `game_id` 与 `project_key` 至少一个非空:更新既有作品带 `game_id`,首次发布带
|
||||
/// `project_key`。幂等键由 `(owner, project_key | game_id, version_number)` 派生,
|
||||
/// 调用方只提供 `request_digest`。
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct PublishVersionInput {
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub game_id: Option<String>,
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub project_key: Option<String>,
|
||||
pub owner_user_id: String,
|
||||
pub version_id: String,
|
||||
pub version_number: u64,
|
||||
#[serde(default)]
|
||||
pub price_mud_points: u64,
|
||||
pub package_sha256: String,
|
||||
pub package_bytes: u64,
|
||||
/// 版本冻结资料的规范化 JSON。
|
||||
pub metadata_json: String,
|
||||
pub request_digest: String,
|
||||
pub created_at_micros: i64,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct PurchaseGameInput {
|
||||
pub game_id: String,
|
||||
|
||||
@@ -19,8 +19,7 @@ pub use application::{
|
||||
PublicationOperationResult, PurchaseOperationResult,
|
||||
};
|
||||
pub use commands::{
|
||||
CreateGameInput, CreateVersionInput, IdempotencyRequest, PublishVersionInput, PurchaseGameInput,
|
||||
ReviewDecision,
|
||||
CreateGameInput, CreateVersionInput, IdempotencyRequest, PurchaseGameInput, ReviewDecision,
|
||||
};
|
||||
pub use domain::{
|
||||
GAME_PURCHASE_ID_PREFIX, GameDistributionAction, GamePurchaseDecision, GamePurchaseSnapshot,
|
||||
|
||||
Reference in New Issue
Block a user