system_service.pb.go 48 KB

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