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

import (
	"bsm/full/module/base/cms/internal/logic/category"
	pb "bsm/full/module/base/cms/pb"
	"context"
)

type CategoryServer struct {
	pb.UnimplementedCategoryServer
}

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

// 分类列表
func (s *CategoryServer) Fetch(ctx context.Context, in *pb.IdentRequest) (*pb.CategoryListReply, error) {
	return category.Fetch(ctx, in)
}

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

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

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