company_service.pb.go 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: company_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-company-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("company_service.proto", fileDescriptor_cfe012e92534f5dd)
  26. }
  27. var fileDescriptor_cfe012e92534f5dd = []byte{
  28. // 545 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x95, 0xcf, 0x6f, 0xd3, 0x30,
  30. 0x14, 0xc7, 0xb9, 0xf0, 0x43, 0x0f, 0x18, 0x9b, 0xc7, 0x36, 0x9a, 0xae, 0x4c, 0x03, 0x55, 0x9c,
  31. 0xd6, 0xa9, 0x70, 0xe3, 0x44, 0x97, 0x69, 0x68, 0x52, 0x11, 0x55, 0x51, 0x85, 0x04, 0x87, 0xc9,
  32. 0x4d, 0x1e, 0x69, 0x44, 0x17, 0x1b, 0xc7, 0xeb, 0xc8, 0x95, 0xbf, 0x1c, 0x35, 0xb6, 0xf3, 0xc3,
  33. 0x8d, 0xd3, 0x63, 0xbf, 0x9f, 0xe7, 0xcf, 0x73, 0x9d, 0x17, 0x07, 0x0e, 0x02, 0x76, 0xcb, 0x69,
  34. 0x92, 0xdd, 0xa4, 0x28, 0x56, 0x71, 0x80, 0x03, 0x2e, 0x98, 0x64, 0x04, 0xf8, 0x7c, 0xa0, 0x13,
  35. 0x6f, 0x77, 0x35, 0x3c, 0xd7, 0x55, 0x8a, 0xbe, 0xff, 0xb7, 0x03, 0x8f, 0x7d, 0x95, 0x90, 0x21,
  36. 0x3c, 0x1c, 0xb3, 0x28, 0x4e, 0xc8, 0xfe, 0x80, 0xcf, 0x6f, 0x56, 0xc3, 0x41, 0xfe, 0x6b, 0x8a,
  37. 0x7f, 0xee, 0x30, 0x95, 0xde, 0x5e, 0x3d, 0xe4, 0xcb, 0xec, 0xcd, 0x03, 0xf2, 0x11, 0x9e, 0x4c,
  38. 0x31, 0x8a, 0x53, 0x89, 0x82, 0x1c, 0xea, 0x02, 0x13, 0x98, 0x85, 0x2f, 0x37, 0x72, 0xb5, 0xf6,
  39. 0x0a, 0x9e, 0xe5, 0xae, 0x8b, 0x6c, 0xb2, 0x60, 0x09, 0x12, 0xaf, 0xda, 0x40, 0x87, 0xc6, 0xf1,
  40. 0xaa, 0x91, 0x29, 0xcf, 0x27, 0x00, 0x7f, 0x81, 0xc1, 0x6f, 0x65, 0x31, 0x95, 0x65, 0x64, 0x1c,
  41. 0x87, 0x0d, 0x44, 0x19, 0xae, 0xe1, 0xf9, 0x14, 0x53, 0x94, 0x13, 0x9a, 0xa6, 0xf7, 0x4c, 0x84,
  42. 0xa4, 0x5b, 0x6c, 0xb9, 0x92, 0x1a, 0x4f, 0xa7, 0x19, 0x2a, 0xd5, 0x18, 0x76, 0xfc, 0x05, 0x4d,
  43. 0x22, 0x2c, 0x5c, 0xc7, 0x45, 0xdb, 0x6a, 0x6c, 0x64, 0x9e, 0x83, 0x96, 0x36, 0xf5, 0x70, 0x46,
  44. 0x9c, 0x0b, 0xb6, 0xc2, 0xd2, 0x56, 0x8b, 0x37, 0x6c, 0x16, 0x55, 0x36, 0x1f, 0x9e, 0x6a, 0x30,
  45. 0x8e, 0x53, 0x49, 0x3a, 0xf5, 0xe2, 0x75, 0x66, 0x3c, 0x47, 0x4d, 0xc8, 0x96, 0x5c, 0x27, 0xbf,
  46. 0x98, 0x2d, 0x59, 0x67, 0x0e, 0x89, 0x42, 0xc5, 0x81, 0xeb, 0x74, 0xc6, 0x43, 0x2a, 0xb1, 0x38,
  47. 0xf0, 0x5a, 0x6a, 0x1f, 0xb8, 0x05, 0x95, 0x6a, 0x0a, 0xbb, 0xe6, 0xdf, 0x86, 0xe1, 0x67, 0x2a,
  48. 0x42, 0x4c, 0xc8, 0x6b, 0xeb, 0x18, 0x0c, 0x30, 0xc2, 0x63, 0x27, 0x57, 0xce, 0x9f, 0xb0, 0xaf,
  49. 0x91, 0x4f, 0x93, 0x52, 0x7b, 0x5a, 0x5f, 0x56, 0x65, 0xc6, 0x7c, 0xd2, 0x56, 0xa2, 0xe4, 0x11,
  50. 0x1c, 0x19, 0x9a, 0x3f, 0xf3, 0x2b, 0x81, 0xa8, 0x1b, 0xf4, 0xad, 0xd5, 0x16, 0x37, 0x4d, 0xde,
  51. 0x6e, 0x2b, 0x53, 0x8d, 0xbe, 0xc2, 0x0b, 0x5d, 0x31, 0xa1, 0xd9, 0x17, 0x16, 0xe2, 0x92, 0xf4,
  52. 0xea, 0x2b, 0x4d, 0x6e, 0xc4, 0x5d, 0x17, 0x56, 0x42, 0x0a, 0x07, 0x9a, 0x7c, 0xff, 0x3b, 0x0a,
  53. 0x02, 0x76, 0x97, 0xc8, 0x11, 0xe7, 0xcb, 0x8c, 0x58, 0x1b, 0xaa, 0x53, 0x23, 0x3f, 0x6d, 0x2f,
  54. 0x52, 0x2d, 0x6e, 0xa1, 0xd3, 0xc8, 0xf3, 0x81, 0x7d, 0xd7, 0x66, 0xa8, 0x8e, 0x6f, 0x7f, 0x7b,
  55. 0x61, 0x7b, 0xbb, 0x7c, 0xb4, 0x5b, 0xdb, 0x55, 0x07, 0xbd, 0xbf, 0xbd, 0xd0, 0x9e, 0xd5, 0x6f,
  56. 0x92, 0xca, 0x38, 0x95, 0x71, 0x60, 0xcf, 0x6a, 0x01, 0x1c, 0xb3, 0x5a, 0xe1, 0xf6, 0x15, 0x31,
  57. 0x4b, 0x51, 0x8c, 0xc2, 0xd0, 0xbe, 0x22, 0x74, 0xec, 0xb8, 0x22, 0x0a, 0xaa, 0x6c, 0x33, 0xd8,
  58. 0xab, 0x00, 0xfd, 0x72, 0x9e, 0x6c, 0x2e, 0xa9, 0xbf, 0xa0, 0x3d, 0x77, 0x41, 0xd3, 0x26, 0x2f,
  59. 0x71, 0xd9, 0xb4, 0xc9, 0xcb, 0x72, 0x10, 0x3d, 0x07, 0xb5, 0x07, 0x7b, 0x0d, 0xf2, 0xd1, 0x68,
  60. 0xd8, 0x41, 0x75, 0x20, 0xba, 0x2e, 0x9c, 0x0b, 0x2f, 0x7a, 0x3f, 0xba, 0x5c, 0x30, 0x8e, 0x42,
  61. 0x66, 0x67, 0xfa, 0xf3, 0x78, 0x16, 0x51, 0x89, 0xf7, 0x34, 0x3b, 0xe7, 0xf3, 0xf9, 0xa3, 0xfc,
  62. 0x53, 0xf9, 0xe1, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x38, 0xc3, 0xb7, 0x61, 0x07, 0x00,
  63. 0x00,
  64. }
  65. // Reference imports to suppress errors if they are not otherwise used.
  66. var _ context.Context
  67. var _ grpc.ClientConnInterface
  68. // This is a compile-time assertion to ensure that this generated file
  69. // is compatible with the grpc package it is being compiled against.
  70. const _ = grpc.SupportPackageIsVersion6
  71. // CompanyClient is the client API for Company service.
  72. //
  73. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  74. type CompanyClient interface {
  75. //
  76. Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error)
  77. Register(ctx context.Context, in *v1.RegisterRequest, opts ...grpc.CallOption) (*v1.RegisterReply, error)
  78. LoginByPhone(ctx context.Context, in *v1.LoginByPhoneRequest, opts ...grpc.CallOption) (*v1.LoginByPhoneReply, error)
  79. CheckPhone(ctx context.Context, in *v1.CheckPhoneRequest, opts ...grpc.CallOption) (*v1.CheckPhoneReply, error)
  80. ResetPassword(ctx context.Context, in *v1.ResetPasswordRequest, opts ...grpc.CallOption) (*v1.ResetPasswordReply, error)
  81. ChangePassword(ctx context.Context, in *v1.ChangePasswordRequest, opts ...grpc.CallOption) (*v1.ChangePasswordReply, error)
  82. CompanyApprove(ctx context.Context, in *v1.CompanyApproveRequest, opts ...grpc.CallOption) (*v1.CompanyApproveReply, error)
  83. CompanyList(ctx context.Context, in *v1.CompanyListRequest, opts ...grpc.CallOption) (*v1.CompanyListReply, error)
  84. CompanyInfo(ctx context.Context, in *v1.CompanyInfoRequest, opts ...grpc.CallOption) (*v1.CompanyInfoReply, error)
  85. CompanyUpdate(ctx context.Context, in *v1.CompanyUpdateRequest, opts ...grpc.CallOption) (*v1.CompanyUpdateReply, error)
  86. // 新增小区
  87. CompanyAddGarden(ctx context.Context, in *v1.CompanyAddGardenRequest, opts ...grpc.CallOption) (*v1.CompanyAddGardenReply, error)
  88. // 检查是否可以新增小区
  89. CompanyCanAddGarden(ctx context.Context, in *v1.CompanyCanAddGardenRequest, opts ...grpc.CallOption) (*v1.CompanyCanAddGardenReply, error)
  90. // 修改配额
  91. CompanyChangeFreeGarden(ctx context.Context, in *v1.CompanyChangeFreeGardenRequest, opts ...grpc.CallOption) (*v1.CompanyChangeFreeGardenReply, error)
  92. // 设置支付方式 仅线下/支付到公司账户/支付到软件系统提供商账户
  93. CompanyPayModel(ctx context.Context, in *v1.CompanyPayModelRequest, opts ...grpc.CallOption) (*v1.CompanyPayModelReply, error)
  94. // 微信商户申请
  95. CompanyWxAccountApply(ctx context.Context, in *v1.CompanyWxAccountApplyRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyReply, error)
  96. // 微信商户申请列表
  97. CompanyWxAccountApplyList(ctx context.Context, in *v1.CompanyWxAccountApplyListRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyListReply, error)
  98. // 微信商户申请资料信息
  99. CompanyWxAccountApplyInfo(ctx context.Context, in *v1.CompanyWxAccountApplyInfoRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyInfoReply, error)
  100. // 统计
  101. CompanyStatistic(ctx context.Context, in *v1.CompanyStatisticRequest, opts ...grpc.CallOption) (*v1.CompanyStatisticReply, error)
  102. // 公司用户
  103. CompanyUserAdd(ctx context.Context, in *v1.CompanyUserAddRequest, opts ...grpc.CallOption) (*v1.CompanyUserAddReply, error)
  104. CompanyUserUpdate(ctx context.Context, in *v1.CompanyUserUpdateRequest, opts ...grpc.CallOption) (*v1.CompanyUserUpdateReply, error)
  105. CompanyUserDel(ctx context.Context, in *v1.CompanyUserDelRequest, opts ...grpc.CallOption) (*v1.CompanyUserDelReply, error)
  106. CompanyUserList(ctx context.Context, in *v1.CompanyUserListRequest, opts ...grpc.CallOption) (*v1.CompanyUserListReply, error)
  107. }
  108. type companyClient struct {
  109. cc grpc.ClientConnInterface
  110. }
  111. func NewCompanyClient(cc grpc.ClientConnInterface) CompanyClient {
  112. return &companyClient{cc}
  113. }
  114. func (c *companyClient) Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error) {
  115. out := new(v1.LoginReply)
  116. err := c.cc.Invoke(ctx, "/pb.service.Company/Login", in, out, opts...)
  117. if err != nil {
  118. return nil, err
  119. }
  120. return out, nil
  121. }
  122. func (c *companyClient) Register(ctx context.Context, in *v1.RegisterRequest, opts ...grpc.CallOption) (*v1.RegisterReply, error) {
  123. out := new(v1.RegisterReply)
  124. err := c.cc.Invoke(ctx, "/pb.service.Company/Register", in, out, opts...)
  125. if err != nil {
  126. return nil, err
  127. }
  128. return out, nil
  129. }
  130. func (c *companyClient) LoginByPhone(ctx context.Context, in *v1.LoginByPhoneRequest, opts ...grpc.CallOption) (*v1.LoginByPhoneReply, error) {
  131. out := new(v1.LoginByPhoneReply)
  132. err := c.cc.Invoke(ctx, "/pb.service.Company/LoginByPhone", in, out, opts...)
  133. if err != nil {
  134. return nil, err
  135. }
  136. return out, nil
  137. }
  138. func (c *companyClient) CheckPhone(ctx context.Context, in *v1.CheckPhoneRequest, opts ...grpc.CallOption) (*v1.CheckPhoneReply, error) {
  139. out := new(v1.CheckPhoneReply)
  140. err := c.cc.Invoke(ctx, "/pb.service.Company/CheckPhone", in, out, opts...)
  141. if err != nil {
  142. return nil, err
  143. }
  144. return out, nil
  145. }
  146. func (c *companyClient) ResetPassword(ctx context.Context, in *v1.ResetPasswordRequest, opts ...grpc.CallOption) (*v1.ResetPasswordReply, error) {
  147. out := new(v1.ResetPasswordReply)
  148. err := c.cc.Invoke(ctx, "/pb.service.Company/ResetPassword", in, out, opts...)
  149. if err != nil {
  150. return nil, err
  151. }
  152. return out, nil
  153. }
  154. func (c *companyClient) ChangePassword(ctx context.Context, in *v1.ChangePasswordRequest, opts ...grpc.CallOption) (*v1.ChangePasswordReply, error) {
  155. out := new(v1.ChangePasswordReply)
  156. err := c.cc.Invoke(ctx, "/pb.service.Company/ChangePassword", in, out, opts...)
  157. if err != nil {
  158. return nil, err
  159. }
  160. return out, nil
  161. }
  162. func (c *companyClient) CompanyApprove(ctx context.Context, in *v1.CompanyApproveRequest, opts ...grpc.CallOption) (*v1.CompanyApproveReply, error) {
  163. out := new(v1.CompanyApproveReply)
  164. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyApprove", in, out, opts...)
  165. if err != nil {
  166. return nil, err
  167. }
  168. return out, nil
  169. }
  170. func (c *companyClient) CompanyList(ctx context.Context, in *v1.CompanyListRequest, opts ...grpc.CallOption) (*v1.CompanyListReply, error) {
  171. out := new(v1.CompanyListReply)
  172. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyList", in, out, opts...)
  173. if err != nil {
  174. return nil, err
  175. }
  176. return out, nil
  177. }
  178. func (c *companyClient) CompanyInfo(ctx context.Context, in *v1.CompanyInfoRequest, opts ...grpc.CallOption) (*v1.CompanyInfoReply, error) {
  179. out := new(v1.CompanyInfoReply)
  180. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyInfo", in, out, opts...)
  181. if err != nil {
  182. return nil, err
  183. }
  184. return out, nil
  185. }
  186. func (c *companyClient) CompanyUpdate(ctx context.Context, in *v1.CompanyUpdateRequest, opts ...grpc.CallOption) (*v1.CompanyUpdateReply, error) {
  187. out := new(v1.CompanyUpdateReply)
  188. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyUpdate", in, out, opts...)
  189. if err != nil {
  190. return nil, err
  191. }
  192. return out, nil
  193. }
  194. func (c *companyClient) CompanyAddGarden(ctx context.Context, in *v1.CompanyAddGardenRequest, opts ...grpc.CallOption) (*v1.CompanyAddGardenReply, error) {
  195. out := new(v1.CompanyAddGardenReply)
  196. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyAddGarden", in, out, opts...)
  197. if err != nil {
  198. return nil, err
  199. }
  200. return out, nil
  201. }
  202. func (c *companyClient) CompanyCanAddGarden(ctx context.Context, in *v1.CompanyCanAddGardenRequest, opts ...grpc.CallOption) (*v1.CompanyCanAddGardenReply, error) {
  203. out := new(v1.CompanyCanAddGardenReply)
  204. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyCanAddGarden", in, out, opts...)
  205. if err != nil {
  206. return nil, err
  207. }
  208. return out, nil
  209. }
  210. func (c *companyClient) CompanyChangeFreeGarden(ctx context.Context, in *v1.CompanyChangeFreeGardenRequest, opts ...grpc.CallOption) (*v1.CompanyChangeFreeGardenReply, error) {
  211. out := new(v1.CompanyChangeFreeGardenReply)
  212. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyChangeFreeGarden", in, out, opts...)
  213. if err != nil {
  214. return nil, err
  215. }
  216. return out, nil
  217. }
  218. func (c *companyClient) CompanyPayModel(ctx context.Context, in *v1.CompanyPayModelRequest, opts ...grpc.CallOption) (*v1.CompanyPayModelReply, error) {
  219. out := new(v1.CompanyPayModelReply)
  220. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyPayModel", in, out, opts...)
  221. if err != nil {
  222. return nil, err
  223. }
  224. return out, nil
  225. }
  226. func (c *companyClient) CompanyWxAccountApply(ctx context.Context, in *v1.CompanyWxAccountApplyRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyReply, error) {
  227. out := new(v1.CompanyWxAccountApplyReply)
  228. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyWxAccountApply", in, out, opts...)
  229. if err != nil {
  230. return nil, err
  231. }
  232. return out, nil
  233. }
  234. func (c *companyClient) CompanyWxAccountApplyList(ctx context.Context, in *v1.CompanyWxAccountApplyListRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyListReply, error) {
  235. out := new(v1.CompanyWxAccountApplyListReply)
  236. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyWxAccountApplyList", in, out, opts...)
  237. if err != nil {
  238. return nil, err
  239. }
  240. return out, nil
  241. }
  242. func (c *companyClient) CompanyWxAccountApplyInfo(ctx context.Context, in *v1.CompanyWxAccountApplyInfoRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyInfoReply, error) {
  243. out := new(v1.CompanyWxAccountApplyInfoReply)
  244. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyWxAccountApplyInfo", in, out, opts...)
  245. if err != nil {
  246. return nil, err
  247. }
  248. return out, nil
  249. }
  250. func (c *companyClient) CompanyStatistic(ctx context.Context, in *v1.CompanyStatisticRequest, opts ...grpc.CallOption) (*v1.CompanyStatisticReply, error) {
  251. out := new(v1.CompanyStatisticReply)
  252. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyStatistic", in, out, opts...)
  253. if err != nil {
  254. return nil, err
  255. }
  256. return out, nil
  257. }
  258. func (c *companyClient) CompanyUserAdd(ctx context.Context, in *v1.CompanyUserAddRequest, opts ...grpc.CallOption) (*v1.CompanyUserAddReply, error) {
  259. out := new(v1.CompanyUserAddReply)
  260. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyUserAdd", in, out, opts...)
  261. if err != nil {
  262. return nil, err
  263. }
  264. return out, nil
  265. }
  266. func (c *companyClient) CompanyUserUpdate(ctx context.Context, in *v1.CompanyUserUpdateRequest, opts ...grpc.CallOption) (*v1.CompanyUserUpdateReply, error) {
  267. out := new(v1.CompanyUserUpdateReply)
  268. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyUserUpdate", in, out, opts...)
  269. if err != nil {
  270. return nil, err
  271. }
  272. return out, nil
  273. }
  274. func (c *companyClient) CompanyUserDel(ctx context.Context, in *v1.CompanyUserDelRequest, opts ...grpc.CallOption) (*v1.CompanyUserDelReply, error) {
  275. out := new(v1.CompanyUserDelReply)
  276. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyUserDel", in, out, opts...)
  277. if err != nil {
  278. return nil, err
  279. }
  280. return out, nil
  281. }
  282. func (c *companyClient) CompanyUserList(ctx context.Context, in *v1.CompanyUserListRequest, opts ...grpc.CallOption) (*v1.CompanyUserListReply, error) {
  283. out := new(v1.CompanyUserListReply)
  284. err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyUserList", in, out, opts...)
  285. if err != nil {
  286. return nil, err
  287. }
  288. return out, nil
  289. }
  290. // CompanyServer is the server API for Company service.
  291. type CompanyServer interface {
  292. //
  293. Login(context.Context, *v1.LoginRequest) (*v1.LoginReply, error)
  294. Register(context.Context, *v1.RegisterRequest) (*v1.RegisterReply, error)
  295. LoginByPhone(context.Context, *v1.LoginByPhoneRequest) (*v1.LoginByPhoneReply, error)
  296. CheckPhone(context.Context, *v1.CheckPhoneRequest) (*v1.CheckPhoneReply, error)
  297. ResetPassword(context.Context, *v1.ResetPasswordRequest) (*v1.ResetPasswordReply, error)
  298. ChangePassword(context.Context, *v1.ChangePasswordRequest) (*v1.ChangePasswordReply, error)
  299. CompanyApprove(context.Context, *v1.CompanyApproveRequest) (*v1.CompanyApproveReply, error)
  300. CompanyList(context.Context, *v1.CompanyListRequest) (*v1.CompanyListReply, error)
  301. CompanyInfo(context.Context, *v1.CompanyInfoRequest) (*v1.CompanyInfoReply, error)
  302. CompanyUpdate(context.Context, *v1.CompanyUpdateRequest) (*v1.CompanyUpdateReply, error)
  303. // 新增小区
  304. CompanyAddGarden(context.Context, *v1.CompanyAddGardenRequest) (*v1.CompanyAddGardenReply, error)
  305. // 检查是否可以新增小区
  306. CompanyCanAddGarden(context.Context, *v1.CompanyCanAddGardenRequest) (*v1.CompanyCanAddGardenReply, error)
  307. // 修改配额
  308. CompanyChangeFreeGarden(context.Context, *v1.CompanyChangeFreeGardenRequest) (*v1.CompanyChangeFreeGardenReply, error)
  309. // 设置支付方式 仅线下/支付到公司账户/支付到软件系统提供商账户
  310. CompanyPayModel(context.Context, *v1.CompanyPayModelRequest) (*v1.CompanyPayModelReply, error)
  311. // 微信商户申请
  312. CompanyWxAccountApply(context.Context, *v1.CompanyWxAccountApplyRequest) (*v1.CompanyWxAccountApplyReply, error)
  313. // 微信商户申请列表
  314. CompanyWxAccountApplyList(context.Context, *v1.CompanyWxAccountApplyListRequest) (*v1.CompanyWxAccountApplyListReply, error)
  315. // 微信商户申请资料信息
  316. CompanyWxAccountApplyInfo(context.Context, *v1.CompanyWxAccountApplyInfoRequest) (*v1.CompanyWxAccountApplyInfoReply, error)
  317. // 统计
  318. CompanyStatistic(context.Context, *v1.CompanyStatisticRequest) (*v1.CompanyStatisticReply, error)
  319. // 公司用户
  320. CompanyUserAdd(context.Context, *v1.CompanyUserAddRequest) (*v1.CompanyUserAddReply, error)
  321. CompanyUserUpdate(context.Context, *v1.CompanyUserUpdateRequest) (*v1.CompanyUserUpdateReply, error)
  322. CompanyUserDel(context.Context, *v1.CompanyUserDelRequest) (*v1.CompanyUserDelReply, error)
  323. CompanyUserList(context.Context, *v1.CompanyUserListRequest) (*v1.CompanyUserListReply, error)
  324. }
  325. // UnimplementedCompanyServer can be embedded to have forward compatible implementations.
  326. type UnimplementedCompanyServer struct {
  327. }
  328. func (*UnimplementedCompanyServer) Login(ctx context.Context, req *v1.LoginRequest) (*v1.LoginReply, error) {
  329. return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
  330. }
  331. func (*UnimplementedCompanyServer) Register(ctx context.Context, req *v1.RegisterRequest) (*v1.RegisterReply, error) {
  332. return nil, status.Errorf(codes.Unimplemented, "method Register not implemented")
  333. }
  334. func (*UnimplementedCompanyServer) LoginByPhone(ctx context.Context, req *v1.LoginByPhoneRequest) (*v1.LoginByPhoneReply, error) {
  335. return nil, status.Errorf(codes.Unimplemented, "method LoginByPhone not implemented")
  336. }
  337. func (*UnimplementedCompanyServer) CheckPhone(ctx context.Context, req *v1.CheckPhoneRequest) (*v1.CheckPhoneReply, error) {
  338. return nil, status.Errorf(codes.Unimplemented, "method CheckPhone not implemented")
  339. }
  340. func (*UnimplementedCompanyServer) ResetPassword(ctx context.Context, req *v1.ResetPasswordRequest) (*v1.ResetPasswordReply, error) {
  341. return nil, status.Errorf(codes.Unimplemented, "method ResetPassword not implemented")
  342. }
  343. func (*UnimplementedCompanyServer) ChangePassword(ctx context.Context, req *v1.ChangePasswordRequest) (*v1.ChangePasswordReply, error) {
  344. return nil, status.Errorf(codes.Unimplemented, "method ChangePassword not implemented")
  345. }
  346. func (*UnimplementedCompanyServer) CompanyApprove(ctx context.Context, req *v1.CompanyApproveRequest) (*v1.CompanyApproveReply, error) {
  347. return nil, status.Errorf(codes.Unimplemented, "method CompanyApprove not implemented")
  348. }
  349. func (*UnimplementedCompanyServer) CompanyList(ctx context.Context, req *v1.CompanyListRequest) (*v1.CompanyListReply, error) {
  350. return nil, status.Errorf(codes.Unimplemented, "method CompanyList not implemented")
  351. }
  352. func (*UnimplementedCompanyServer) CompanyInfo(ctx context.Context, req *v1.CompanyInfoRequest) (*v1.CompanyInfoReply, error) {
  353. return nil, status.Errorf(codes.Unimplemented, "method CompanyInfo not implemented")
  354. }
  355. func (*UnimplementedCompanyServer) CompanyUpdate(ctx context.Context, req *v1.CompanyUpdateRequest) (*v1.CompanyUpdateReply, error) {
  356. return nil, status.Errorf(codes.Unimplemented, "method CompanyUpdate not implemented")
  357. }
  358. func (*UnimplementedCompanyServer) CompanyAddGarden(ctx context.Context, req *v1.CompanyAddGardenRequest) (*v1.CompanyAddGardenReply, error) {
  359. return nil, status.Errorf(codes.Unimplemented, "method CompanyAddGarden not implemented")
  360. }
  361. func (*UnimplementedCompanyServer) CompanyCanAddGarden(ctx context.Context, req *v1.CompanyCanAddGardenRequest) (*v1.CompanyCanAddGardenReply, error) {
  362. return nil, status.Errorf(codes.Unimplemented, "method CompanyCanAddGarden not implemented")
  363. }
  364. func (*UnimplementedCompanyServer) CompanyChangeFreeGarden(ctx context.Context, req *v1.CompanyChangeFreeGardenRequest) (*v1.CompanyChangeFreeGardenReply, error) {
  365. return nil, status.Errorf(codes.Unimplemented, "method CompanyChangeFreeGarden not implemented")
  366. }
  367. func (*UnimplementedCompanyServer) CompanyPayModel(ctx context.Context, req *v1.CompanyPayModelRequest) (*v1.CompanyPayModelReply, error) {
  368. return nil, status.Errorf(codes.Unimplemented, "method CompanyPayModel not implemented")
  369. }
  370. func (*UnimplementedCompanyServer) CompanyWxAccountApply(ctx context.Context, req *v1.CompanyWxAccountApplyRequest) (*v1.CompanyWxAccountApplyReply, error) {
  371. return nil, status.Errorf(codes.Unimplemented, "method CompanyWxAccountApply not implemented")
  372. }
  373. func (*UnimplementedCompanyServer) CompanyWxAccountApplyList(ctx context.Context, req *v1.CompanyWxAccountApplyListRequest) (*v1.CompanyWxAccountApplyListReply, error) {
  374. return nil, status.Errorf(codes.Unimplemented, "method CompanyWxAccountApplyList not implemented")
  375. }
  376. func (*UnimplementedCompanyServer) CompanyWxAccountApplyInfo(ctx context.Context, req *v1.CompanyWxAccountApplyInfoRequest) (*v1.CompanyWxAccountApplyInfoReply, error) {
  377. return nil, status.Errorf(codes.Unimplemented, "method CompanyWxAccountApplyInfo not implemented")
  378. }
  379. func (*UnimplementedCompanyServer) CompanyStatistic(ctx context.Context, req *v1.CompanyStatisticRequest) (*v1.CompanyStatisticReply, error) {
  380. return nil, status.Errorf(codes.Unimplemented, "method CompanyStatistic not implemented")
  381. }
  382. func (*UnimplementedCompanyServer) CompanyUserAdd(ctx context.Context, req *v1.CompanyUserAddRequest) (*v1.CompanyUserAddReply, error) {
  383. return nil, status.Errorf(codes.Unimplemented, "method CompanyUserAdd not implemented")
  384. }
  385. func (*UnimplementedCompanyServer) CompanyUserUpdate(ctx context.Context, req *v1.CompanyUserUpdateRequest) (*v1.CompanyUserUpdateReply, error) {
  386. return nil, status.Errorf(codes.Unimplemented, "method CompanyUserUpdate not implemented")
  387. }
  388. func (*UnimplementedCompanyServer) CompanyUserDel(ctx context.Context, req *v1.CompanyUserDelRequest) (*v1.CompanyUserDelReply, error) {
  389. return nil, status.Errorf(codes.Unimplemented, "method CompanyUserDel not implemented")
  390. }
  391. func (*UnimplementedCompanyServer) CompanyUserList(ctx context.Context, req *v1.CompanyUserListRequest) (*v1.CompanyUserListReply, error) {
  392. return nil, status.Errorf(codes.Unimplemented, "method CompanyUserList not implemented")
  393. }
  394. func RegisterCompanyServer(s *grpc.Server, srv CompanyServer) {
  395. s.RegisterService(&_Company_serviceDesc, srv)
  396. }
  397. func _Company_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  398. in := new(v1.LoginRequest)
  399. if err := dec(in); err != nil {
  400. return nil, err
  401. }
  402. if interceptor == nil {
  403. return srv.(CompanyServer).Login(ctx, in)
  404. }
  405. info := &grpc.UnaryServerInfo{
  406. Server: srv,
  407. FullMethod: "/pb.service.Company/Login",
  408. }
  409. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  410. return srv.(CompanyServer).Login(ctx, req.(*v1.LoginRequest))
  411. }
  412. return interceptor(ctx, in, info, handler)
  413. }
  414. func _Company_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  415. in := new(v1.RegisterRequest)
  416. if err := dec(in); err != nil {
  417. return nil, err
  418. }
  419. if interceptor == nil {
  420. return srv.(CompanyServer).Register(ctx, in)
  421. }
  422. info := &grpc.UnaryServerInfo{
  423. Server: srv,
  424. FullMethod: "/pb.service.Company/Register",
  425. }
  426. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  427. return srv.(CompanyServer).Register(ctx, req.(*v1.RegisterRequest))
  428. }
  429. return interceptor(ctx, in, info, handler)
  430. }
  431. func _Company_LoginByPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  432. in := new(v1.LoginByPhoneRequest)
  433. if err := dec(in); err != nil {
  434. return nil, err
  435. }
  436. if interceptor == nil {
  437. return srv.(CompanyServer).LoginByPhone(ctx, in)
  438. }
  439. info := &grpc.UnaryServerInfo{
  440. Server: srv,
  441. FullMethod: "/pb.service.Company/LoginByPhone",
  442. }
  443. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  444. return srv.(CompanyServer).LoginByPhone(ctx, req.(*v1.LoginByPhoneRequest))
  445. }
  446. return interceptor(ctx, in, info, handler)
  447. }
  448. func _Company_CheckPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  449. in := new(v1.CheckPhoneRequest)
  450. if err := dec(in); err != nil {
  451. return nil, err
  452. }
  453. if interceptor == nil {
  454. return srv.(CompanyServer).CheckPhone(ctx, in)
  455. }
  456. info := &grpc.UnaryServerInfo{
  457. Server: srv,
  458. FullMethod: "/pb.service.Company/CheckPhone",
  459. }
  460. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  461. return srv.(CompanyServer).CheckPhone(ctx, req.(*v1.CheckPhoneRequest))
  462. }
  463. return interceptor(ctx, in, info, handler)
  464. }
  465. func _Company_ResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  466. in := new(v1.ResetPasswordRequest)
  467. if err := dec(in); err != nil {
  468. return nil, err
  469. }
  470. if interceptor == nil {
  471. return srv.(CompanyServer).ResetPassword(ctx, in)
  472. }
  473. info := &grpc.UnaryServerInfo{
  474. Server: srv,
  475. FullMethod: "/pb.service.Company/ResetPassword",
  476. }
  477. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  478. return srv.(CompanyServer).ResetPassword(ctx, req.(*v1.ResetPasswordRequest))
  479. }
  480. return interceptor(ctx, in, info, handler)
  481. }
  482. func _Company_ChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  483. in := new(v1.ChangePasswordRequest)
  484. if err := dec(in); err != nil {
  485. return nil, err
  486. }
  487. if interceptor == nil {
  488. return srv.(CompanyServer).ChangePassword(ctx, in)
  489. }
  490. info := &grpc.UnaryServerInfo{
  491. Server: srv,
  492. FullMethod: "/pb.service.Company/ChangePassword",
  493. }
  494. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  495. return srv.(CompanyServer).ChangePassword(ctx, req.(*v1.ChangePasswordRequest))
  496. }
  497. return interceptor(ctx, in, info, handler)
  498. }
  499. func _Company_CompanyApprove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  500. in := new(v1.CompanyApproveRequest)
  501. if err := dec(in); err != nil {
  502. return nil, err
  503. }
  504. if interceptor == nil {
  505. return srv.(CompanyServer).CompanyApprove(ctx, in)
  506. }
  507. info := &grpc.UnaryServerInfo{
  508. Server: srv,
  509. FullMethod: "/pb.service.Company/CompanyApprove",
  510. }
  511. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  512. return srv.(CompanyServer).CompanyApprove(ctx, req.(*v1.CompanyApproveRequest))
  513. }
  514. return interceptor(ctx, in, info, handler)
  515. }
  516. func _Company_CompanyList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  517. in := new(v1.CompanyListRequest)
  518. if err := dec(in); err != nil {
  519. return nil, err
  520. }
  521. if interceptor == nil {
  522. return srv.(CompanyServer).CompanyList(ctx, in)
  523. }
  524. info := &grpc.UnaryServerInfo{
  525. Server: srv,
  526. FullMethod: "/pb.service.Company/CompanyList",
  527. }
  528. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  529. return srv.(CompanyServer).CompanyList(ctx, req.(*v1.CompanyListRequest))
  530. }
  531. return interceptor(ctx, in, info, handler)
  532. }
  533. func _Company_CompanyInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  534. in := new(v1.CompanyInfoRequest)
  535. if err := dec(in); err != nil {
  536. return nil, err
  537. }
  538. if interceptor == nil {
  539. return srv.(CompanyServer).CompanyInfo(ctx, in)
  540. }
  541. info := &grpc.UnaryServerInfo{
  542. Server: srv,
  543. FullMethod: "/pb.service.Company/CompanyInfo",
  544. }
  545. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  546. return srv.(CompanyServer).CompanyInfo(ctx, req.(*v1.CompanyInfoRequest))
  547. }
  548. return interceptor(ctx, in, info, handler)
  549. }
  550. func _Company_CompanyUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  551. in := new(v1.CompanyUpdateRequest)
  552. if err := dec(in); err != nil {
  553. return nil, err
  554. }
  555. if interceptor == nil {
  556. return srv.(CompanyServer).CompanyUpdate(ctx, in)
  557. }
  558. info := &grpc.UnaryServerInfo{
  559. Server: srv,
  560. FullMethod: "/pb.service.Company/CompanyUpdate",
  561. }
  562. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  563. return srv.(CompanyServer).CompanyUpdate(ctx, req.(*v1.CompanyUpdateRequest))
  564. }
  565. return interceptor(ctx, in, info, handler)
  566. }
  567. func _Company_CompanyAddGarden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  568. in := new(v1.CompanyAddGardenRequest)
  569. if err := dec(in); err != nil {
  570. return nil, err
  571. }
  572. if interceptor == nil {
  573. return srv.(CompanyServer).CompanyAddGarden(ctx, in)
  574. }
  575. info := &grpc.UnaryServerInfo{
  576. Server: srv,
  577. FullMethod: "/pb.service.Company/CompanyAddGarden",
  578. }
  579. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  580. return srv.(CompanyServer).CompanyAddGarden(ctx, req.(*v1.CompanyAddGardenRequest))
  581. }
  582. return interceptor(ctx, in, info, handler)
  583. }
  584. func _Company_CompanyCanAddGarden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  585. in := new(v1.CompanyCanAddGardenRequest)
  586. if err := dec(in); err != nil {
  587. return nil, err
  588. }
  589. if interceptor == nil {
  590. return srv.(CompanyServer).CompanyCanAddGarden(ctx, in)
  591. }
  592. info := &grpc.UnaryServerInfo{
  593. Server: srv,
  594. FullMethod: "/pb.service.Company/CompanyCanAddGarden",
  595. }
  596. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  597. return srv.(CompanyServer).CompanyCanAddGarden(ctx, req.(*v1.CompanyCanAddGardenRequest))
  598. }
  599. return interceptor(ctx, in, info, handler)
  600. }
  601. func _Company_CompanyChangeFreeGarden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  602. in := new(v1.CompanyChangeFreeGardenRequest)
  603. if err := dec(in); err != nil {
  604. return nil, err
  605. }
  606. if interceptor == nil {
  607. return srv.(CompanyServer).CompanyChangeFreeGarden(ctx, in)
  608. }
  609. info := &grpc.UnaryServerInfo{
  610. Server: srv,
  611. FullMethod: "/pb.service.Company/CompanyChangeFreeGarden",
  612. }
  613. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  614. return srv.(CompanyServer).CompanyChangeFreeGarden(ctx, req.(*v1.CompanyChangeFreeGardenRequest))
  615. }
  616. return interceptor(ctx, in, info, handler)
  617. }
  618. func _Company_CompanyPayModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  619. in := new(v1.CompanyPayModelRequest)
  620. if err := dec(in); err != nil {
  621. return nil, err
  622. }
  623. if interceptor == nil {
  624. return srv.(CompanyServer).CompanyPayModel(ctx, in)
  625. }
  626. info := &grpc.UnaryServerInfo{
  627. Server: srv,
  628. FullMethod: "/pb.service.Company/CompanyPayModel",
  629. }
  630. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  631. return srv.(CompanyServer).CompanyPayModel(ctx, req.(*v1.CompanyPayModelRequest))
  632. }
  633. return interceptor(ctx, in, info, handler)
  634. }
  635. func _Company_CompanyWxAccountApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  636. in := new(v1.CompanyWxAccountApplyRequest)
  637. if err := dec(in); err != nil {
  638. return nil, err
  639. }
  640. if interceptor == nil {
  641. return srv.(CompanyServer).CompanyWxAccountApply(ctx, in)
  642. }
  643. info := &grpc.UnaryServerInfo{
  644. Server: srv,
  645. FullMethod: "/pb.service.Company/CompanyWxAccountApply",
  646. }
  647. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  648. return srv.(CompanyServer).CompanyWxAccountApply(ctx, req.(*v1.CompanyWxAccountApplyRequest))
  649. }
  650. return interceptor(ctx, in, info, handler)
  651. }
  652. func _Company_CompanyWxAccountApplyList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  653. in := new(v1.CompanyWxAccountApplyListRequest)
  654. if err := dec(in); err != nil {
  655. return nil, err
  656. }
  657. if interceptor == nil {
  658. return srv.(CompanyServer).CompanyWxAccountApplyList(ctx, in)
  659. }
  660. info := &grpc.UnaryServerInfo{
  661. Server: srv,
  662. FullMethod: "/pb.service.Company/CompanyWxAccountApplyList",
  663. }
  664. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  665. return srv.(CompanyServer).CompanyWxAccountApplyList(ctx, req.(*v1.CompanyWxAccountApplyListRequest))
  666. }
  667. return interceptor(ctx, in, info, handler)
  668. }
  669. func _Company_CompanyWxAccountApplyInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  670. in := new(v1.CompanyWxAccountApplyInfoRequest)
  671. if err := dec(in); err != nil {
  672. return nil, err
  673. }
  674. if interceptor == nil {
  675. return srv.(CompanyServer).CompanyWxAccountApplyInfo(ctx, in)
  676. }
  677. info := &grpc.UnaryServerInfo{
  678. Server: srv,
  679. FullMethod: "/pb.service.Company/CompanyWxAccountApplyInfo",
  680. }
  681. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  682. return srv.(CompanyServer).CompanyWxAccountApplyInfo(ctx, req.(*v1.CompanyWxAccountApplyInfoRequest))
  683. }
  684. return interceptor(ctx, in, info, handler)
  685. }
  686. func _Company_CompanyStatistic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  687. in := new(v1.CompanyStatisticRequest)
  688. if err := dec(in); err != nil {
  689. return nil, err
  690. }
  691. if interceptor == nil {
  692. return srv.(CompanyServer).CompanyStatistic(ctx, in)
  693. }
  694. info := &grpc.UnaryServerInfo{
  695. Server: srv,
  696. FullMethod: "/pb.service.Company/CompanyStatistic",
  697. }
  698. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  699. return srv.(CompanyServer).CompanyStatistic(ctx, req.(*v1.CompanyStatisticRequest))
  700. }
  701. return interceptor(ctx, in, info, handler)
  702. }
  703. func _Company_CompanyUserAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  704. in := new(v1.CompanyUserAddRequest)
  705. if err := dec(in); err != nil {
  706. return nil, err
  707. }
  708. if interceptor == nil {
  709. return srv.(CompanyServer).CompanyUserAdd(ctx, in)
  710. }
  711. info := &grpc.UnaryServerInfo{
  712. Server: srv,
  713. FullMethod: "/pb.service.Company/CompanyUserAdd",
  714. }
  715. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  716. return srv.(CompanyServer).CompanyUserAdd(ctx, req.(*v1.CompanyUserAddRequest))
  717. }
  718. return interceptor(ctx, in, info, handler)
  719. }
  720. func _Company_CompanyUserUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  721. in := new(v1.CompanyUserUpdateRequest)
  722. if err := dec(in); err != nil {
  723. return nil, err
  724. }
  725. if interceptor == nil {
  726. return srv.(CompanyServer).CompanyUserUpdate(ctx, in)
  727. }
  728. info := &grpc.UnaryServerInfo{
  729. Server: srv,
  730. FullMethod: "/pb.service.Company/CompanyUserUpdate",
  731. }
  732. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  733. return srv.(CompanyServer).CompanyUserUpdate(ctx, req.(*v1.CompanyUserUpdateRequest))
  734. }
  735. return interceptor(ctx, in, info, handler)
  736. }
  737. func _Company_CompanyUserDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  738. in := new(v1.CompanyUserDelRequest)
  739. if err := dec(in); err != nil {
  740. return nil, err
  741. }
  742. if interceptor == nil {
  743. return srv.(CompanyServer).CompanyUserDel(ctx, in)
  744. }
  745. info := &grpc.UnaryServerInfo{
  746. Server: srv,
  747. FullMethod: "/pb.service.Company/CompanyUserDel",
  748. }
  749. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  750. return srv.(CompanyServer).CompanyUserDel(ctx, req.(*v1.CompanyUserDelRequest))
  751. }
  752. return interceptor(ctx, in, info, handler)
  753. }
  754. func _Company_CompanyUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  755. in := new(v1.CompanyUserListRequest)
  756. if err := dec(in); err != nil {
  757. return nil, err
  758. }
  759. if interceptor == nil {
  760. return srv.(CompanyServer).CompanyUserList(ctx, in)
  761. }
  762. info := &grpc.UnaryServerInfo{
  763. Server: srv,
  764. FullMethod: "/pb.service.Company/CompanyUserList",
  765. }
  766. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  767. return srv.(CompanyServer).CompanyUserList(ctx, req.(*v1.CompanyUserListRequest))
  768. }
  769. return interceptor(ctx, in, info, handler)
  770. }
  771. var _Company_serviceDesc = grpc.ServiceDesc{
  772. ServiceName: "pb.service.Company",
  773. HandlerType: (*CompanyServer)(nil),
  774. Methods: []grpc.MethodDesc{
  775. {
  776. MethodName: "Login",
  777. Handler: _Company_Login_Handler,
  778. },
  779. {
  780. MethodName: "Register",
  781. Handler: _Company_Register_Handler,
  782. },
  783. {
  784. MethodName: "LoginByPhone",
  785. Handler: _Company_LoginByPhone_Handler,
  786. },
  787. {
  788. MethodName: "CheckPhone",
  789. Handler: _Company_CheckPhone_Handler,
  790. },
  791. {
  792. MethodName: "ResetPassword",
  793. Handler: _Company_ResetPassword_Handler,
  794. },
  795. {
  796. MethodName: "ChangePassword",
  797. Handler: _Company_ChangePassword_Handler,
  798. },
  799. {
  800. MethodName: "CompanyApprove",
  801. Handler: _Company_CompanyApprove_Handler,
  802. },
  803. {
  804. MethodName: "CompanyList",
  805. Handler: _Company_CompanyList_Handler,
  806. },
  807. {
  808. MethodName: "CompanyInfo",
  809. Handler: _Company_CompanyInfo_Handler,
  810. },
  811. {
  812. MethodName: "CompanyUpdate",
  813. Handler: _Company_CompanyUpdate_Handler,
  814. },
  815. {
  816. MethodName: "CompanyAddGarden",
  817. Handler: _Company_CompanyAddGarden_Handler,
  818. },
  819. {
  820. MethodName: "CompanyCanAddGarden",
  821. Handler: _Company_CompanyCanAddGarden_Handler,
  822. },
  823. {
  824. MethodName: "CompanyChangeFreeGarden",
  825. Handler: _Company_CompanyChangeFreeGarden_Handler,
  826. },
  827. {
  828. MethodName: "CompanyPayModel",
  829. Handler: _Company_CompanyPayModel_Handler,
  830. },
  831. {
  832. MethodName: "CompanyWxAccountApply",
  833. Handler: _Company_CompanyWxAccountApply_Handler,
  834. },
  835. {
  836. MethodName: "CompanyWxAccountApplyList",
  837. Handler: _Company_CompanyWxAccountApplyList_Handler,
  838. },
  839. {
  840. MethodName: "CompanyWxAccountApplyInfo",
  841. Handler: _Company_CompanyWxAccountApplyInfo_Handler,
  842. },
  843. {
  844. MethodName: "CompanyStatistic",
  845. Handler: _Company_CompanyStatistic_Handler,
  846. },
  847. {
  848. MethodName: "CompanyUserAdd",
  849. Handler: _Company_CompanyUserAdd_Handler,
  850. },
  851. {
  852. MethodName: "CompanyUserUpdate",
  853. Handler: _Company_CompanyUserUpdate_Handler,
  854. },
  855. {
  856. MethodName: "CompanyUserDel",
  857. Handler: _Company_CompanyUserDel_Handler,
  858. },
  859. {
  860. MethodName: "CompanyUserList",
  861. Handler: _Company_CompanyUserList_Handler,
  862. },
  863. },
  864. Streams: []grpc.StreamDesc{},
  865. Metadata: "company_service.proto",
  866. }