system_service.pb.go 58 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: system_service.proto
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb
  5. import (
  6. context "context"
  7. fmt "fmt"
  8. proto "github.com/golang/protobuf/proto"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. math "math"
  13. v1 "property-system-gateway/pb/v1"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  24. func init() {
  25. proto.RegisterFile("system_service.proto", fileDescriptor_5d35c01297e407e4)
  26. }
  27. var fileDescriptor_5d35c01297e407e4 = []byte{
  28. // 739 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x56, 0x5d, 0x6f, 0xd3, 0x30,
  30. 0x14, 0xe5, 0x85, 0x01, 0xe6, 0x63, 0x90, 0xb5, 0xfb, 0x08, 0x65, 0x5f, 0x88, 0xc7, 0x75, 0x1a,
  31. 0x3c, 0x20, 0x21, 0x21, 0xb1, 0x75, 0x30, 0x4d, 0x0c, 0xad, 0xea, 0x34, 0x09, 0x81, 0xc4, 0x94,
  32. 0xb6, 0x97, 0x2c, 0x5a, 0x9b, 0x98, 0xd8, 0xeb, 0x94, 0xff, 0xc8, 0x8f, 0x42, 0xf6, 0x8d, 0x3f,
  33. 0xe3, 0x96, 0xc7, 0x9e, 0x73, 0xee, 0xb1, 0x7d, 0x7c, 0xaf, 0x1b, 0xd2, 0x62, 0x15, 0xe3, 0x30,
  34. 0xbd, 0x62, 0x50, 0xce, 0xb2, 0x11, 0x74, 0x69, 0x59, 0xf0, 0x22, 0x22, 0x74, 0xd8, 0xad, 0x91,
  35. 0x78, 0x79, 0x76, 0xb0, 0x8f, 0x22, 0x24, 0xdf, 0xfe, 0x6d, 0x91, 0xa5, 0x0b, 0x09, 0x44, 0x07,
  36. 0xe4, 0xfe, 0x59, 0x91, 0x66, 0x79, 0xb4, 0xd2, 0xa5, 0xc3, 0xab, 0xd9, 0x41, 0x57, 0xfe, 0x1a,
  37. 0xc0, 0x9f, 0x5b, 0x60, 0x3c, 0x7e, 0xe1, 0x82, 0x74, 0x52, 0xed, 0xde, 0x8b, 0xce, 0xc9, 0x72,
  38. 0x1f, 0xca, 0x69, 0xc6, 0x58, 0x56, 0xe4, 0x03, 0x48, 0x81, 0x47, 0xaf, 0x6a, 0x9d, 0x87, 0x2b,
  39. 0x9b, 0x97, 0xf3, 0x68, 0x34, 0xfc, 0x42, 0x9e, 0xc8, 0x05, 0x8e, 0xaa, 0xfe, 0x75, 0x91, 0x43,
  40. 0x14, 0xdb, 0xab, 0xd6, 0xa0, 0xb2, 0x5a, 0x0f, 0x72, 0xe8, 0xf3, 0x89, 0x90, 0xde, 0x35, 0x8c,
  41. 0x6e, 0xd0, 0x45, 0x29, 0x0d, 0xa4, 0x3c, 0x56, 0x03, 0x0c, 0x3a, 0xbc, 0x27, 0x0f, 0x2e, 0x19,
  42. 0x94, 0x87, 0xe3, 0x71, 0xd4, 0xae, 0x45, 0xf5, 0x6f, 0x55, 0xbb, 0xe2, 0xc3, 0x7a, 0x69, 0x81,
  43. 0x5c, 0xd2, 0x71, 0xc2, 0xcd, 0xd2, 0x06, 0xf2, 0x97, 0xb6, 0x19, 0x67, 0xe9, 0x63, 0x98, 0x38,
  44. 0x4b, 0x1f, 0xc3, 0x24, 0xb4, 0xb4, 0x84, 0xb1, 0xf0, 0x03, 0x79, 0x28, 0x90, 0xb3, 0x8c, 0xf1,
  45. 0xc8, 0xb6, 0x17, 0x80, 0x2a, 0x6d, 0x35, 0x70, 0xac, 0x1d, 0x90, 0xe7, 0x02, 0x3a, 0x49, 0xca,
  46. 0x31, 0xe4, 0xbd, 0xeb, 0x24, 0x4f, 0x21, 0xda, 0xb4, 0xb4, 0x36, 0xa1, 0xbc, 0x3a, 0x73, 0x79,
  47. 0xbd, 0x9f, 0x93, 0xb2, 0xb8, 0xa5, 0x22, 0x44, 0xb5, 0x1f, 0x05, 0xf8, 0xfb, 0x31, 0xb8, 0x5b,
  48. 0x2b, 0x52, 0x70, 0x6a, 0xad, 0x18, 0x5a, 0x0d, 0x1c, 0x6b, 0x3f, 0x92, 0x47, 0x12, 0x92, 0x41,
  49. 0xac, 0xd9, 0x22, 0x3b, 0x89, 0x76, 0x93, 0x70, 0xcb, 0x4f, 0xf3, 0xdf, 0x85, 0x5b, 0x2e, 0x90,
  50. 0x60, 0x39, 0x12, 0x58, 0xde, 0x23, 0x8f, 0x25, 0x56, 0x77, 0xc0, 0x86, 0xad, 0x73, 0x5b, 0x60,
  51. 0x2d, 0x44, 0xe9, 0x2e, 0xba, 0xb8, 0xa5, 0x50, 0x4a, 0x4a, 0x77, 0x91, 0x81, 0xfc, 0x2e, 0xb2,
  52. 0x19, 0x74, 0x38, 0x25, 0x4f, 0x07, 0xc0, 0x80, 0xf7, 0x13, 0xc6, 0xee, 0x8a, 0x72, 0x1c, 0xa9,
  53. 0xd1, 0x73, 0x50, 0xe5, 0xb3, 0x11, 0x26, 0xd1, 0xea, 0x8c, 0x3c, 0xc3, 0x8b, 0xd5, 0x5e, 0x1d,
  54. 0x3d, 0x37, 0x36, 0xac, 0xcc, 0xe2, 0x39, 0x2c, 0xba, 0x7d, 0x27, 0x51, 0xaf, 0x98, 0xd2, 0x24,
  55. 0xaf, 0x3e, 0xe7, 0x5c, 0x35, 0x4e, 0xb4, 0xad, 0x6a, 0x1a, 0x94, 0x72, 0xdd, 0x5c, 0xa0, 0x40,
  56. 0xe7, 0x5f, 0xa4, 0x85, 0x80, 0x79, 0x5d, 0x64, 0x0b, 0xec, 0xaa, 0x9c, 0x03, 0xa4, 0x72, 0xdf,
  57. 0x5e, 0xa8, 0xd1, 0x91, 0x1e, 0x03, 0x4d, 0x4a, 0x3e, 0x85, 0x9c, 0x8b, 0xa6, 0x56, 0x91, 0x3a,
  58. 0xa8, 0x1f, 0xa9, 0x47, 0x06, 0xac, 0x44, 0x8f, 0x37, 0xad, 0xac, 0x46, 0xdf, 0x08, 0x93, 0xfa,
  59. 0x76, 0x0c, 0x2e, 0xcf, 0xdb, 0x69, 0xc8, 0xed, 0x93, 0xc6, 0x73, 0x58, 0xfd, 0x0e, 0x18, 0xa2,
  60. 0x6e, 0xe1, 0xcd, 0x46, 0x85, 0xdb, 0xc7, 0x9d, 0xb9, 0xbc, 0x99, 0x08, 0x19, 0xab, 0x18, 0x13,
  61. 0x66, 0x26, 0xc2, 0x60, 0x8d, 0x89, 0xb0, 0x29, 0x3d, 0x11, 0x88, 0xca, 0x23, 0xae, 0x3b, 0x42,
  62. 0xfb, 0x78, 0xab, 0x01, 0xc6, 0xcc, 0xb5, 0x04, 0xc5, 0xd5, 0xb9, 0x2b, 0x59, 0xd7, 0xd6, 0x6e,
  63. 0x12, 0xfa, 0xbf, 0x09, 0xb1, 0x3a, 0x95, 0xd8, 0x11, 0xba, 0x89, 0xac, 0x07, 0x39, 0x6f, 0x1b,
  64. 0xe2, 0xda, 0xdd, 0x6d, 0x58, 0x57, 0xde, 0x6e, 0x12, 0x58, 0xfe, 0x93, 0xac, 0x20, 0xf6, 0x15,
  65. 0x2a, 0x11, 0x50, 0xfd, 0x56, 0xef, 0x38, 0x7a, 0x87, 0x53, 0x96, 0x5b, 0x8b, 0x24, 0x68, 0x9e,
  66. 0x92, 0xb5, 0x00, 0x2b, 0x13, 0x7f, 0x33, 0xbf, 0xda, 0x8e, 0xff, 0xf5, 0xff, 0x64, 0xde, 0xa8,
  67. 0xd6, 0x8a, 0x43, 0x4a, 0xcb, 0x62, 0x06, 0xde, 0xa8, 0xba, 0x64, 0x78, 0x54, 0x7d, 0x8d, 0x4e,
  68. 0xe9, 0x90, 0xd2, 0x49, 0x36, 0x4a, 0x78, 0x56, 0xe4, 0xe7, 0xe5, 0x18, 0xff, 0xca, 0x55, 0x4a,
  69. 0x01, 0xce, 0x4f, 0x29, 0x28, 0x41, 0xf3, 0x84, 0xb4, 0xeb, 0xee, 0x30, 0x1a, 0x99, 0x91, 0x7b,
  70. 0x78, 0x8f, 0x55, 0x0b, 0xec, 0x2c, 0x16, 0xe9, 0x47, 0xf2, 0x1b, 0x4b, 0xfb, 0xc9, 0xe8, 0x26,
  71. 0x49, 0x41, 0x6f, 0x5f, 0x9d, 0xbc, 0x49, 0xf9, 0x8f, 0x64, 0x48, 0xa1, 0x93, 0xf1, 0x48, 0xb9,
  72. 0xf5, 0x9d, 0x70, 0xa1, 0xbd, 0xf1, 0xad, 0x45, 0x12, 0x69, 0x7e, 0xd4, 0xf9, 0x11, 0xd3, 0xb2,
  73. 0xa0, 0x50, 0xf2, 0x6a, 0x0f, 0xbf, 0x33, 0xf7, 0xd2, 0x84, 0xc3, 0x5d, 0x52, 0xed, 0xd3, 0xe1,
  74. 0x70, 0x49, 0x7e, 0x73, 0xbe, 0xfb, 0x17, 0x00, 0x00, 0xff, 0xff, 0xd7, 0x14, 0xc2, 0x99, 0xa8,
  75. 0x0a, 0x00, 0x00,
  76. }
  77. // Reference imports to suppress errors if they are not otherwise used.
  78. var _ context.Context
  79. var _ grpc.ClientConnInterface
  80. // This is a compile-time assertion to ensure that this generated file
  81. // is compatible with the grpc package it is being compiled against.
  82. const _ = grpc.SupportPackageIsVersion6
  83. // SystemClient is the client API for System service.
  84. //
  85. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  86. type SystemClient interface {
  87. //
  88. Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error)
  89. // 权限变更后重新获取权限
  90. PermissionReget(ctx context.Context, in *v1.PermissionRegetRequest, opts ...grpc.CallOption) (*v1.PermissionRegetReply, error)
  91. LoginByPhone(ctx context.Context, in *v1.LoginByPhoneRequest, opts ...grpc.CallOption) (*v1.LoginByPhoneReply, error)
  92. CheckPhone(ctx context.Context, in *v1.CheckPhoneRequest, opts ...grpc.CallOption) (*v1.CheckPhoneReply, error)
  93. UserAdd(ctx context.Context, in *v1.UserAddRequest, opts ...grpc.CallOption) (*v1.UserAddReply, error)
  94. UserUpdate(ctx context.Context, in *v1.UserUpdateRequest, opts ...grpc.CallOption) (*v1.UserUpdateReply, error)
  95. UserDel(ctx context.Context, in *v1.UserDelRequest, opts ...grpc.CallOption) (*v1.UserDelReply, error)
  96. UserList(ctx context.Context, in *v1.UserListRequest, opts ...grpc.CallOption) (*v1.UserListReply, error)
  97. UserGardenChange(ctx context.Context, in *v1.UserGardenChangeRequest, opts ...grpc.CallOption) (*v1.UserGardenChangeReply, error)
  98. GroupAdd(ctx context.Context, in *v1.GroupAddRequest, opts ...grpc.CallOption) (*v1.GroupAddReply, error)
  99. GroupDel(ctx context.Context, in *v1.GroupDelRequest, opts ...grpc.CallOption) (*v1.GroupDelReply, error)
  100. GroupList(ctx context.Context, in *v1.GroupListRequest, opts ...grpc.CallOption) (*v1.GroupListReply, error)
  101. GroupInfo(ctx context.Context, in *v1.GroupInfoRequest, opts ...grpc.CallOption) (*v1.GroupInfoReply, error)
  102. GroupUpdate(ctx context.Context, in *v1.GroupUpdateRequest, opts ...grpc.CallOption) (*v1.GroupUpdateReply, error)
  103. SuperGroup(ctx context.Context, in *v1.SuperGroupRequest, opts ...grpc.CallOption) (*v1.SuperGroupReply, error)
  104. ResetPassword(ctx context.Context, in *v1.ResetPasswordRequest, opts ...grpc.CallOption) (*v1.ResetPasswordReply, error)
  105. ChangePassword(ctx context.Context, in *v1.ChangePasswordRequest, opts ...grpc.CallOption) (*v1.ChangePasswordReply, error)
  106. // 公司账户进小区
  107. CompanyEnterGarden(ctx context.Context, in *v1.CompanyEnterGardenRequest, opts ...grpc.CallOption) (*v1.CompanyEnterGardenReply, error)
  108. GardenPermissionList(ctx context.Context, in *v1.GardenPermissionListRequest, opts ...grpc.CallOption) (*v1.GardenPermissionListReply, error)
  109. // 部门
  110. DepartmentAdd(ctx context.Context, in *v1.DepartmentAddRequest, opts ...grpc.CallOption) (*v1.DepartmentAddReply, error)
  111. DepartmentDel(ctx context.Context, in *v1.DepartmentDelRequest, opts ...grpc.CallOption) (*v1.DepartmentDelReply, error)
  112. DepartmentList(ctx context.Context, in *v1.DepartmentListRequest, opts ...grpc.CallOption) (*v1.DepartmentListReply, error)
  113. DepartmentUpdate(ctx context.Context, in *v1.DepartmentUpdateRequest, opts ...grpc.CallOption) (*v1.DepartmentUpdateReply, error)
  114. GardenInfos(ctx context.Context, in *v1.GardenInfosRequest, opts ...grpc.CallOption) (*v1.GardenInfosReply, error)
  115. GardenList(ctx context.Context, in *v1.GardenListRequest, opts ...grpc.CallOption) (*v1.GardenListReply, error)
  116. GardenAdd(ctx context.Context, in *v1.GardenAddRequest, opts ...grpc.CallOption) (*v1.GardenAddReply, error)
  117. GardenUpdate(ctx context.Context, in *v1.GardenUpdateRequest, opts ...grpc.CallOption) (*v1.GardenUpdateReply, error)
  118. GardenDel(ctx context.Context, in *v1.GardenDelRequest, opts ...grpc.CallOption) (*v1.GardenDelReply, error)
  119. // 修改小区关键信息提交申请
  120. GardenKeyInfoChange(ctx context.Context, in *v1.GardenKeyInfoChangeRequest, opts ...grpc.CallOption) (*v1.GardenKeyInfoChangeReply, error)
  121. // 小区关键信息申请列表
  122. GardenKeyInfoChangeList(ctx context.Context, in *v1.GardenKeyInfoChangeListRequest, opts ...grpc.CallOption) (*v1.GardenKeyInfoChangeListReply, error)
  123. // 对小区关键信息申请进行审批
  124. GardenKeyInfoApprove(ctx context.Context, in *v1.GardenKeyInfoApproveRequest, opts ...grpc.CallOption) (*v1.GardenKeyInfoApproveReply, error)
  125. // 应用相关
  126. ApplicationOrderAdd(ctx context.Context, in *v1.ApplicationOrderAddRequest, opts ...grpc.CallOption) (*v1.ApplicationOrderAddReply, error)
  127. GardenApplicationList(ctx context.Context, in *v1.GardenApplicationListRequest, opts ...grpc.CallOption) (*v1.GardenApplicationListReply, error)
  128. // 短信套餐相关
  129. MsgPackageOrderAdd(ctx context.Context, in *v1.MsgPackageOrderAddRequest, opts ...grpc.CallOption) (*v1.MsgPackageOrderAddReply, error)
  130. MsgPackageOrderList(ctx context.Context, in *v1.MsgPackageOrderListRequest, opts ...grpc.CallOption) (*v1.MsgPackageOrderListReply, error)
  131. }
  132. type systemClient struct {
  133. cc grpc.ClientConnInterface
  134. }
  135. func NewSystemClient(cc grpc.ClientConnInterface) SystemClient {
  136. return &systemClient{cc}
  137. }
  138. func (c *systemClient) Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error) {
  139. out := new(v1.LoginReply)
  140. err := c.cc.Invoke(ctx, "/pb.service.System/Login", in, out, opts...)
  141. if err != nil {
  142. return nil, err
  143. }
  144. return out, nil
  145. }
  146. func (c *systemClient) PermissionReget(ctx context.Context, in *v1.PermissionRegetRequest, opts ...grpc.CallOption) (*v1.PermissionRegetReply, error) {
  147. out := new(v1.PermissionRegetReply)
  148. err := c.cc.Invoke(ctx, "/pb.service.System/PermissionReget", in, out, opts...)
  149. if err != nil {
  150. return nil, err
  151. }
  152. return out, nil
  153. }
  154. func (c *systemClient) LoginByPhone(ctx context.Context, in *v1.LoginByPhoneRequest, opts ...grpc.CallOption) (*v1.LoginByPhoneReply, error) {
  155. out := new(v1.LoginByPhoneReply)
  156. err := c.cc.Invoke(ctx, "/pb.service.System/LoginByPhone", in, out, opts...)
  157. if err != nil {
  158. return nil, err
  159. }
  160. return out, nil
  161. }
  162. func (c *systemClient) CheckPhone(ctx context.Context, in *v1.CheckPhoneRequest, opts ...grpc.CallOption) (*v1.CheckPhoneReply, error) {
  163. out := new(v1.CheckPhoneReply)
  164. err := c.cc.Invoke(ctx, "/pb.service.System/CheckPhone", in, out, opts...)
  165. if err != nil {
  166. return nil, err
  167. }
  168. return out, nil
  169. }
  170. func (c *systemClient) UserAdd(ctx context.Context, in *v1.UserAddRequest, opts ...grpc.CallOption) (*v1.UserAddReply, error) {
  171. out := new(v1.UserAddReply)
  172. err := c.cc.Invoke(ctx, "/pb.service.System/UserAdd", in, out, opts...)
  173. if err != nil {
  174. return nil, err
  175. }
  176. return out, nil
  177. }
  178. func (c *systemClient) UserUpdate(ctx context.Context, in *v1.UserUpdateRequest, opts ...grpc.CallOption) (*v1.UserUpdateReply, error) {
  179. out := new(v1.UserUpdateReply)
  180. err := c.cc.Invoke(ctx, "/pb.service.System/UserUpdate", in, out, opts...)
  181. if err != nil {
  182. return nil, err
  183. }
  184. return out, nil
  185. }
  186. func (c *systemClient) UserDel(ctx context.Context, in *v1.UserDelRequest, opts ...grpc.CallOption) (*v1.UserDelReply, error) {
  187. out := new(v1.UserDelReply)
  188. err := c.cc.Invoke(ctx, "/pb.service.System/UserDel", in, out, opts...)
  189. if err != nil {
  190. return nil, err
  191. }
  192. return out, nil
  193. }
  194. func (c *systemClient) UserList(ctx context.Context, in *v1.UserListRequest, opts ...grpc.CallOption) (*v1.UserListReply, error) {
  195. out := new(v1.UserListReply)
  196. err := c.cc.Invoke(ctx, "/pb.service.System/UserList", in, out, opts...)
  197. if err != nil {
  198. return nil, err
  199. }
  200. return out, nil
  201. }
  202. func (c *systemClient) UserGardenChange(ctx context.Context, in *v1.UserGardenChangeRequest, opts ...grpc.CallOption) (*v1.UserGardenChangeReply, error) {
  203. out := new(v1.UserGardenChangeReply)
  204. err := c.cc.Invoke(ctx, "/pb.service.System/UserGardenChange", in, out, opts...)
  205. if err != nil {
  206. return nil, err
  207. }
  208. return out, nil
  209. }
  210. func (c *systemClient) GroupAdd(ctx context.Context, in *v1.GroupAddRequest, opts ...grpc.CallOption) (*v1.GroupAddReply, error) {
  211. out := new(v1.GroupAddReply)
  212. err := c.cc.Invoke(ctx, "/pb.service.System/GroupAdd", in, out, opts...)
  213. if err != nil {
  214. return nil, err
  215. }
  216. return out, nil
  217. }
  218. func (c *systemClient) GroupDel(ctx context.Context, in *v1.GroupDelRequest, opts ...grpc.CallOption) (*v1.GroupDelReply, error) {
  219. out := new(v1.GroupDelReply)
  220. err := c.cc.Invoke(ctx, "/pb.service.System/GroupDel", in, out, opts...)
  221. if err != nil {
  222. return nil, err
  223. }
  224. return out, nil
  225. }
  226. func (c *systemClient) GroupList(ctx context.Context, in *v1.GroupListRequest, opts ...grpc.CallOption) (*v1.GroupListReply, error) {
  227. out := new(v1.GroupListReply)
  228. err := c.cc.Invoke(ctx, "/pb.service.System/GroupList", in, out, opts...)
  229. if err != nil {
  230. return nil, err
  231. }
  232. return out, nil
  233. }
  234. func (c *systemClient) GroupInfo(ctx context.Context, in *v1.GroupInfoRequest, opts ...grpc.CallOption) (*v1.GroupInfoReply, error) {
  235. out := new(v1.GroupInfoReply)
  236. err := c.cc.Invoke(ctx, "/pb.service.System/GroupInfo", in, out, opts...)
  237. if err != nil {
  238. return nil, err
  239. }
  240. return out, nil
  241. }
  242. func (c *systemClient) GroupUpdate(ctx context.Context, in *v1.GroupUpdateRequest, opts ...grpc.CallOption) (*v1.GroupUpdateReply, error) {
  243. out := new(v1.GroupUpdateReply)
  244. err := c.cc.Invoke(ctx, "/pb.service.System/GroupUpdate", in, out, opts...)
  245. if err != nil {
  246. return nil, err
  247. }
  248. return out, nil
  249. }
  250. func (c *systemClient) SuperGroup(ctx context.Context, in *v1.SuperGroupRequest, opts ...grpc.CallOption) (*v1.SuperGroupReply, error) {
  251. out := new(v1.SuperGroupReply)
  252. err := c.cc.Invoke(ctx, "/pb.service.System/SuperGroup", in, out, opts...)
  253. if err != nil {
  254. return nil, err
  255. }
  256. return out, nil
  257. }
  258. func (c *systemClient) ResetPassword(ctx context.Context, in *v1.ResetPasswordRequest, opts ...grpc.CallOption) (*v1.ResetPasswordReply, error) {
  259. out := new(v1.ResetPasswordReply)
  260. err := c.cc.Invoke(ctx, "/pb.service.System/ResetPassword", in, out, opts...)
  261. if err != nil {
  262. return nil, err
  263. }
  264. return out, nil
  265. }
  266. func (c *systemClient) ChangePassword(ctx context.Context, in *v1.ChangePasswordRequest, opts ...grpc.CallOption) (*v1.ChangePasswordReply, error) {
  267. out := new(v1.ChangePasswordReply)
  268. err := c.cc.Invoke(ctx, "/pb.service.System/ChangePassword", in, out, opts...)
  269. if err != nil {
  270. return nil, err
  271. }
  272. return out, nil
  273. }
  274. func (c *systemClient) CompanyEnterGarden(ctx context.Context, in *v1.CompanyEnterGardenRequest, opts ...grpc.CallOption) (*v1.CompanyEnterGardenReply, error) {
  275. out := new(v1.CompanyEnterGardenReply)
  276. err := c.cc.Invoke(ctx, "/pb.service.System/CompanyEnterGarden", in, out, opts...)
  277. if err != nil {
  278. return nil, err
  279. }
  280. return out, nil
  281. }
  282. func (c *systemClient) GardenPermissionList(ctx context.Context, in *v1.GardenPermissionListRequest, opts ...grpc.CallOption) (*v1.GardenPermissionListReply, error) {
  283. out := new(v1.GardenPermissionListReply)
  284. err := c.cc.Invoke(ctx, "/pb.service.System/GardenPermissionList", in, out, opts...)
  285. if err != nil {
  286. return nil, err
  287. }
  288. return out, nil
  289. }
  290. func (c *systemClient) DepartmentAdd(ctx context.Context, in *v1.DepartmentAddRequest, opts ...grpc.CallOption) (*v1.DepartmentAddReply, error) {
  291. out := new(v1.DepartmentAddReply)
  292. err := c.cc.Invoke(ctx, "/pb.service.System/DepartmentAdd", in, out, opts...)
  293. if err != nil {
  294. return nil, err
  295. }
  296. return out, nil
  297. }
  298. func (c *systemClient) DepartmentDel(ctx context.Context, in *v1.DepartmentDelRequest, opts ...grpc.CallOption) (*v1.DepartmentDelReply, error) {
  299. out := new(v1.DepartmentDelReply)
  300. err := c.cc.Invoke(ctx, "/pb.service.System/DepartmentDel", in, out, opts...)
  301. if err != nil {
  302. return nil, err
  303. }
  304. return out, nil
  305. }
  306. func (c *systemClient) DepartmentList(ctx context.Context, in *v1.DepartmentListRequest, opts ...grpc.CallOption) (*v1.DepartmentListReply, error) {
  307. out := new(v1.DepartmentListReply)
  308. err := c.cc.Invoke(ctx, "/pb.service.System/DepartmentList", in, out, opts...)
  309. if err != nil {
  310. return nil, err
  311. }
  312. return out, nil
  313. }
  314. func (c *systemClient) DepartmentUpdate(ctx context.Context, in *v1.DepartmentUpdateRequest, opts ...grpc.CallOption) (*v1.DepartmentUpdateReply, error) {
  315. out := new(v1.DepartmentUpdateReply)
  316. err := c.cc.Invoke(ctx, "/pb.service.System/DepartmentUpdate", in, out, opts...)
  317. if err != nil {
  318. return nil, err
  319. }
  320. return out, nil
  321. }
  322. func (c *systemClient) GardenInfos(ctx context.Context, in *v1.GardenInfosRequest, opts ...grpc.CallOption) (*v1.GardenInfosReply, error) {
  323. out := new(v1.GardenInfosReply)
  324. err := c.cc.Invoke(ctx, "/pb.service.System/GardenInfos", in, out, opts...)
  325. if err != nil {
  326. return nil, err
  327. }
  328. return out, nil
  329. }
  330. func (c *systemClient) GardenList(ctx context.Context, in *v1.GardenListRequest, opts ...grpc.CallOption) (*v1.GardenListReply, error) {
  331. out := new(v1.GardenListReply)
  332. err := c.cc.Invoke(ctx, "/pb.service.System/GardenList", in, out, opts...)
  333. if err != nil {
  334. return nil, err
  335. }
  336. return out, nil
  337. }
  338. func (c *systemClient) GardenAdd(ctx context.Context, in *v1.GardenAddRequest, opts ...grpc.CallOption) (*v1.GardenAddReply, error) {
  339. out := new(v1.GardenAddReply)
  340. err := c.cc.Invoke(ctx, "/pb.service.System/GardenAdd", in, out, opts...)
  341. if err != nil {
  342. return nil, err
  343. }
  344. return out, nil
  345. }
  346. func (c *systemClient) GardenUpdate(ctx context.Context, in *v1.GardenUpdateRequest, opts ...grpc.CallOption) (*v1.GardenUpdateReply, error) {
  347. out := new(v1.GardenUpdateReply)
  348. err := c.cc.Invoke(ctx, "/pb.service.System/GardenUpdate", in, out, opts...)
  349. if err != nil {
  350. return nil, err
  351. }
  352. return out, nil
  353. }
  354. func (c *systemClient) GardenDel(ctx context.Context, in *v1.GardenDelRequest, opts ...grpc.CallOption) (*v1.GardenDelReply, error) {
  355. out := new(v1.GardenDelReply)
  356. err := c.cc.Invoke(ctx, "/pb.service.System/GardenDel", in, out, opts...)
  357. if err != nil {
  358. return nil, err
  359. }
  360. return out, nil
  361. }
  362. func (c *systemClient) GardenKeyInfoChange(ctx context.Context, in *v1.GardenKeyInfoChangeRequest, opts ...grpc.CallOption) (*v1.GardenKeyInfoChangeReply, error) {
  363. out := new(v1.GardenKeyInfoChangeReply)
  364. err := c.cc.Invoke(ctx, "/pb.service.System/GardenKeyInfoChange", in, out, opts...)
  365. if err != nil {
  366. return nil, err
  367. }
  368. return out, nil
  369. }
  370. func (c *systemClient) GardenKeyInfoChangeList(ctx context.Context, in *v1.GardenKeyInfoChangeListRequest, opts ...grpc.CallOption) (*v1.GardenKeyInfoChangeListReply, error) {
  371. out := new(v1.GardenKeyInfoChangeListReply)
  372. err := c.cc.Invoke(ctx, "/pb.service.System/GardenKeyInfoChangeList", in, out, opts...)
  373. if err != nil {
  374. return nil, err
  375. }
  376. return out, nil
  377. }
  378. func (c *systemClient) GardenKeyInfoApprove(ctx context.Context, in *v1.GardenKeyInfoApproveRequest, opts ...grpc.CallOption) (*v1.GardenKeyInfoApproveReply, error) {
  379. out := new(v1.GardenKeyInfoApproveReply)
  380. err := c.cc.Invoke(ctx, "/pb.service.System/GardenKeyInfoApprove", in, out, opts...)
  381. if err != nil {
  382. return nil, err
  383. }
  384. return out, nil
  385. }
  386. func (c *systemClient) ApplicationOrderAdd(ctx context.Context, in *v1.ApplicationOrderAddRequest, opts ...grpc.CallOption) (*v1.ApplicationOrderAddReply, error) {
  387. out := new(v1.ApplicationOrderAddReply)
  388. err := c.cc.Invoke(ctx, "/pb.service.System/ApplicationOrderAdd", in, out, opts...)
  389. if err != nil {
  390. return nil, err
  391. }
  392. return out, nil
  393. }
  394. func (c *systemClient) GardenApplicationList(ctx context.Context, in *v1.GardenApplicationListRequest, opts ...grpc.CallOption) (*v1.GardenApplicationListReply, error) {
  395. out := new(v1.GardenApplicationListReply)
  396. err := c.cc.Invoke(ctx, "/pb.service.System/GardenApplicationList", in, out, opts...)
  397. if err != nil {
  398. return nil, err
  399. }
  400. return out, nil
  401. }
  402. func (c *systemClient) MsgPackageOrderAdd(ctx context.Context, in *v1.MsgPackageOrderAddRequest, opts ...grpc.CallOption) (*v1.MsgPackageOrderAddReply, error) {
  403. out := new(v1.MsgPackageOrderAddReply)
  404. err := c.cc.Invoke(ctx, "/pb.service.System/MsgPackageOrderAdd", in, out, opts...)
  405. if err != nil {
  406. return nil, err
  407. }
  408. return out, nil
  409. }
  410. func (c *systemClient) MsgPackageOrderList(ctx context.Context, in *v1.MsgPackageOrderListRequest, opts ...grpc.CallOption) (*v1.MsgPackageOrderListReply, error) {
  411. out := new(v1.MsgPackageOrderListReply)
  412. err := c.cc.Invoke(ctx, "/pb.service.System/MsgPackageOrderList", in, out, opts...)
  413. if err != nil {
  414. return nil, err
  415. }
  416. return out, nil
  417. }
  418. // SystemServer is the server API for System service.
  419. type SystemServer interface {
  420. //
  421. Login(context.Context, *v1.LoginRequest) (*v1.LoginReply, error)
  422. // 权限变更后重新获取权限
  423. PermissionReget(context.Context, *v1.PermissionRegetRequest) (*v1.PermissionRegetReply, error)
  424. LoginByPhone(context.Context, *v1.LoginByPhoneRequest) (*v1.LoginByPhoneReply, error)
  425. CheckPhone(context.Context, *v1.CheckPhoneRequest) (*v1.CheckPhoneReply, error)
  426. UserAdd(context.Context, *v1.UserAddRequest) (*v1.UserAddReply, error)
  427. UserUpdate(context.Context, *v1.UserUpdateRequest) (*v1.UserUpdateReply, error)
  428. UserDel(context.Context, *v1.UserDelRequest) (*v1.UserDelReply, error)
  429. UserList(context.Context, *v1.UserListRequest) (*v1.UserListReply, error)
  430. UserGardenChange(context.Context, *v1.UserGardenChangeRequest) (*v1.UserGardenChangeReply, error)
  431. GroupAdd(context.Context, *v1.GroupAddRequest) (*v1.GroupAddReply, error)
  432. GroupDel(context.Context, *v1.GroupDelRequest) (*v1.GroupDelReply, error)
  433. GroupList(context.Context, *v1.GroupListRequest) (*v1.GroupListReply, error)
  434. GroupInfo(context.Context, *v1.GroupInfoRequest) (*v1.GroupInfoReply, error)
  435. GroupUpdate(context.Context, *v1.GroupUpdateRequest) (*v1.GroupUpdateReply, error)
  436. SuperGroup(context.Context, *v1.SuperGroupRequest) (*v1.SuperGroupReply, error)
  437. ResetPassword(context.Context, *v1.ResetPasswordRequest) (*v1.ResetPasswordReply, error)
  438. ChangePassword(context.Context, *v1.ChangePasswordRequest) (*v1.ChangePasswordReply, error)
  439. // 公司账户进小区
  440. CompanyEnterGarden(context.Context, *v1.CompanyEnterGardenRequest) (*v1.CompanyEnterGardenReply, error)
  441. GardenPermissionList(context.Context, *v1.GardenPermissionListRequest) (*v1.GardenPermissionListReply, error)
  442. // 部门
  443. DepartmentAdd(context.Context, *v1.DepartmentAddRequest) (*v1.DepartmentAddReply, error)
  444. DepartmentDel(context.Context, *v1.DepartmentDelRequest) (*v1.DepartmentDelReply, error)
  445. DepartmentList(context.Context, *v1.DepartmentListRequest) (*v1.DepartmentListReply, error)
  446. DepartmentUpdate(context.Context, *v1.DepartmentUpdateRequest) (*v1.DepartmentUpdateReply, error)
  447. GardenInfos(context.Context, *v1.GardenInfosRequest) (*v1.GardenInfosReply, error)
  448. GardenList(context.Context, *v1.GardenListRequest) (*v1.GardenListReply, error)
  449. GardenAdd(context.Context, *v1.GardenAddRequest) (*v1.GardenAddReply, error)
  450. GardenUpdate(context.Context, *v1.GardenUpdateRequest) (*v1.GardenUpdateReply, error)
  451. GardenDel(context.Context, *v1.GardenDelRequest) (*v1.GardenDelReply, error)
  452. // 修改小区关键信息提交申请
  453. GardenKeyInfoChange(context.Context, *v1.GardenKeyInfoChangeRequest) (*v1.GardenKeyInfoChangeReply, error)
  454. // 小区关键信息申请列表
  455. GardenKeyInfoChangeList(context.Context, *v1.GardenKeyInfoChangeListRequest) (*v1.GardenKeyInfoChangeListReply, error)
  456. // 对小区关键信息申请进行审批
  457. GardenKeyInfoApprove(context.Context, *v1.GardenKeyInfoApproveRequest) (*v1.GardenKeyInfoApproveReply, error)
  458. // 应用相关
  459. ApplicationOrderAdd(context.Context, *v1.ApplicationOrderAddRequest) (*v1.ApplicationOrderAddReply, error)
  460. GardenApplicationList(context.Context, *v1.GardenApplicationListRequest) (*v1.GardenApplicationListReply, error)
  461. // 短信套餐相关
  462. MsgPackageOrderAdd(context.Context, *v1.MsgPackageOrderAddRequest) (*v1.MsgPackageOrderAddReply, error)
  463. MsgPackageOrderList(context.Context, *v1.MsgPackageOrderListRequest) (*v1.MsgPackageOrderListReply, error)
  464. }
  465. // UnimplementedSystemServer can be embedded to have forward compatible implementations.
  466. type UnimplementedSystemServer struct {
  467. }
  468. func (*UnimplementedSystemServer) Login(ctx context.Context, req *v1.LoginRequest) (*v1.LoginReply, error) {
  469. return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
  470. }
  471. func (*UnimplementedSystemServer) PermissionReget(ctx context.Context, req *v1.PermissionRegetRequest) (*v1.PermissionRegetReply, error) {
  472. return nil, status.Errorf(codes.Unimplemented, "method PermissionReget not implemented")
  473. }
  474. func (*UnimplementedSystemServer) LoginByPhone(ctx context.Context, req *v1.LoginByPhoneRequest) (*v1.LoginByPhoneReply, error) {
  475. return nil, status.Errorf(codes.Unimplemented, "method LoginByPhone not implemented")
  476. }
  477. func (*UnimplementedSystemServer) CheckPhone(ctx context.Context, req *v1.CheckPhoneRequest) (*v1.CheckPhoneReply, error) {
  478. return nil, status.Errorf(codes.Unimplemented, "method CheckPhone not implemented")
  479. }
  480. func (*UnimplementedSystemServer) UserAdd(ctx context.Context, req *v1.UserAddRequest) (*v1.UserAddReply, error) {
  481. return nil, status.Errorf(codes.Unimplemented, "method UserAdd not implemented")
  482. }
  483. func (*UnimplementedSystemServer) UserUpdate(ctx context.Context, req *v1.UserUpdateRequest) (*v1.UserUpdateReply, error) {
  484. return nil, status.Errorf(codes.Unimplemented, "method UserUpdate not implemented")
  485. }
  486. func (*UnimplementedSystemServer) UserDel(ctx context.Context, req *v1.UserDelRequest) (*v1.UserDelReply, error) {
  487. return nil, status.Errorf(codes.Unimplemented, "method UserDel not implemented")
  488. }
  489. func (*UnimplementedSystemServer) UserList(ctx context.Context, req *v1.UserListRequest) (*v1.UserListReply, error) {
  490. return nil, status.Errorf(codes.Unimplemented, "method UserList not implemented")
  491. }
  492. func (*UnimplementedSystemServer) UserGardenChange(ctx context.Context, req *v1.UserGardenChangeRequest) (*v1.UserGardenChangeReply, error) {
  493. return nil, status.Errorf(codes.Unimplemented, "method UserGardenChange not implemented")
  494. }
  495. func (*UnimplementedSystemServer) GroupAdd(ctx context.Context, req *v1.GroupAddRequest) (*v1.GroupAddReply, error) {
  496. return nil, status.Errorf(codes.Unimplemented, "method GroupAdd not implemented")
  497. }
  498. func (*UnimplementedSystemServer) GroupDel(ctx context.Context, req *v1.GroupDelRequest) (*v1.GroupDelReply, error) {
  499. return nil, status.Errorf(codes.Unimplemented, "method GroupDel not implemented")
  500. }
  501. func (*UnimplementedSystemServer) GroupList(ctx context.Context, req *v1.GroupListRequest) (*v1.GroupListReply, error) {
  502. return nil, status.Errorf(codes.Unimplemented, "method GroupList not implemented")
  503. }
  504. func (*UnimplementedSystemServer) GroupInfo(ctx context.Context, req *v1.GroupInfoRequest) (*v1.GroupInfoReply, error) {
  505. return nil, status.Errorf(codes.Unimplemented, "method GroupInfo not implemented")
  506. }
  507. func (*UnimplementedSystemServer) GroupUpdate(ctx context.Context, req *v1.GroupUpdateRequest) (*v1.GroupUpdateReply, error) {
  508. return nil, status.Errorf(codes.Unimplemented, "method GroupUpdate not implemented")
  509. }
  510. func (*UnimplementedSystemServer) SuperGroup(ctx context.Context, req *v1.SuperGroupRequest) (*v1.SuperGroupReply, error) {
  511. return nil, status.Errorf(codes.Unimplemented, "method SuperGroup not implemented")
  512. }
  513. func (*UnimplementedSystemServer) ResetPassword(ctx context.Context, req *v1.ResetPasswordRequest) (*v1.ResetPasswordReply, error) {
  514. return nil, status.Errorf(codes.Unimplemented, "method ResetPassword not implemented")
  515. }
  516. func (*UnimplementedSystemServer) ChangePassword(ctx context.Context, req *v1.ChangePasswordRequest) (*v1.ChangePasswordReply, error) {
  517. return nil, status.Errorf(codes.Unimplemented, "method ChangePassword not implemented")
  518. }
  519. func (*UnimplementedSystemServer) CompanyEnterGarden(ctx context.Context, req *v1.CompanyEnterGardenRequest) (*v1.CompanyEnterGardenReply, error) {
  520. return nil, status.Errorf(codes.Unimplemented, "method CompanyEnterGarden not implemented")
  521. }
  522. func (*UnimplementedSystemServer) GardenPermissionList(ctx context.Context, req *v1.GardenPermissionListRequest) (*v1.GardenPermissionListReply, error) {
  523. return nil, status.Errorf(codes.Unimplemented, "method GardenPermissionList not implemented")
  524. }
  525. func (*UnimplementedSystemServer) DepartmentAdd(ctx context.Context, req *v1.DepartmentAddRequest) (*v1.DepartmentAddReply, error) {
  526. return nil, status.Errorf(codes.Unimplemented, "method DepartmentAdd not implemented")
  527. }
  528. func (*UnimplementedSystemServer) DepartmentDel(ctx context.Context, req *v1.DepartmentDelRequest) (*v1.DepartmentDelReply, error) {
  529. return nil, status.Errorf(codes.Unimplemented, "method DepartmentDel not implemented")
  530. }
  531. func (*UnimplementedSystemServer) DepartmentList(ctx context.Context, req *v1.DepartmentListRequest) (*v1.DepartmentListReply, error) {
  532. return nil, status.Errorf(codes.Unimplemented, "method DepartmentList not implemented")
  533. }
  534. func (*UnimplementedSystemServer) DepartmentUpdate(ctx context.Context, req *v1.DepartmentUpdateRequest) (*v1.DepartmentUpdateReply, error) {
  535. return nil, status.Errorf(codes.Unimplemented, "method DepartmentUpdate not implemented")
  536. }
  537. func (*UnimplementedSystemServer) GardenInfos(ctx context.Context, req *v1.GardenInfosRequest) (*v1.GardenInfosReply, error) {
  538. return nil, status.Errorf(codes.Unimplemented, "method GardenInfos not implemented")
  539. }
  540. func (*UnimplementedSystemServer) GardenList(ctx context.Context, req *v1.GardenListRequest) (*v1.GardenListReply, error) {
  541. return nil, status.Errorf(codes.Unimplemented, "method GardenList not implemented")
  542. }
  543. func (*UnimplementedSystemServer) GardenAdd(ctx context.Context, req *v1.GardenAddRequest) (*v1.GardenAddReply, error) {
  544. return nil, status.Errorf(codes.Unimplemented, "method GardenAdd not implemented")
  545. }
  546. func (*UnimplementedSystemServer) GardenUpdate(ctx context.Context, req *v1.GardenUpdateRequest) (*v1.GardenUpdateReply, error) {
  547. return nil, status.Errorf(codes.Unimplemented, "method GardenUpdate not implemented")
  548. }
  549. func (*UnimplementedSystemServer) GardenDel(ctx context.Context, req *v1.GardenDelRequest) (*v1.GardenDelReply, error) {
  550. return nil, status.Errorf(codes.Unimplemented, "method GardenDel not implemented")
  551. }
  552. func (*UnimplementedSystemServer) GardenKeyInfoChange(ctx context.Context, req *v1.GardenKeyInfoChangeRequest) (*v1.GardenKeyInfoChangeReply, error) {
  553. return nil, status.Errorf(codes.Unimplemented, "method GardenKeyInfoChange not implemented")
  554. }
  555. func (*UnimplementedSystemServer) GardenKeyInfoChangeList(ctx context.Context, req *v1.GardenKeyInfoChangeListRequest) (*v1.GardenKeyInfoChangeListReply, error) {
  556. return nil, status.Errorf(codes.Unimplemented, "method GardenKeyInfoChangeList not implemented")
  557. }
  558. func (*UnimplementedSystemServer) GardenKeyInfoApprove(ctx context.Context, req *v1.GardenKeyInfoApproveRequest) (*v1.GardenKeyInfoApproveReply, error) {
  559. return nil, status.Errorf(codes.Unimplemented, "method GardenKeyInfoApprove not implemented")
  560. }
  561. func (*UnimplementedSystemServer) ApplicationOrderAdd(ctx context.Context, req *v1.ApplicationOrderAddRequest) (*v1.ApplicationOrderAddReply, error) {
  562. return nil, status.Errorf(codes.Unimplemented, "method ApplicationOrderAdd not implemented")
  563. }
  564. func (*UnimplementedSystemServer) GardenApplicationList(ctx context.Context, req *v1.GardenApplicationListRequest) (*v1.GardenApplicationListReply, error) {
  565. return nil, status.Errorf(codes.Unimplemented, "method GardenApplicationList not implemented")
  566. }
  567. func (*UnimplementedSystemServer) MsgPackageOrderAdd(ctx context.Context, req *v1.MsgPackageOrderAddRequest) (*v1.MsgPackageOrderAddReply, error) {
  568. return nil, status.Errorf(codes.Unimplemented, "method MsgPackageOrderAdd not implemented")
  569. }
  570. func (*UnimplementedSystemServer) MsgPackageOrderList(ctx context.Context, req *v1.MsgPackageOrderListRequest) (*v1.MsgPackageOrderListReply, error) {
  571. return nil, status.Errorf(codes.Unimplemented, "method MsgPackageOrderList not implemented")
  572. }
  573. func RegisterSystemServer(s *grpc.Server, srv SystemServer) {
  574. s.RegisterService(&_System_serviceDesc, srv)
  575. }
  576. func _System_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  577. in := new(v1.LoginRequest)
  578. if err := dec(in); err != nil {
  579. return nil, err
  580. }
  581. if interceptor == nil {
  582. return srv.(SystemServer).Login(ctx, in)
  583. }
  584. info := &grpc.UnaryServerInfo{
  585. Server: srv,
  586. FullMethod: "/pb.service.System/Login",
  587. }
  588. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  589. return srv.(SystemServer).Login(ctx, req.(*v1.LoginRequest))
  590. }
  591. return interceptor(ctx, in, info, handler)
  592. }
  593. func _System_PermissionReget_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  594. in := new(v1.PermissionRegetRequest)
  595. if err := dec(in); err != nil {
  596. return nil, err
  597. }
  598. if interceptor == nil {
  599. return srv.(SystemServer).PermissionReget(ctx, in)
  600. }
  601. info := &grpc.UnaryServerInfo{
  602. Server: srv,
  603. FullMethod: "/pb.service.System/PermissionReget",
  604. }
  605. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  606. return srv.(SystemServer).PermissionReget(ctx, req.(*v1.PermissionRegetRequest))
  607. }
  608. return interceptor(ctx, in, info, handler)
  609. }
  610. func _System_LoginByPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  611. in := new(v1.LoginByPhoneRequest)
  612. if err := dec(in); err != nil {
  613. return nil, err
  614. }
  615. if interceptor == nil {
  616. return srv.(SystemServer).LoginByPhone(ctx, in)
  617. }
  618. info := &grpc.UnaryServerInfo{
  619. Server: srv,
  620. FullMethod: "/pb.service.System/LoginByPhone",
  621. }
  622. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  623. return srv.(SystemServer).LoginByPhone(ctx, req.(*v1.LoginByPhoneRequest))
  624. }
  625. return interceptor(ctx, in, info, handler)
  626. }
  627. func _System_CheckPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  628. in := new(v1.CheckPhoneRequest)
  629. if err := dec(in); err != nil {
  630. return nil, err
  631. }
  632. if interceptor == nil {
  633. return srv.(SystemServer).CheckPhone(ctx, in)
  634. }
  635. info := &grpc.UnaryServerInfo{
  636. Server: srv,
  637. FullMethod: "/pb.service.System/CheckPhone",
  638. }
  639. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  640. return srv.(SystemServer).CheckPhone(ctx, req.(*v1.CheckPhoneRequest))
  641. }
  642. return interceptor(ctx, in, info, handler)
  643. }
  644. func _System_UserAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  645. in := new(v1.UserAddRequest)
  646. if err := dec(in); err != nil {
  647. return nil, err
  648. }
  649. if interceptor == nil {
  650. return srv.(SystemServer).UserAdd(ctx, in)
  651. }
  652. info := &grpc.UnaryServerInfo{
  653. Server: srv,
  654. FullMethod: "/pb.service.System/UserAdd",
  655. }
  656. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  657. return srv.(SystemServer).UserAdd(ctx, req.(*v1.UserAddRequest))
  658. }
  659. return interceptor(ctx, in, info, handler)
  660. }
  661. func _System_UserUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  662. in := new(v1.UserUpdateRequest)
  663. if err := dec(in); err != nil {
  664. return nil, err
  665. }
  666. if interceptor == nil {
  667. return srv.(SystemServer).UserUpdate(ctx, in)
  668. }
  669. info := &grpc.UnaryServerInfo{
  670. Server: srv,
  671. FullMethod: "/pb.service.System/UserUpdate",
  672. }
  673. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  674. return srv.(SystemServer).UserUpdate(ctx, req.(*v1.UserUpdateRequest))
  675. }
  676. return interceptor(ctx, in, info, handler)
  677. }
  678. func _System_UserDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  679. in := new(v1.UserDelRequest)
  680. if err := dec(in); err != nil {
  681. return nil, err
  682. }
  683. if interceptor == nil {
  684. return srv.(SystemServer).UserDel(ctx, in)
  685. }
  686. info := &grpc.UnaryServerInfo{
  687. Server: srv,
  688. FullMethod: "/pb.service.System/UserDel",
  689. }
  690. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  691. return srv.(SystemServer).UserDel(ctx, req.(*v1.UserDelRequest))
  692. }
  693. return interceptor(ctx, in, info, handler)
  694. }
  695. func _System_UserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  696. in := new(v1.UserListRequest)
  697. if err := dec(in); err != nil {
  698. return nil, err
  699. }
  700. if interceptor == nil {
  701. return srv.(SystemServer).UserList(ctx, in)
  702. }
  703. info := &grpc.UnaryServerInfo{
  704. Server: srv,
  705. FullMethod: "/pb.service.System/UserList",
  706. }
  707. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  708. return srv.(SystemServer).UserList(ctx, req.(*v1.UserListRequest))
  709. }
  710. return interceptor(ctx, in, info, handler)
  711. }
  712. func _System_UserGardenChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  713. in := new(v1.UserGardenChangeRequest)
  714. if err := dec(in); err != nil {
  715. return nil, err
  716. }
  717. if interceptor == nil {
  718. return srv.(SystemServer).UserGardenChange(ctx, in)
  719. }
  720. info := &grpc.UnaryServerInfo{
  721. Server: srv,
  722. FullMethod: "/pb.service.System/UserGardenChange",
  723. }
  724. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  725. return srv.(SystemServer).UserGardenChange(ctx, req.(*v1.UserGardenChangeRequest))
  726. }
  727. return interceptor(ctx, in, info, handler)
  728. }
  729. func _System_GroupAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  730. in := new(v1.GroupAddRequest)
  731. if err := dec(in); err != nil {
  732. return nil, err
  733. }
  734. if interceptor == nil {
  735. return srv.(SystemServer).GroupAdd(ctx, in)
  736. }
  737. info := &grpc.UnaryServerInfo{
  738. Server: srv,
  739. FullMethod: "/pb.service.System/GroupAdd",
  740. }
  741. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  742. return srv.(SystemServer).GroupAdd(ctx, req.(*v1.GroupAddRequest))
  743. }
  744. return interceptor(ctx, in, info, handler)
  745. }
  746. func _System_GroupDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  747. in := new(v1.GroupDelRequest)
  748. if err := dec(in); err != nil {
  749. return nil, err
  750. }
  751. if interceptor == nil {
  752. return srv.(SystemServer).GroupDel(ctx, in)
  753. }
  754. info := &grpc.UnaryServerInfo{
  755. Server: srv,
  756. FullMethod: "/pb.service.System/GroupDel",
  757. }
  758. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  759. return srv.(SystemServer).GroupDel(ctx, req.(*v1.GroupDelRequest))
  760. }
  761. return interceptor(ctx, in, info, handler)
  762. }
  763. func _System_GroupList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  764. in := new(v1.GroupListRequest)
  765. if err := dec(in); err != nil {
  766. return nil, err
  767. }
  768. if interceptor == nil {
  769. return srv.(SystemServer).GroupList(ctx, in)
  770. }
  771. info := &grpc.UnaryServerInfo{
  772. Server: srv,
  773. FullMethod: "/pb.service.System/GroupList",
  774. }
  775. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  776. return srv.(SystemServer).GroupList(ctx, req.(*v1.GroupListRequest))
  777. }
  778. return interceptor(ctx, in, info, handler)
  779. }
  780. func _System_GroupInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  781. in := new(v1.GroupInfoRequest)
  782. if err := dec(in); err != nil {
  783. return nil, err
  784. }
  785. if interceptor == nil {
  786. return srv.(SystemServer).GroupInfo(ctx, in)
  787. }
  788. info := &grpc.UnaryServerInfo{
  789. Server: srv,
  790. FullMethod: "/pb.service.System/GroupInfo",
  791. }
  792. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  793. return srv.(SystemServer).GroupInfo(ctx, req.(*v1.GroupInfoRequest))
  794. }
  795. return interceptor(ctx, in, info, handler)
  796. }
  797. func _System_GroupUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  798. in := new(v1.GroupUpdateRequest)
  799. if err := dec(in); err != nil {
  800. return nil, err
  801. }
  802. if interceptor == nil {
  803. return srv.(SystemServer).GroupUpdate(ctx, in)
  804. }
  805. info := &grpc.UnaryServerInfo{
  806. Server: srv,
  807. FullMethod: "/pb.service.System/GroupUpdate",
  808. }
  809. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  810. return srv.(SystemServer).GroupUpdate(ctx, req.(*v1.GroupUpdateRequest))
  811. }
  812. return interceptor(ctx, in, info, handler)
  813. }
  814. func _System_SuperGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  815. in := new(v1.SuperGroupRequest)
  816. if err := dec(in); err != nil {
  817. return nil, err
  818. }
  819. if interceptor == nil {
  820. return srv.(SystemServer).SuperGroup(ctx, in)
  821. }
  822. info := &grpc.UnaryServerInfo{
  823. Server: srv,
  824. FullMethod: "/pb.service.System/SuperGroup",
  825. }
  826. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  827. return srv.(SystemServer).SuperGroup(ctx, req.(*v1.SuperGroupRequest))
  828. }
  829. return interceptor(ctx, in, info, handler)
  830. }
  831. func _System_ResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  832. in := new(v1.ResetPasswordRequest)
  833. if err := dec(in); err != nil {
  834. return nil, err
  835. }
  836. if interceptor == nil {
  837. return srv.(SystemServer).ResetPassword(ctx, in)
  838. }
  839. info := &grpc.UnaryServerInfo{
  840. Server: srv,
  841. FullMethod: "/pb.service.System/ResetPassword",
  842. }
  843. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  844. return srv.(SystemServer).ResetPassword(ctx, req.(*v1.ResetPasswordRequest))
  845. }
  846. return interceptor(ctx, in, info, handler)
  847. }
  848. func _System_ChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  849. in := new(v1.ChangePasswordRequest)
  850. if err := dec(in); err != nil {
  851. return nil, err
  852. }
  853. if interceptor == nil {
  854. return srv.(SystemServer).ChangePassword(ctx, in)
  855. }
  856. info := &grpc.UnaryServerInfo{
  857. Server: srv,
  858. FullMethod: "/pb.service.System/ChangePassword",
  859. }
  860. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  861. return srv.(SystemServer).ChangePassword(ctx, req.(*v1.ChangePasswordRequest))
  862. }
  863. return interceptor(ctx, in, info, handler)
  864. }
  865. func _System_CompanyEnterGarden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  866. in := new(v1.CompanyEnterGardenRequest)
  867. if err := dec(in); err != nil {
  868. return nil, err
  869. }
  870. if interceptor == nil {
  871. return srv.(SystemServer).CompanyEnterGarden(ctx, in)
  872. }
  873. info := &grpc.UnaryServerInfo{
  874. Server: srv,
  875. FullMethod: "/pb.service.System/CompanyEnterGarden",
  876. }
  877. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  878. return srv.(SystemServer).CompanyEnterGarden(ctx, req.(*v1.CompanyEnterGardenRequest))
  879. }
  880. return interceptor(ctx, in, info, handler)
  881. }
  882. func _System_GardenPermissionList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  883. in := new(v1.GardenPermissionListRequest)
  884. if err := dec(in); err != nil {
  885. return nil, err
  886. }
  887. if interceptor == nil {
  888. return srv.(SystemServer).GardenPermissionList(ctx, in)
  889. }
  890. info := &grpc.UnaryServerInfo{
  891. Server: srv,
  892. FullMethod: "/pb.service.System/GardenPermissionList",
  893. }
  894. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  895. return srv.(SystemServer).GardenPermissionList(ctx, req.(*v1.GardenPermissionListRequest))
  896. }
  897. return interceptor(ctx, in, info, handler)
  898. }
  899. func _System_DepartmentAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  900. in := new(v1.DepartmentAddRequest)
  901. if err := dec(in); err != nil {
  902. return nil, err
  903. }
  904. if interceptor == nil {
  905. return srv.(SystemServer).DepartmentAdd(ctx, in)
  906. }
  907. info := &grpc.UnaryServerInfo{
  908. Server: srv,
  909. FullMethod: "/pb.service.System/DepartmentAdd",
  910. }
  911. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  912. return srv.(SystemServer).DepartmentAdd(ctx, req.(*v1.DepartmentAddRequest))
  913. }
  914. return interceptor(ctx, in, info, handler)
  915. }
  916. func _System_DepartmentDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  917. in := new(v1.DepartmentDelRequest)
  918. if err := dec(in); err != nil {
  919. return nil, err
  920. }
  921. if interceptor == nil {
  922. return srv.(SystemServer).DepartmentDel(ctx, in)
  923. }
  924. info := &grpc.UnaryServerInfo{
  925. Server: srv,
  926. FullMethod: "/pb.service.System/DepartmentDel",
  927. }
  928. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  929. return srv.(SystemServer).DepartmentDel(ctx, req.(*v1.DepartmentDelRequest))
  930. }
  931. return interceptor(ctx, in, info, handler)
  932. }
  933. func _System_DepartmentList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  934. in := new(v1.DepartmentListRequest)
  935. if err := dec(in); err != nil {
  936. return nil, err
  937. }
  938. if interceptor == nil {
  939. return srv.(SystemServer).DepartmentList(ctx, in)
  940. }
  941. info := &grpc.UnaryServerInfo{
  942. Server: srv,
  943. FullMethod: "/pb.service.System/DepartmentList",
  944. }
  945. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  946. return srv.(SystemServer).DepartmentList(ctx, req.(*v1.DepartmentListRequest))
  947. }
  948. return interceptor(ctx, in, info, handler)
  949. }
  950. func _System_DepartmentUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  951. in := new(v1.DepartmentUpdateRequest)
  952. if err := dec(in); err != nil {
  953. return nil, err
  954. }
  955. if interceptor == nil {
  956. return srv.(SystemServer).DepartmentUpdate(ctx, in)
  957. }
  958. info := &grpc.UnaryServerInfo{
  959. Server: srv,
  960. FullMethod: "/pb.service.System/DepartmentUpdate",
  961. }
  962. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  963. return srv.(SystemServer).DepartmentUpdate(ctx, req.(*v1.DepartmentUpdateRequest))
  964. }
  965. return interceptor(ctx, in, info, handler)
  966. }
  967. func _System_GardenInfos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  968. in := new(v1.GardenInfosRequest)
  969. if err := dec(in); err != nil {
  970. return nil, err
  971. }
  972. if interceptor == nil {
  973. return srv.(SystemServer).GardenInfos(ctx, in)
  974. }
  975. info := &grpc.UnaryServerInfo{
  976. Server: srv,
  977. FullMethod: "/pb.service.System/GardenInfos",
  978. }
  979. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  980. return srv.(SystemServer).GardenInfos(ctx, req.(*v1.GardenInfosRequest))
  981. }
  982. return interceptor(ctx, in, info, handler)
  983. }
  984. func _System_GardenList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  985. in := new(v1.GardenListRequest)
  986. if err := dec(in); err != nil {
  987. return nil, err
  988. }
  989. if interceptor == nil {
  990. return srv.(SystemServer).GardenList(ctx, in)
  991. }
  992. info := &grpc.UnaryServerInfo{
  993. Server: srv,
  994. FullMethod: "/pb.service.System/GardenList",
  995. }
  996. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  997. return srv.(SystemServer).GardenList(ctx, req.(*v1.GardenListRequest))
  998. }
  999. return interceptor(ctx, in, info, handler)
  1000. }
  1001. func _System_GardenAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1002. in := new(v1.GardenAddRequest)
  1003. if err := dec(in); err != nil {
  1004. return nil, err
  1005. }
  1006. if interceptor == nil {
  1007. return srv.(SystemServer).GardenAdd(ctx, in)
  1008. }
  1009. info := &grpc.UnaryServerInfo{
  1010. Server: srv,
  1011. FullMethod: "/pb.service.System/GardenAdd",
  1012. }
  1013. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1014. return srv.(SystemServer).GardenAdd(ctx, req.(*v1.GardenAddRequest))
  1015. }
  1016. return interceptor(ctx, in, info, handler)
  1017. }
  1018. func _System_GardenUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1019. in := new(v1.GardenUpdateRequest)
  1020. if err := dec(in); err != nil {
  1021. return nil, err
  1022. }
  1023. if interceptor == nil {
  1024. return srv.(SystemServer).GardenUpdate(ctx, in)
  1025. }
  1026. info := &grpc.UnaryServerInfo{
  1027. Server: srv,
  1028. FullMethod: "/pb.service.System/GardenUpdate",
  1029. }
  1030. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1031. return srv.(SystemServer).GardenUpdate(ctx, req.(*v1.GardenUpdateRequest))
  1032. }
  1033. return interceptor(ctx, in, info, handler)
  1034. }
  1035. func _System_GardenDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1036. in := new(v1.GardenDelRequest)
  1037. if err := dec(in); err != nil {
  1038. return nil, err
  1039. }
  1040. if interceptor == nil {
  1041. return srv.(SystemServer).GardenDel(ctx, in)
  1042. }
  1043. info := &grpc.UnaryServerInfo{
  1044. Server: srv,
  1045. FullMethod: "/pb.service.System/GardenDel",
  1046. }
  1047. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1048. return srv.(SystemServer).GardenDel(ctx, req.(*v1.GardenDelRequest))
  1049. }
  1050. return interceptor(ctx, in, info, handler)
  1051. }
  1052. func _System_GardenKeyInfoChange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1053. in := new(v1.GardenKeyInfoChangeRequest)
  1054. if err := dec(in); err != nil {
  1055. return nil, err
  1056. }
  1057. if interceptor == nil {
  1058. return srv.(SystemServer).GardenKeyInfoChange(ctx, in)
  1059. }
  1060. info := &grpc.UnaryServerInfo{
  1061. Server: srv,
  1062. FullMethod: "/pb.service.System/GardenKeyInfoChange",
  1063. }
  1064. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1065. return srv.(SystemServer).GardenKeyInfoChange(ctx, req.(*v1.GardenKeyInfoChangeRequest))
  1066. }
  1067. return interceptor(ctx, in, info, handler)
  1068. }
  1069. func _System_GardenKeyInfoChangeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1070. in := new(v1.GardenKeyInfoChangeListRequest)
  1071. if err := dec(in); err != nil {
  1072. return nil, err
  1073. }
  1074. if interceptor == nil {
  1075. return srv.(SystemServer).GardenKeyInfoChangeList(ctx, in)
  1076. }
  1077. info := &grpc.UnaryServerInfo{
  1078. Server: srv,
  1079. FullMethod: "/pb.service.System/GardenKeyInfoChangeList",
  1080. }
  1081. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1082. return srv.(SystemServer).GardenKeyInfoChangeList(ctx, req.(*v1.GardenKeyInfoChangeListRequest))
  1083. }
  1084. return interceptor(ctx, in, info, handler)
  1085. }
  1086. func _System_GardenKeyInfoApprove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1087. in := new(v1.GardenKeyInfoApproveRequest)
  1088. if err := dec(in); err != nil {
  1089. return nil, err
  1090. }
  1091. if interceptor == nil {
  1092. return srv.(SystemServer).GardenKeyInfoApprove(ctx, in)
  1093. }
  1094. info := &grpc.UnaryServerInfo{
  1095. Server: srv,
  1096. FullMethod: "/pb.service.System/GardenKeyInfoApprove",
  1097. }
  1098. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1099. return srv.(SystemServer).GardenKeyInfoApprove(ctx, req.(*v1.GardenKeyInfoApproveRequest))
  1100. }
  1101. return interceptor(ctx, in, info, handler)
  1102. }
  1103. func _System_ApplicationOrderAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1104. in := new(v1.ApplicationOrderAddRequest)
  1105. if err := dec(in); err != nil {
  1106. return nil, err
  1107. }
  1108. if interceptor == nil {
  1109. return srv.(SystemServer).ApplicationOrderAdd(ctx, in)
  1110. }
  1111. info := &grpc.UnaryServerInfo{
  1112. Server: srv,
  1113. FullMethod: "/pb.service.System/ApplicationOrderAdd",
  1114. }
  1115. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1116. return srv.(SystemServer).ApplicationOrderAdd(ctx, req.(*v1.ApplicationOrderAddRequest))
  1117. }
  1118. return interceptor(ctx, in, info, handler)
  1119. }
  1120. func _System_GardenApplicationList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1121. in := new(v1.GardenApplicationListRequest)
  1122. if err := dec(in); err != nil {
  1123. return nil, err
  1124. }
  1125. if interceptor == nil {
  1126. return srv.(SystemServer).GardenApplicationList(ctx, in)
  1127. }
  1128. info := &grpc.UnaryServerInfo{
  1129. Server: srv,
  1130. FullMethod: "/pb.service.System/GardenApplicationList",
  1131. }
  1132. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1133. return srv.(SystemServer).GardenApplicationList(ctx, req.(*v1.GardenApplicationListRequest))
  1134. }
  1135. return interceptor(ctx, in, info, handler)
  1136. }
  1137. func _System_MsgPackageOrderAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1138. in := new(v1.MsgPackageOrderAddRequest)
  1139. if err := dec(in); err != nil {
  1140. return nil, err
  1141. }
  1142. if interceptor == nil {
  1143. return srv.(SystemServer).MsgPackageOrderAdd(ctx, in)
  1144. }
  1145. info := &grpc.UnaryServerInfo{
  1146. Server: srv,
  1147. FullMethod: "/pb.service.System/MsgPackageOrderAdd",
  1148. }
  1149. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1150. return srv.(SystemServer).MsgPackageOrderAdd(ctx, req.(*v1.MsgPackageOrderAddRequest))
  1151. }
  1152. return interceptor(ctx, in, info, handler)
  1153. }
  1154. func _System_MsgPackageOrderList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1155. in := new(v1.MsgPackageOrderListRequest)
  1156. if err := dec(in); err != nil {
  1157. return nil, err
  1158. }
  1159. if interceptor == nil {
  1160. return srv.(SystemServer).MsgPackageOrderList(ctx, in)
  1161. }
  1162. info := &grpc.UnaryServerInfo{
  1163. Server: srv,
  1164. FullMethod: "/pb.service.System/MsgPackageOrderList",
  1165. }
  1166. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1167. return srv.(SystemServer).MsgPackageOrderList(ctx, req.(*v1.MsgPackageOrderListRequest))
  1168. }
  1169. return interceptor(ctx, in, info, handler)
  1170. }
  1171. var _System_serviceDesc = grpc.ServiceDesc{
  1172. ServiceName: "pb.service.System",
  1173. HandlerType: (*SystemServer)(nil),
  1174. Methods: []grpc.MethodDesc{
  1175. {
  1176. MethodName: "Login",
  1177. Handler: _System_Login_Handler,
  1178. },
  1179. {
  1180. MethodName: "PermissionReget",
  1181. Handler: _System_PermissionReget_Handler,
  1182. },
  1183. {
  1184. MethodName: "LoginByPhone",
  1185. Handler: _System_LoginByPhone_Handler,
  1186. },
  1187. {
  1188. MethodName: "CheckPhone",
  1189. Handler: _System_CheckPhone_Handler,
  1190. },
  1191. {
  1192. MethodName: "UserAdd",
  1193. Handler: _System_UserAdd_Handler,
  1194. },
  1195. {
  1196. MethodName: "UserUpdate",
  1197. Handler: _System_UserUpdate_Handler,
  1198. },
  1199. {
  1200. MethodName: "UserDel",
  1201. Handler: _System_UserDel_Handler,
  1202. },
  1203. {
  1204. MethodName: "UserList",
  1205. Handler: _System_UserList_Handler,
  1206. },
  1207. {
  1208. MethodName: "UserGardenChange",
  1209. Handler: _System_UserGardenChange_Handler,
  1210. },
  1211. {
  1212. MethodName: "GroupAdd",
  1213. Handler: _System_GroupAdd_Handler,
  1214. },
  1215. {
  1216. MethodName: "GroupDel",
  1217. Handler: _System_GroupDel_Handler,
  1218. },
  1219. {
  1220. MethodName: "GroupList",
  1221. Handler: _System_GroupList_Handler,
  1222. },
  1223. {
  1224. MethodName: "GroupInfo",
  1225. Handler: _System_GroupInfo_Handler,
  1226. },
  1227. {
  1228. MethodName: "GroupUpdate",
  1229. Handler: _System_GroupUpdate_Handler,
  1230. },
  1231. {
  1232. MethodName: "SuperGroup",
  1233. Handler: _System_SuperGroup_Handler,
  1234. },
  1235. {
  1236. MethodName: "ResetPassword",
  1237. Handler: _System_ResetPassword_Handler,
  1238. },
  1239. {
  1240. MethodName: "ChangePassword",
  1241. Handler: _System_ChangePassword_Handler,
  1242. },
  1243. {
  1244. MethodName: "CompanyEnterGarden",
  1245. Handler: _System_CompanyEnterGarden_Handler,
  1246. },
  1247. {
  1248. MethodName: "GardenPermissionList",
  1249. Handler: _System_GardenPermissionList_Handler,
  1250. },
  1251. {
  1252. MethodName: "DepartmentAdd",
  1253. Handler: _System_DepartmentAdd_Handler,
  1254. },
  1255. {
  1256. MethodName: "DepartmentDel",
  1257. Handler: _System_DepartmentDel_Handler,
  1258. },
  1259. {
  1260. MethodName: "DepartmentList",
  1261. Handler: _System_DepartmentList_Handler,
  1262. },
  1263. {
  1264. MethodName: "DepartmentUpdate",
  1265. Handler: _System_DepartmentUpdate_Handler,
  1266. },
  1267. {
  1268. MethodName: "GardenInfos",
  1269. Handler: _System_GardenInfos_Handler,
  1270. },
  1271. {
  1272. MethodName: "GardenList",
  1273. Handler: _System_GardenList_Handler,
  1274. },
  1275. {
  1276. MethodName: "GardenAdd",
  1277. Handler: _System_GardenAdd_Handler,
  1278. },
  1279. {
  1280. MethodName: "GardenUpdate",
  1281. Handler: _System_GardenUpdate_Handler,
  1282. },
  1283. {
  1284. MethodName: "GardenDel",
  1285. Handler: _System_GardenDel_Handler,
  1286. },
  1287. {
  1288. MethodName: "GardenKeyInfoChange",
  1289. Handler: _System_GardenKeyInfoChange_Handler,
  1290. },
  1291. {
  1292. MethodName: "GardenKeyInfoChangeList",
  1293. Handler: _System_GardenKeyInfoChangeList_Handler,
  1294. },
  1295. {
  1296. MethodName: "GardenKeyInfoApprove",
  1297. Handler: _System_GardenKeyInfoApprove_Handler,
  1298. },
  1299. {
  1300. MethodName: "ApplicationOrderAdd",
  1301. Handler: _System_ApplicationOrderAdd_Handler,
  1302. },
  1303. {
  1304. MethodName: "GardenApplicationList",
  1305. Handler: _System_GardenApplicationList_Handler,
  1306. },
  1307. {
  1308. MethodName: "MsgPackageOrderAdd",
  1309. Handler: _System_MsgPackageOrderAdd_Handler,
  1310. },
  1311. {
  1312. MethodName: "MsgPackageOrderList",
  1313. Handler: _System_MsgPackageOrderList_Handler,
  1314. },
  1315. },
  1316. Streams: []grpc.StreamDesc{},
  1317. Metadata: "system_service.proto",
  1318. }