add api #13

Merged
VLADIMIR merged 2 commits from add_categories_api into master 2024-11-19 14:48:04 +00:00
1 changed files with 16 additions and 1 deletions
Showing only changes of commit fdb92455ba - Show all commits

View File

@ -10,10 +10,25 @@ type Server struct {
proto.UnsafeSmmCoreServer
}
func NewServer() *Server {
func NewServer() proto.SmmCoreServer {
return &Server{}
}
func (s *Server) Ping(_ context.Context, _ *proto.PingReq) (*proto.PingRsp, error) {
return &proto.PingRsp{}, nil
}
// AddCategory implements proto.SmmCoreServer.
func (s *Server) AddCategory(context.Context, *proto.CreateCategoryReq) (*proto.Category, error) {
panic("unimplemented")
}
// GetCategories implements proto.SmmCoreServer.
func (s *Server) GetCategories(context.Context, *proto.CategoryFilterReq) (*proto.Categories, error) {
panic("unimplemented")
}
// UpdateCategory implements proto.SmmCoreServer.
func (s *Server) UpdateCategory(context.Context, *proto.UpdateCategoryReq) (*proto.Category, error) {
panic("unimplemented")
}