Package-level declarations

Types

Link copied to clipboard
@Order(value = 1)
@CommandRoute(method = CommandRoute.Method.POST, summary = "加入购物车", description = "加入购物车")
data class AddCartItem(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
@Summary(value = "商品已加入购物车")
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 productId: String, val quantity: Int)
Link copied to clipboard
interface ICartInfo
Link copied to clipboard
@Order(value = 4)
@CommandRoute(method = CommandRoute.Method.POST, appendIdPath = CommandRoute.AppendPath.ALWAYS, appendTenantPath = CommandRoute.AppendPath.ALWAYS, appendOwnerPath = CommandRoute.AppendPath.ALWAYS, action = "{id}/{customerId}/{enum}")
data class MockVariableCommand(val tenantId: String, val ownerId: String, val id: String, val customerId: Int, val enum: MockVariableCommand.MockEnum, val headerParameter: String, val headerEnumParameter: MockVariableCommand.MockEnum)
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>)
Link copied to clipboard