// Code generated by protoc-gen-slc. DO NOT EDIT.
package server

import (
	"bsm/full/module/ec/mall/internal/logic/category"
	pb "bsm/full/module/ec/mall/pb"
	"context"
)

type CategoryServer struct {
	pb.UnimplementedCategoryServer
}

func NewCategoryServer() *CategoryServer {
	return &CategoryServer{}
}

// 获取分类数据
func (s *CategoryServer) Fetch(ctx context.Context, in *pb.CategoryFetchRequest) (*pb.CategoryReply, error) {
	return category.Fetch(ctx, in)
}

// 添加分类
func (s *CategoryServer) Create(ctx context.Context, in *pb.CategoryItem) (*pb.IdentityStatusReply, error) {
	return category.Create(ctx, in)
}

// 删除分类
func (s *CategoryServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.IdentityStatusReply, error) {
	return category.Delete(ctx, in)
}

// 修改分类
func (s *CategoryServer) Modify(ctx context.Context, in *pb.CategoryItem) (*pb.IdentityStatusReply, error) {
	return category.Modify(ctx, in)
}
