123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: system_service.proto
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb
- import (
- context "context"
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- math "math"
- v1 "property-garden/pb/v1"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
- func init() {
- proto.RegisterFile("system_service.proto", fileDescriptor_5d35c01297e407e4)
- }
- var fileDescriptor_5d35c01297e407e4 = []byte{
- // 406 bytes of a gzipped F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c, 0xf0, 0x45, 0x71, 0x5a, 0xeb, 0x7a, 0xa4,
- 0xbd, 0xcd, 0x26, 0x87, 0x1e, 0xaa, 0x6f, 0x98, 0x32, 0x42, 0x81, 0x89, 0xe5, 0xa5, 0x27, 0xff,
- 0xd8, 0x0e, 0x75, 0x9c, 0x92, 0xfc, 0x35, 0xb9, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x3d, 0x88,
- 0x1a, 0x99, 0x82, 0x04, 0x00, 0x00,
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConnInterface
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion6
- // SystemClient is the client API for System service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type SystemClient interface {
- //
- Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error)
- UserAdd(ctx context.Context, in *v1.UserAddRequest, opts ...grpc.CallOption) (*v1.UserAddReply, error)
- UserUpdate(ctx context.Context, in *v1.UserUpdateRequest, opts ...grpc.CallOption) (*v1.UserUpdateReply, error)
- UserDel(ctx context.Context, in *v1.UserDelRequest, opts ...grpc.CallOption) (*v1.UserDelReply, error)
- UserList(ctx context.Context, in *v1.UserListRequest, opts ...grpc.CallOption) (*v1.UserListReply, error)
- UserGardenChange(ctx context.Context, in *v1.UserGardenChangeRequest, opts ...grpc.CallOption) (*v1.UserGardenChangeReply, error)
- GroupAdd(ctx context.Context, in *v1.GroupAddRequest, opts ...grpc.CallOption) (*v1.GroupAddReply, error)
- SuperGroup(ctx context.Context, in *v1.SuperGroupRequest, opts ...grpc.CallOption) (*v1.SuperGroupReply, error)
- GardenInfos(ctx context.Context, in *v1.GardenInfosRequest, opts ...grpc.CallOption) (*v1.GardenInfosReply, error)
- GardenHouseCountChange(ctx context.Context, in *v1.GardenHouseCountChangeRequest, opts ...grpc.CallOption) (*v1.GardenHouseCountChangeReply, error)
- GardenHouseCountLimit(ctx context.Context, in *v1.GardenHouseCountLimitRequest, opts ...grpc.CallOption) (*v1.GardenHouseCountLimitReply, error)
- GardenRentSellCount(ctx context.Context, in *v1.GardenRentSellCountRequest, opts ...grpc.CallOption) (*v1.GardenRentSellCountReply, error)
- MsgPackageOrderList(ctx context.Context, in *v1.MsgPackageOrderListRequest, opts ...grpc.CallOption) (*v1.MsgPackageOrderListReply, error)
- MsgPackageOrderDecrease(ctx context.Context, in *v1.MsgPackageOrderDecreaseRequest, opts ...grpc.CallOption) (*v1.MsgPackageOrderDecreaseReply, error)
- }
- type systemClient struct {
- cc grpc.ClientConnInterface
- }
- func NewSystemClient(cc grpc.ClientConnInterface) SystemClient {
- return &systemClient{cc}
- }
- func (c *systemClient) Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error) {
- out := new(v1.LoginReply)
- err := c.cc.Invoke(ctx, "/pb.service.System/Login", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *systemClient) UserAdd(ctx context.Context, in *v1.UserAddRequest, opts ...grpc.CallOption) (*v1.UserAddReply, error) {
- out := new(v1.UserAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.System/UserAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *systemClient) UserUpdate(ctx context.Context, in *v1.UserUpdateRequest, opts ...grpc.CallOption) (*v1.UserUpdateReply, error) {
- out := new(v1.UserUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.service.System/UserUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *systemClient) UserDel(ctx context.Context, in *v1.UserDelRequest, opts ...grpc.CallOption) (*v1.UserDelReply, error) {
- out := new(v1.UserDelReply)
- err := c.cc.Invoke(ctx, "/pb.service.System/UserDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *systemClient) UserList(ctx context.Context, in *v1.UserListRequest, opts ...grpc.CallOption) (*v1.UserListReply, error) {
- out := new(v1.UserListReply)
- err := c.cc.Invoke(ctx, "/pb.service.System/UserList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *systemClient) UserGardenChange(ctx context.Context, in *v1.UserGardenChangeRequest, opts ...grpc.CallOption) (*v1.UserGardenChangeReply, error) {
- out := new(v1.UserGardenChangeReply)
- err := c.cc.Invoke(ctx, "/pb.service.System/UserGardenChange", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *systemClient) GroupAdd(ctx context.Context, in *v1.GroupAddRequest, opts ...grpc.CallOption) (*v1.GroupAddReply, error) {
- out := new(v1.GroupAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.System/GroupAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *systemClient) SuperGroup(ctx context.Context, in *v1.SuperGroupRequest, opts ...grpc.CallOption) (*v1.SuperGroupReply, error) {
- out := new(v1.SuperGroupReply)
- err := c.cc.Invoke(ctx, "/pb.service.System/SuperGroup", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *systemClient) GardenInfos(ctx context.Context, in *v1.GardenInfosRequest, opts ...grpc.CallOption) (*v1.GardenInfosReply, error) {
- out := new(v1.GardenInfosReply)
- err := c.cc.Invoke(ctx, "/pb.service.System/GardenInfos", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *systemClient) GardenHouseCountChange(ctx context.Context, in *v1.GardenHouseCountChangeRequest, opts ...grpc.CallOption) (*v1.GardenHouseCountChangeReply, error) {
- out := new(v1.GardenHouseCountChangeReply)
- err := c.cc.Invoke(ctx, "/pb.service.System/GardenHouseCountChange", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *systemClient) GardenHouseCountLimit(ctx context.Context, in *v1.GardenHouseCountLimitRequest, opts ...grpc.CallOption) (*v1.GardenHouseCountLimitReply, error) {
- out := new(v1.GardenHouseCountLimitReply)
- err := c.cc.Invoke(ctx, "/pb.service.System/GardenHouseCountLimit", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *systemClient) GardenRentSellCount(ctx context.Context, in *v1.GardenRentSellCountRequest, opts ...grpc.CallOption) (*v1.GardenRentSellCountReply, error) {
- out := new(v1.GardenRentSellCountReply)
- err := c.cc.Invoke(ctx, "/pb.service.System/GardenRentSellCount", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *systemClient) MsgPackageOrderList(ctx context.Context, in *v1.MsgPackageOrderListRequest, opts ...grpc.CallOption) (*v1.MsgPackageOrderListReply, error) {
- out := new(v1.MsgPackageOrderListReply)
- err := c.cc.Invoke(ctx, "/pb.service.System/MsgPackageOrderList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *systemClient) MsgPackageOrderDecrease(ctx context.Context, in *v1.MsgPackageOrderDecreaseRequest, opts ...grpc.CallOption) (*v1.MsgPackageOrderDecreaseReply, error) {
- out := new(v1.MsgPackageOrderDecreaseReply)
- err := c.cc.Invoke(ctx, "/pb.service.System/MsgPackageOrderDecrease", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // SystemServer is the server API for System service.
- type SystemServer interface {
- //
- Login(context.Context, *v1.LoginRequest) (*v1.LoginReply, error)
- UserAdd(context.Context, *v1.UserAddRequest) (*v1.UserAddReply, error)
- UserUpdate(context.Context, *v1.UserUpdateRequest) (*v1.UserUpdateReply, error)
- UserDel(context.Context, *v1.UserDelRequest) (*v1.UserDelReply, error)
- UserList(context.Context, *v1.UserListRequest) (*v1.UserListReply, error)
- UserGardenChange(context.Context, *v1.UserGardenChangeRequest) (*v1.UserGardenChangeReply, error)
- GroupAdd(context.Context, *v1.GroupAddRequest) (*v1.GroupAddReply, error)
- SuperGroup(context.Context, *v1.SuperGroupRequest) (*v1.SuperGroupReply, error)
- GardenInfos(context.Context, *v1.GardenInfosRequest) (*v1.GardenInfosReply, error)
- GardenHouseCountChange(context.Context, *v1.GardenHouseCountChangeRequest) (*v1.GardenHouseCountChangeReply, error)
- GardenHouseCountLimit(context.Context, *v1.GardenHouseCountLimitRequest) (*v1.GardenHouseCountLimitReply, error)
- GardenRentSellCount(context.Context, *v1.GardenRentSellCountRequest) (*v1.GardenRentSellCountReply, error)
- MsgPackageOrderList(context.Context, *v1.MsgPackageOrderListRequest) (*v1.MsgPackageOrderListReply, error)
- MsgPackageOrderDecrease(context.Context, *v1.MsgPackageOrderDecreaseRequest) (*v1.MsgPackageOrderDecreaseReply, error)
- }
- // UnimplementedSystemServer can be embedded to have forward compatible implementations.
- type UnimplementedSystemServer struct {
- }
- func (*UnimplementedSystemServer) Login(ctx context.Context, req *v1.LoginRequest) (*v1.LoginReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
- }
- func (*UnimplementedSystemServer) UserAdd(ctx context.Context, req *v1.UserAddRequest) (*v1.UserAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserAdd not implemented")
- }
- func (*UnimplementedSystemServer) UserUpdate(ctx context.Context, req *v1.UserUpdateRequest) (*v1.UserUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserUpdate not implemented")
- }
- func (*UnimplementedSystemServer) UserDel(ctx context.Context, req *v1.UserDelRequest) (*v1.UserDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserDel not implemented")
- }
- func (*UnimplementedSystemServer) UserList(ctx context.Context, req *v1.UserListRequest) (*v1.UserListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserList not implemented")
- }
- func (*UnimplementedSystemServer) UserGardenChange(ctx context.Context, req *v1.UserGardenChangeRequest) (*v1.UserGardenChangeReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserGardenChange not implemented")
- }
- func (*UnimplementedSystemServer) GroupAdd(ctx context.Context, req *v1.GroupAddRequest) (*v1.GroupAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GroupAdd not implemented")
- }
- func (*UnimplementedSystemServer) SuperGroup(ctx context.Context, req *v1.SuperGroupRequest) (*v1.SuperGroupReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SuperGroup not implemented")
- }
- func (*UnimplementedSystemServer) GardenInfos(ctx context.Context, req *v1.GardenInfosRequest) (*v1.GardenInfosReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GardenInfos not implemented")
- }
- func (*UnimplementedSystemServer) GardenHouseCountChange(ctx context.Context, req *v1.GardenHouseCountChangeRequest) (*v1.GardenHouseCountChangeReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GardenHouseCountChange not implemented")
- }
- func (*UnimplementedSystemServer) GardenHouseCountLimit(ctx context.Context, req *v1.GardenHouseCountLimitRequest) (*v1.GardenHouseCountLimitReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GardenHouseCountLimit not implemented")
- }
- func (*UnimplementedSystemServer) GardenRentSellCount(ctx context.Context, req *v1.GardenRentSellCountRequest) (*v1.GardenRentSellCountReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GardenRentSellCount not implemented")
- }
- func (*UnimplementedSystemServer) MsgPackageOrderList(ctx context.Context, req *v1.MsgPackageOrderListRequest) (*v1.MsgPackageOrderListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MsgPackageOrderList not implemented")
- }
- func (*UnimplementedSystemServer) MsgPackageOrderDecrease(ctx context.Context, req *v1.MsgPackageOrderDecreaseRequest) (*v1.MsgPackageOrderDecreaseReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method MsgPackageOrderDecrease not implemented")
- }
- func RegisterSystemServer(s *grpc.Server, srv SystemServer) {
- s.RegisterService(&_System_serviceDesc, srv)
- }
- func _System_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.LoginRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SystemServer).Login(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.System/Login",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SystemServer).Login(ctx, req.(*v1.LoginRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _System_UserAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UserAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SystemServer).UserAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.System/UserAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SystemServer).UserAdd(ctx, req.(*v1.UserAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _System_UserUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UserUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SystemServer).UserUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.System/UserUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SystemServer).UserUpdate(ctx, req.(*v1.UserUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _System_UserDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UserDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SystemServer).UserDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.System/UserDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SystemServer).UserDel(ctx, req.(*v1.UserDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _System_UserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UserListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SystemServer).UserList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.System/UserList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SystemServer).UserList(ctx, req.(*v1.UserListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _System_UserGardenChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UserGardenChangeRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SystemServer).UserGardenChange(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.System/UserGardenChange",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SystemServer).UserGardenChange(ctx, req.(*v1.UserGardenChangeRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _System_GroupAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GroupAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SystemServer).GroupAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.System/GroupAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SystemServer).GroupAdd(ctx, req.(*v1.GroupAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _System_SuperGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.SuperGroupRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SystemServer).SuperGroup(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.System/SuperGroup",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SystemServer).SuperGroup(ctx, req.(*v1.SuperGroupRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _System_GardenInfos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GardenInfosRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SystemServer).GardenInfos(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.System/GardenInfos",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SystemServer).GardenInfos(ctx, req.(*v1.GardenInfosRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _System_GardenHouseCountChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GardenHouseCountChangeRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SystemServer).GardenHouseCountChange(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.System/GardenHouseCountChange",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SystemServer).GardenHouseCountChange(ctx, req.(*v1.GardenHouseCountChangeRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _System_GardenHouseCountLimit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GardenHouseCountLimitRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SystemServer).GardenHouseCountLimit(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.System/GardenHouseCountLimit",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SystemServer).GardenHouseCountLimit(ctx, req.(*v1.GardenHouseCountLimitRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _System_GardenRentSellCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.GardenRentSellCountRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SystemServer).GardenRentSellCount(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.System/GardenRentSellCount",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SystemServer).GardenRentSellCount(ctx, req.(*v1.GardenRentSellCountRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _System_MsgPackageOrderList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.MsgPackageOrderListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SystemServer).MsgPackageOrderList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.System/MsgPackageOrderList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SystemServer).MsgPackageOrderList(ctx, req.(*v1.MsgPackageOrderListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _System_MsgPackageOrderDecrease_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.MsgPackageOrderDecreaseRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SystemServer).MsgPackageOrderDecrease(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.System/MsgPackageOrderDecrease",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SystemServer).MsgPackageOrderDecrease(ctx, req.(*v1.MsgPackageOrderDecreaseRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _System_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.service.System",
- HandlerType: (*SystemServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "Login",
- Handler: _System_Login_Handler,
- },
- {
- MethodName: "UserAdd",
- Handler: _System_UserAdd_Handler,
- },
- {
- MethodName: "UserUpdate",
- Handler: _System_UserUpdate_Handler,
- },
- {
- MethodName: "UserDel",
- Handler: _System_UserDel_Handler,
- },
- {
- MethodName: "UserList",
- Handler: _System_UserList_Handler,
- },
- {
- MethodName: "UserGardenChange",
- Handler: _System_UserGardenChange_Handler,
- },
- {
- MethodName: "GroupAdd",
- Handler: _System_GroupAdd_Handler,
- },
- {
- MethodName: "SuperGroup",
- Handler: _System_SuperGroup_Handler,
- },
- {
- MethodName: "GardenInfos",
- Handler: _System_GardenInfos_Handler,
- },
- {
- MethodName: "GardenHouseCountChange",
- Handler: _System_GardenHouseCountChange_Handler,
- },
- {
- MethodName: "GardenHouseCountLimit",
- Handler: _System_GardenHouseCountLimit_Handler,
- },
- {
- MethodName: "GardenRentSellCount",
- Handler: _System_GardenRentSellCount_Handler,
- },
- {
- MethodName: "MsgPackageOrderList",
- Handler: _System_MsgPackageOrderList_Handler,
- },
- {
- MethodName: "MsgPackageOrderDecrease",
- Handler: _System_MsgPackageOrderDecrease_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "system_service.proto",
- }
|