Documentation ¶
Index ¶
- type Service
- func (s *Service) Create(ctx context.Context, req *addresspb.CreateRequest) (*addresspb.CreateResponse, error)
- func (s *Service) Delete(ctx context.Context, req *addresspb.DeleteRequest) (*empty.Empty, error)
- func (s *Service) GetList(ctx context.Context, req *addresspb.ListRequest) (*addresspb.ListResponse, error)
- func (s *Service) Update(ctx context.Context, req *addresspb.Entity) (*empty.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { addresspb.UnimplementedAddressServiceServer AddressDao *address.Address Logger *logger.Logger }
func (*Service) Create ¶
func (s *Service) Create(ctx context.Context, req *addresspb.CreateRequest) (*addresspb.CreateResponse, error)
Create 创建
func (*Service) GetList ¶
func (s *Service) GetList(ctx context.Context, req *addresspb.ListRequest) (*addresspb.ListResponse, error)
GetList 获取列表
Click to show internal directories.
Click to hide internal directories.