Files
tyapi-server/internal/application/product/dto/commands/subscription_commands.go

13 lines
497 B
Go
Raw Normal View History

2025-07-15 13:21:34 +08:00
package commands
// CreateSubscriptionCommand 创建订阅命令
type CreateSubscriptionCommand struct {
2025-07-20 20:53:26 +08:00
UserID string `json:"-" comment:"用户ID"`
ProductID string `json:"-" uri:"id" binding:"required,uuid" comment:"产品ID"`
2025-07-15 13:21:34 +08:00
}
2025-07-20 20:53:26 +08:00
// UpdateSubscriptionPriceCommand 更新订阅价格命令
type UpdateSubscriptionPriceCommand struct {
ID string `json:"-" uri:"id" binding:"required,uuid" comment:"订阅ID"`
Price float64 `json:"price" binding:"price,min=0" comment:"订阅价格"`
2025-07-15 13:21:34 +08:00
}