dev
This commit is contained in:
33
server/category_server.go
Normal file
33
server/category_server.go
Normal file
@@ -0,0 +1,33 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"protoc-gen-slc/internal/logic/category"
|
||||
pb "protoc-gen-slc/pb"
|
||||
)
|
||||
|
||||
type CategoryServer struct {
|
||||
pb.UnimplementedCategoryServer
|
||||
}
|
||||
|
||||
func NewCategoryServer() *CategoryServer {
|
||||
return &CategoryServer{}
|
||||
}
|
||||
|
||||
// 分类列表
|
||||
func (s *CategoryServer) CategoryList(ctx context.Context, in *pb.Empty) (*pb.CategoryListReply, error) {
|
||||
return category.CategoryList(ctx, in)
|
||||
}
|
||||
|
||||
func (s *CategoryServer) AddCategory(ctx context.Context, in *pb.AddCategoryRequest) (*pb.AddCategoryResponse, error) {
|
||||
return category.AddCategory(ctx, in)
|
||||
}
|
||||
|
||||
func (s *CategoryServer) ModifyCategory(ctx context.Context, in *pb.ModifyCategoryRequest) (*pb.Empty, error) {
|
||||
return category.ModifyCategory(ctx, in)
|
||||
}
|
||||
|
||||
func (s *CategoryServer) DeleteCategory(ctx context.Context, in *pb.DeleteCategoryRequest) (*pb.Empty, error) {
|
||||
return category.DeleteCategory(ctx, in)
|
||||
}
|
||||
Reference in New Issue
Block a user