added: Cost price adjustment

This commit is contained in:
2025-11-13 21:28:08 +08:00
parent 00a3f0f1e9
commit 1bfeac0504
5 changed files with 146 additions and 17 deletions

View File

@@ -70,6 +70,12 @@ type ProductSimpleResponse struct {
IsSubscribed *bool `json:"is_subscribed,omitempty" comment:"当前用户是否已订阅"`
}
// ProductSimpleAdminResponse 管理员产品简单信息响应(包含成本价)
type ProductSimpleAdminResponse struct {
ProductSimpleResponse
CostPrice float64 `json:"cost_price" comment:"成本价"`
}
// ProductStatsResponse 产品统计响应
type ProductStatsResponse struct {
TotalProducts int64 `json:"total_products" comment:"产品总数"`