smm_core/internal/app/server.go

35 lines
848 B
Go
Raw Normal View History

2024-11-09 11:18:51 +00:00
package app
import (
"context"
proto "git.3crabs.ru/save_my_money/smm_core/proto"
)
type Server struct {
proto.UnsafeSmmCoreServer
}
2024-11-19 08:16:01 +00:00
func NewServer() proto.SmmCoreServer {
2024-11-09 11:18:51 +00:00
return &Server{}
}
func (s *Server) Ping(_ context.Context, _ *proto.PingReq) (*proto.PingRsp, error) {
return &proto.PingRsp{}, nil
}
2024-11-19 08:16:01 +00:00
// 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")
}