Package-level declarations

Types

Link copied to clipboard
@Order(value = 1)
@CommandRoute(method = CommandRoute.Method.POST, summary = "加入购物车", description = "加入购物车")
data class AddCartItem(val id: String, val productId: String, val quantity: Int = 1)
Link copied to clipboard
data class CartData(val items: List<CartItem>) : ICartInfo
Link copied to clipboard
data class CartItem(val productId: String, val quantity: Int = 1)
Link copied to clipboard
data class CartItemAdded(val added: CartItem)
Link copied to clipboard
data class CartItemRemoved(val productIds: Set<String>)
Link copied to clipboard
data class CartQuantityChanged(val changed: CartItem)
Link copied to clipboard
@Order(value = 2)
@Summary(value = "变更购买数量")
data class ChangeQuantity(val id: String, val productId: String, val quantity: Int)
Link copied to clipboard
interface ICartInfo
Link copied to clipboard
@Order(value = 4)
@Summary(value = "挂载的命令")
class MountedCommand
Link copied to clipboard
@Order(value = 3)
@Summary(value = "删除商品")
data class RemoveCartItem(val productIds: Set<String>)