Documentation ¶
Index ¶
- func AddProduct(ctx context.Context, req *item.AddReq) (int64, error)
- func CancelOrder(ctx context.Context, orderId int64) error
- func CheckUser(ctx context.Context, req *user.CheckUserReq) (int64, error)
- func CreateOrder(ctx context.Context, req *order.CreateOrderReq) error
- func CreateUser(ctx context.Context, req *user.CreateUserReq) error
- func EditProduct(ctx context.Context, req *item.EditReq) error
- func GetOrderById(ctx context.Context, orderId int64) (*order.OrderItem, error)
- func GetProduct(ctx context.Context, productId int64) (*item.Product, error)
- func Init()
- func ListOrder(ctx context.Context, userId int64, status *int64) ([]*order.OrderItem, error)
- func ListProduct(ctx context.Context, req *item.ListReq) ([]*item.Product, error)
- func MGetProducts2C(ctx context.Context, productIds []int64) (map[int64]*item.Product, error)
- func OperateProduct(ctx context.Context, productId int64, operate string) error
- func SearchProduct(ctx context.Context, req *item.SearchReq) ([]*item.Product, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrder ¶
func CreateOrder(ctx context.Context, req *order.CreateOrderReq) error
func CreateUser ¶
func CreateUser(ctx context.Context, req *user.CreateUserReq) error
func ListProduct ¶
func MGetProducts2C ¶
func OperateProduct ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.