company_service.pb.go 46 KB

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