AddCartItem

@Order(value = 1)
@CommandRoute(method = CommandRoute.Method.POST, summary = "加入购物车", description = "加入购物车")
data class AddCartItem(val id: String, val productId: String, val quantity: Int = 1)

Constructors

Link copied to clipboard
constructor(id: String, productId: String, quantity: Int = 1)

Properties

Link copied to clipboard
val id: String
Link copied to clipboard
@NotBlank
val productId: String
Link copied to clipboard
@Positive
val quantity: Int = 1