12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: company_service.proto
- // package声明符,用来防止不同的消息类型有命名冲突
- package pb
- import (
- context "context"
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- math "math"
- v1 "property-company/pb/v1"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
- func init() {
- proto.RegisterFile("company_service.proto", fileDescriptor_cfe012e92534f5dd)
- }
- var fileDescriptor_cfe012e92534f5dd = []byte{
- // 609 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x96, 0x5f, 0x6f, 0x12, 0x4d,
- 0x14, 0x87, 0xdf, 0x9b, 0x57, 0xcd, 0xf8, 0xaf, 0x9d, 0x0a, 0x15, 0x68, 0x6d, 0x5a, 0x25, 0x5e,
- 0x49, 0x83, 0xde, 0x79, 0x25, 0x85, 0xd4, 0x90, 0xd0, 0x94, 0xd0, 0x10, 0x13, 0xbd, 0x68, 0x86,
- 0xdd, 0x23, 0xac, 0xd2, 0x9d, 0x71, 0x76, 0x8a, 0xee, 0x07, 0xf0, 0x7b, 0x1b, 0x76, 0x66, 0x76,
- 0x77, 0x0e, 0x3b, 0x70, 0xc9, 0xef, 0x39, 0xe7, 0x39, 0xcb, 0xb0, 0x67, 0x02, 0xa9, 0x05, 0xfc,
- 0x4e, 0xb0, 0x38, 0xbd, 0x4d, 0x40, 0xae, 0xa2, 0x00, 0x3a, 0x42, 0x72, 0xc5, 0x29, 0x11, 0xb3,
- 0x8e, 0x49, 0x9a, 0x7b, 0xab, 0xee, 0xb9, 0xa9, 0xd2, 0xf4, 0xfd, 0xdf, 0x7d, 0xf2, 0xb0, 0xaf,
- 0x13, 0xda, 0x25, 0xff, 0x8f, 0xf8, 0x3c, 0x8a, 0xe9, 0x41, 0x47, 0xcc, 0x6e, 0x57, 0xdd, 0x4e,
- 0xf6, 0x69, 0x02, 0xbf, 0xee, 0x21, 0x51, 0xcd, 0x7d, 0x37, 0x14, 0xcb, 0xf4, 0xec, 0x3f, 0xfa,
- 0x91, 0x3c, 0x9a, 0xc0, 0x3c, 0x4a, 0x14, 0x48, 0x5a, 0x37, 0x05, 0x36, 0xb0, 0x8d, 0x2f, 0x36,
- 0x72, 0xdd, 0x7b, 0x49, 0x9e, 0x64, 0xae, 0x8b, 0x74, 0xbc, 0xe0, 0x31, 0xd0, 0x66, 0x79, 0x80,
- 0x09, 0xad, 0xe3, 0x65, 0x25, 0xd3, 0x9e, 0x4f, 0x84, 0xf4, 0x17, 0x10, 0xfc, 0xd4, 0x16, 0x5b,
- 0x59, 0x44, 0xd6, 0x51, 0xaf, 0x20, 0xda, 0x30, 0x24, 0x4f, 0x27, 0x90, 0x80, 0x1a, 0xb3, 0x24,
- 0xf9, 0xcd, 0x65, 0x48, 0x5b, 0xf9, 0x23, 0x97, 0x52, 0xeb, 0x69, 0x54, 0x43, 0xad, 0x1a, 0x91,
- 0x67, 0xfd, 0x05, 0x8b, 0xe7, 0x90, 0xbb, 0x8e, 0xf2, 0xb1, 0xe5, 0xd8, 0xca, 0x9a, 0x1e, 0x5a,
- 0xd8, 0xf4, 0x8f, 0xd3, 0x13, 0x42, 0xf2, 0x15, 0x14, 0x36, 0x27, 0xde, 0xb0, 0x21, 0xaa, 0x6d,
- 0x7d, 0xf2, 0xd8, 0x80, 0x51, 0x94, 0x28, 0xda, 0x70, 0x8b, 0xd7, 0x99, 0xf5, 0x1c, 0x56, 0x21,
- 0x2c, 0x19, 0xc6, 0xdf, 0x39, 0x96, 0xac, 0x33, 0x8f, 0x44, 0xa3, 0xfc, 0xc0, 0x4d, 0x3a, 0x15,
- 0x21, 0x53, 0x90, 0x1f, 0xb8, 0x93, 0xe2, 0x03, 0x47, 0x50, 0xab, 0x26, 0x64, 0xcf, 0x7e, 0xdb,
- 0x30, 0xfc, 0xcc, 0x64, 0x08, 0x31, 0x7d, 0x85, 0x8e, 0xc1, 0x02, 0x2b, 0x3c, 0xf2, 0x72, 0xed,
- 0xfc, 0x46, 0x0e, 0x0c, 0xea, 0xb3, 0xb8, 0xd0, 0x9e, 0xba, 0x6d, 0x65, 0x66, 0xcd, 0x27, 0xdb,
- 0x4a, 0xb4, 0x7c, 0x4e, 0x0e, 0x2d, 0xcd, 0x7e, 0xf3, 0x4b, 0x09, 0x60, 0x06, 0xb4, 0x51, 0x37,
- 0xe2, 0x76, 0xc8, 0xeb, 0x5d, 0x65, 0x7a, 0x10, 0x23, 0x35, 0x53, 0xa1, 0xf3, 0x01, 0x04, 0x12,
- 0x58, 0x02, 0x14, 0xf5, 0xbb, 0xd4, 0x0e, 0x39, 0xdd, 0x5e, 0xa4, 0x47, 0x5c, 0x93, 0xe7, 0x86,
- 0x5f, 0x05, 0x8b, 0x61, 0x78, 0x03, 0x8a, 0x1e, 0xbb, 0x7d, 0x36, 0xb7, 0xda, 0x96, 0x0f, 0x63,
- 0xe1, 0x98, 0xa5, 0x57, 0x3c, 0x84, 0x25, 0x16, 0xda, 0xdc, 0x23, 0x2c, 0x30, 0x3e, 0x84, 0x2f,
- 0x7f, 0x7a, 0x41, 0xc0, 0xef, 0x63, 0xd5, 0x13, 0x62, 0x99, 0xe2, 0x43, 0x70, 0xa9, 0xe7, 0x10,
- 0x70, 0x91, 0x1e, 0x71, 0x47, 0x1a, 0x95, 0x3c, 0x5b, 0xb2, 0xb7, 0xdb, 0x0c, 0xe5, 0x95, 0x6b,
- 0xef, 0x2e, 0xdc, 0x3e, 0x2e, 0x5b, 0xc7, 0xad, 0xe3, 0xca, 0xcb, 0xd9, 0xde, 0x5d, 0x88, 0xf7,
- 0xeb, 0x46, 0x31, 0x15, 0x25, 0x2a, 0x0a, 0xf0, 0x7e, 0xe5, 0xc0, 0xb3, 0x5f, 0x25, 0xae, 0x9d,
- 0x21, 0xa9, 0x1b, 0x74, 0x3d, 0xfb, 0x91, 0xd3, 0xf5, 0xdb, 0xf3, 0xc6, 0xed, 0x44, 0xd8, 0xfa,
- 0xcf, 0x76, 0x54, 0xe1, 0x45, 0x1b, 0x00, 0x5b, 0x3a, 0x63, 0xd0, 0xb7, 0xc7, 0xdc, 0xb3, 0x68,
- 0x9b, 0x65, 0xf8, 0x96, 0x9e, 0x26, 0x20, 0x7b, 0x61, 0x88, 0x6f, 0x69, 0x13, 0x7b, 0x6e, 0xe9,
- 0x9c, 0x6a, 0xdb, 0x94, 0xec, 0x97, 0x80, 0xb9, 0x1f, 0x4f, 0x36, 0x5b, 0xdc, 0x3b, 0xf2, 0xd8,
- 0x5f, 0x50, 0xf5, 0x90, 0x03, 0x58, 0x56, 0x3d, 0xe4, 0xa0, 0xd8, 0xab, 0xa6, 0x87, 0xe2, 0x3d,
- 0x5d, 0x83, 0xec, 0x4d, 0xaf, 0x78, 0x82, 0xf2, 0xfb, 0xdd, 0xf2, 0xe1, 0x4c, 0x78, 0x51, 0xfb,
- 0x7a, 0x20, 0x24, 0x17, 0x20, 0x55, 0xfa, 0xce, 0xfc, 0x43, 0x39, 0x17, 0xb3, 0xd9, 0x83, 0xec,
- 0x5f, 0xca, 0x87, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf6, 0x53, 0x73, 0x6f, 0xdc, 0x08, 0x00,
- 0x00,
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConnInterface
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion6
- // CompanyClient is the client API for Company service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type CompanyClient interface {
- //
- Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error)
- Register(ctx context.Context, in *v1.RegisterRequest, opts ...grpc.CallOption) (*v1.RegisterReply, error)
- LoginByPhone(ctx context.Context, in *v1.LoginByPhoneRequest, opts ...grpc.CallOption) (*v1.LoginByPhoneReply, error)
- CheckPhone(ctx context.Context, in *v1.CheckPhoneRequest, opts ...grpc.CallOption) (*v1.CheckPhoneReply, error)
- ResetPassword(ctx context.Context, in *v1.ResetPasswordRequest, opts ...grpc.CallOption) (*v1.ResetPasswordReply, error)
- ChangePassword(ctx context.Context, in *v1.ChangePasswordRequest, opts ...grpc.CallOption) (*v1.ChangePasswordReply, error)
- CompanyApprove(ctx context.Context, in *v1.CompanyApproveRequest, opts ...grpc.CallOption) (*v1.CompanyApproveReply, error)
- CompanyList(ctx context.Context, in *v1.CompanyListRequest, opts ...grpc.CallOption) (*v1.CompanyListReply, error)
- CompanyInfo(ctx context.Context, in *v1.CompanyInfoRequest, opts ...grpc.CallOption) (*v1.CompanyInfoReply, error)
- CompanyUpdate(ctx context.Context, in *v1.CompanyUpdateRequest, opts ...grpc.CallOption) (*v1.CompanyUpdateReply, error)
- // 新增小区
- CompanyAddGarden(ctx context.Context, in *v1.CompanyAddGardenRequest, opts ...grpc.CallOption) (*v1.CompanyAddGardenReply, error)
- // 检查是否可以新增小区
- CompanyCanAddGarden(ctx context.Context, in *v1.CompanyCanAddGardenRequest, opts ...grpc.CallOption) (*v1.CompanyCanAddGardenReply, error)
- // 修改配额
- CompanyChangeFreeGarden(ctx context.Context, in *v1.CompanyChangeFreeGardenRequest, opts ...grpc.CallOption) (*v1.CompanyChangeFreeGardenReply, error)
- // 小区审批未通过时数量减1
- CompanyGardenDecrease(ctx context.Context, in *v1.CompanyGardenDecreaseRequest, opts ...grpc.CallOption) (*v1.CompanyGardenDecreaseReply, error)
- // 设置商户号
- CompanyMchIdSet(ctx context.Context, in *v1.CompanyMchIdSetRequest, opts ...grpc.CallOption) (*v1.CompanyMchIdSetReply, error)
- // 设置支付方式 仅线下/支付到公司账户/支付到软件系统提供商账户
- CompanyPayModel(ctx context.Context, in *v1.CompanyPayModelRequest, opts ...grpc.CallOption) (*v1.CompanyPayModelReply, error)
- // 微信商户申请
- CompanyWxAccountApply(ctx context.Context, in *v1.CompanyWxAccountApplyRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyReply, error)
- // 微信商户申请列表
- CompanyWxAccountApplyList(ctx context.Context, in *v1.CompanyWxAccountApplyListRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyListReply, error)
- // 微信商户申请资料信息
- CompanyWxAccountApplyInfo(ctx context.Context, in *v1.CompanyWxAccountApplyInfoRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyInfoReply, error)
- // 统计
- CompanyStatistic(ctx context.Context, in *v1.CompanyStatisticRequest, opts ...grpc.CallOption) (*v1.CompanyStatisticReply, error)
- CompanyObjStatisticSet(ctx context.Context, in *v1.CompanyObjStatisticSetRequest, opts ...grpc.CallOption) (*v1.CompanyObjStatisticSetReply, error)
- CompanyDealStatisticSet(ctx context.Context, in *v1.CompanyDealStatisticSetRequest, opts ...grpc.CallOption) (*v1.CompanyDealStatisticSetReply, error)
- // 公司用户
- CompanyUserAdd(ctx context.Context, in *v1.CompanyUserAddRequest, opts ...grpc.CallOption) (*v1.CompanyUserAddReply, error)
- CompanyUserUpdate(ctx context.Context, in *v1.CompanyUserUpdateRequest, opts ...grpc.CallOption) (*v1.CompanyUserUpdateReply, error)
- CompanyUserDel(ctx context.Context, in *v1.CompanyUserDelRequest, opts ...grpc.CallOption) (*v1.CompanyUserDelReply, error)
- CompanyUserList(ctx context.Context, in *v1.CompanyUserListRequest, opts ...grpc.CallOption) (*v1.CompanyUserListReply, error)
- }
- type companyClient struct {
- cc grpc.ClientConnInterface
- }
- func NewCompanyClient(cc grpc.ClientConnInterface) CompanyClient {
- return &companyClient{cc}
- }
- func (c *companyClient) Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error) {
- out := new(v1.LoginReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/Login", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) Register(ctx context.Context, in *v1.RegisterRequest, opts ...grpc.CallOption) (*v1.RegisterReply, error) {
- out := new(v1.RegisterReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/Register", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) LoginByPhone(ctx context.Context, in *v1.LoginByPhoneRequest, opts ...grpc.CallOption) (*v1.LoginByPhoneReply, error) {
- out := new(v1.LoginByPhoneReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/LoginByPhone", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CheckPhone(ctx context.Context, in *v1.CheckPhoneRequest, opts ...grpc.CallOption) (*v1.CheckPhoneReply, error) {
- out := new(v1.CheckPhoneReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CheckPhone", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) ResetPassword(ctx context.Context, in *v1.ResetPasswordRequest, opts ...grpc.CallOption) (*v1.ResetPasswordReply, error) {
- out := new(v1.ResetPasswordReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/ResetPassword", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) ChangePassword(ctx context.Context, in *v1.ChangePasswordRequest, opts ...grpc.CallOption) (*v1.ChangePasswordReply, error) {
- out := new(v1.ChangePasswordReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/ChangePassword", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyApprove(ctx context.Context, in *v1.CompanyApproveRequest, opts ...grpc.CallOption) (*v1.CompanyApproveReply, error) {
- out := new(v1.CompanyApproveReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyApprove", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyList(ctx context.Context, in *v1.CompanyListRequest, opts ...grpc.CallOption) (*v1.CompanyListReply, error) {
- out := new(v1.CompanyListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyInfo(ctx context.Context, in *v1.CompanyInfoRequest, opts ...grpc.CallOption) (*v1.CompanyInfoReply, error) {
- out := new(v1.CompanyInfoReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyUpdate(ctx context.Context, in *v1.CompanyUpdateRequest, opts ...grpc.CallOption) (*v1.CompanyUpdateReply, error) {
- out := new(v1.CompanyUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyAddGarden(ctx context.Context, in *v1.CompanyAddGardenRequest, opts ...grpc.CallOption) (*v1.CompanyAddGardenReply, error) {
- out := new(v1.CompanyAddGardenReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyAddGarden", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyCanAddGarden(ctx context.Context, in *v1.CompanyCanAddGardenRequest, opts ...grpc.CallOption) (*v1.CompanyCanAddGardenReply, error) {
- out := new(v1.CompanyCanAddGardenReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyCanAddGarden", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyChangeFreeGarden(ctx context.Context, in *v1.CompanyChangeFreeGardenRequest, opts ...grpc.CallOption) (*v1.CompanyChangeFreeGardenReply, error) {
- out := new(v1.CompanyChangeFreeGardenReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyChangeFreeGarden", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyGardenDecrease(ctx context.Context, in *v1.CompanyGardenDecreaseRequest, opts ...grpc.CallOption) (*v1.CompanyGardenDecreaseReply, error) {
- out := new(v1.CompanyGardenDecreaseReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyGardenDecrease", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyMchIdSet(ctx context.Context, in *v1.CompanyMchIdSetRequest, opts ...grpc.CallOption) (*v1.CompanyMchIdSetReply, error) {
- out := new(v1.CompanyMchIdSetReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyMchIdSet", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyPayModel(ctx context.Context, in *v1.CompanyPayModelRequest, opts ...grpc.CallOption) (*v1.CompanyPayModelReply, error) {
- out := new(v1.CompanyPayModelReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyPayModel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyWxAccountApply(ctx context.Context, in *v1.CompanyWxAccountApplyRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyReply, error) {
- out := new(v1.CompanyWxAccountApplyReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyWxAccountApply", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyWxAccountApplyList(ctx context.Context, in *v1.CompanyWxAccountApplyListRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyListReply, error) {
- out := new(v1.CompanyWxAccountApplyListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyWxAccountApplyList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyWxAccountApplyInfo(ctx context.Context, in *v1.CompanyWxAccountApplyInfoRequest, opts ...grpc.CallOption) (*v1.CompanyWxAccountApplyInfoReply, error) {
- out := new(v1.CompanyWxAccountApplyInfoReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyWxAccountApplyInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyStatistic(ctx context.Context, in *v1.CompanyStatisticRequest, opts ...grpc.CallOption) (*v1.CompanyStatisticReply, error) {
- out := new(v1.CompanyStatisticReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyStatistic", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyObjStatisticSet(ctx context.Context, in *v1.CompanyObjStatisticSetRequest, opts ...grpc.CallOption) (*v1.CompanyObjStatisticSetReply, error) {
- out := new(v1.CompanyObjStatisticSetReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyObjStatisticSet", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyDealStatisticSet(ctx context.Context, in *v1.CompanyDealStatisticSetRequest, opts ...grpc.CallOption) (*v1.CompanyDealStatisticSetReply, error) {
- out := new(v1.CompanyDealStatisticSetReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyDealStatisticSet", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyUserAdd(ctx context.Context, in *v1.CompanyUserAddRequest, opts ...grpc.CallOption) (*v1.CompanyUserAddReply, error) {
- out := new(v1.CompanyUserAddReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyUserAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyUserUpdate(ctx context.Context, in *v1.CompanyUserUpdateRequest, opts ...grpc.CallOption) (*v1.CompanyUserUpdateReply, error) {
- out := new(v1.CompanyUserUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyUserUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyUserDel(ctx context.Context, in *v1.CompanyUserDelRequest, opts ...grpc.CallOption) (*v1.CompanyUserDelReply, error) {
- out := new(v1.CompanyUserDelReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyUserDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *companyClient) CompanyUserList(ctx context.Context, in *v1.CompanyUserListRequest, opts ...grpc.CallOption) (*v1.CompanyUserListReply, error) {
- out := new(v1.CompanyUserListReply)
- err := c.cc.Invoke(ctx, "/pb.service.Company/CompanyUserList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // CompanyServer is the server API for Company service.
- type CompanyServer interface {
- //
- Login(context.Context, *v1.LoginRequest) (*v1.LoginReply, error)
- Register(context.Context, *v1.RegisterRequest) (*v1.RegisterReply, error)
- LoginByPhone(context.Context, *v1.LoginByPhoneRequest) (*v1.LoginByPhoneReply, error)
- CheckPhone(context.Context, *v1.CheckPhoneRequest) (*v1.CheckPhoneReply, error)
- ResetPassword(context.Context, *v1.ResetPasswordRequest) (*v1.ResetPasswordReply, error)
- ChangePassword(context.Context, *v1.ChangePasswordRequest) (*v1.ChangePasswordReply, error)
- CompanyApprove(context.Context, *v1.CompanyApproveRequest) (*v1.CompanyApproveReply, error)
- CompanyList(context.Context, *v1.CompanyListRequest) (*v1.CompanyListReply, error)
- CompanyInfo(context.Context, *v1.CompanyInfoRequest) (*v1.CompanyInfoReply, error)
- CompanyUpdate(context.Context, *v1.CompanyUpdateRequest) (*v1.CompanyUpdateReply, error)
- // 新增小区
- CompanyAddGarden(context.Context, *v1.CompanyAddGardenRequest) (*v1.CompanyAddGardenReply, error)
- // 检查是否可以新增小区
- CompanyCanAddGarden(context.Context, *v1.CompanyCanAddGardenRequest) (*v1.CompanyCanAddGardenReply, error)
- // 修改配额
- CompanyChangeFreeGarden(context.Context, *v1.CompanyChangeFreeGardenRequest) (*v1.CompanyChangeFreeGardenReply, error)
- // 小区审批未通过时数量减1
- CompanyGardenDecrease(context.Context, *v1.CompanyGardenDecreaseRequest) (*v1.CompanyGardenDecreaseReply, error)
- // 设置商户号
- CompanyMchIdSet(context.Context, *v1.CompanyMchIdSetRequest) (*v1.CompanyMchIdSetReply, error)
- // 设置支付方式 仅线下/支付到公司账户/支付到软件系统提供商账户
- CompanyPayModel(context.Context, *v1.CompanyPayModelRequest) (*v1.CompanyPayModelReply, error)
- // 微信商户申请
- CompanyWxAccountApply(context.Context, *v1.CompanyWxAccountApplyRequest) (*v1.CompanyWxAccountApplyReply, error)
- // 微信商户申请列表
- CompanyWxAccountApplyList(context.Context, *v1.CompanyWxAccountApplyListRequest) (*v1.CompanyWxAccountApplyListReply, error)
- // 微信商户申请资料信息
- CompanyWxAccountApplyInfo(context.Context, *v1.CompanyWxAccountApplyInfoRequest) (*v1.CompanyWxAccountApplyInfoReply, error)
- // 统计
- CompanyStatistic(context.Context, *v1.CompanyStatisticRequest) (*v1.CompanyStatisticReply, error)
- CompanyObjStatisticSet(context.Context, *v1.CompanyObjStatisticSetRequest) (*v1.CompanyObjStatisticSetReply, error)
- CompanyDealStatisticSet(context.Context, *v1.CompanyDealStatisticSetRequest) (*v1.CompanyDealStatisticSetReply, error)
- // 公司用户
- CompanyUserAdd(context.Context, *v1.CompanyUserAddRequest) (*v1.CompanyUserAddReply, error)
- CompanyUserUpdate(context.Context, *v1.CompanyUserUpdateRequest) (*v1.CompanyUserUpdateReply, error)
- CompanyUserDel(context.Context, *v1.CompanyUserDelRequest) (*v1.CompanyUserDelReply, error)
- CompanyUserList(context.Context, *v1.CompanyUserListRequest) (*v1.CompanyUserListReply, error)
- }
- // UnimplementedCompanyServer can be embedded to have forward compatible implementations.
- type UnimplementedCompanyServer struct {
- }
- func (*UnimplementedCompanyServer) Login(ctx context.Context, req *v1.LoginRequest) (*v1.LoginReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
- }
- func (*UnimplementedCompanyServer) Register(ctx context.Context, req *v1.RegisterRequest) (*v1.RegisterReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Register not implemented")
- }
- func (*UnimplementedCompanyServer) LoginByPhone(ctx context.Context, req *v1.LoginByPhoneRequest) (*v1.LoginByPhoneReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method LoginByPhone not implemented")
- }
- func (*UnimplementedCompanyServer) CheckPhone(ctx context.Context, req *v1.CheckPhoneRequest) (*v1.CheckPhoneReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CheckPhone not implemented")
- }
- func (*UnimplementedCompanyServer) ResetPassword(ctx context.Context, req *v1.ResetPasswordRequest) (*v1.ResetPasswordReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ResetPassword not implemented")
- }
- func (*UnimplementedCompanyServer) ChangePassword(ctx context.Context, req *v1.ChangePasswordRequest) (*v1.ChangePasswordReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ChangePassword not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyApprove(ctx context.Context, req *v1.CompanyApproveRequest) (*v1.CompanyApproveReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyApprove not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyList(ctx context.Context, req *v1.CompanyListRequest) (*v1.CompanyListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyList not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyInfo(ctx context.Context, req *v1.CompanyInfoRequest) (*v1.CompanyInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyInfo not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyUpdate(ctx context.Context, req *v1.CompanyUpdateRequest) (*v1.CompanyUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyUpdate not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyAddGarden(ctx context.Context, req *v1.CompanyAddGardenRequest) (*v1.CompanyAddGardenReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyAddGarden not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyCanAddGarden(ctx context.Context, req *v1.CompanyCanAddGardenRequest) (*v1.CompanyCanAddGardenReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyCanAddGarden not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyChangeFreeGarden(ctx context.Context, req *v1.CompanyChangeFreeGardenRequest) (*v1.CompanyChangeFreeGardenReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyChangeFreeGarden not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyGardenDecrease(ctx context.Context, req *v1.CompanyGardenDecreaseRequest) (*v1.CompanyGardenDecreaseReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyGardenDecrease not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyMchIdSet(ctx context.Context, req *v1.CompanyMchIdSetRequest) (*v1.CompanyMchIdSetReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyMchIdSet not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyPayModel(ctx context.Context, req *v1.CompanyPayModelRequest) (*v1.CompanyPayModelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyPayModel not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyWxAccountApply(ctx context.Context, req *v1.CompanyWxAccountApplyRequest) (*v1.CompanyWxAccountApplyReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyWxAccountApply not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyWxAccountApplyList(ctx context.Context, req *v1.CompanyWxAccountApplyListRequest) (*v1.CompanyWxAccountApplyListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyWxAccountApplyList not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyWxAccountApplyInfo(ctx context.Context, req *v1.CompanyWxAccountApplyInfoRequest) (*v1.CompanyWxAccountApplyInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyWxAccountApplyInfo not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyStatistic(ctx context.Context, req *v1.CompanyStatisticRequest) (*v1.CompanyStatisticReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyStatistic not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyObjStatisticSet(ctx context.Context, req *v1.CompanyObjStatisticSetRequest) (*v1.CompanyObjStatisticSetReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyObjStatisticSet not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyDealStatisticSet(ctx context.Context, req *v1.CompanyDealStatisticSetRequest) (*v1.CompanyDealStatisticSetReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyDealStatisticSet not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyUserAdd(ctx context.Context, req *v1.CompanyUserAddRequest) (*v1.CompanyUserAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyUserAdd not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyUserUpdate(ctx context.Context, req *v1.CompanyUserUpdateRequest) (*v1.CompanyUserUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyUserUpdate not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyUserDel(ctx context.Context, req *v1.CompanyUserDelRequest) (*v1.CompanyUserDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyUserDel not implemented")
- }
- func (*UnimplementedCompanyServer) CompanyUserList(ctx context.Context, req *v1.CompanyUserListRequest) (*v1.CompanyUserListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyUserList not implemented")
- }
- func RegisterCompanyServer(s *grpc.Server, srv CompanyServer) {
- s.RegisterService(&_Company_serviceDesc, srv)
- }
- func _Company_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.LoginRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).Login(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/Login",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).Login(ctx, req.(*v1.LoginRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.RegisterRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).Register(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/Register",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).Register(ctx, req.(*v1.RegisterRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_LoginByPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.LoginByPhoneRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).LoginByPhone(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/LoginByPhone",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).LoginByPhone(ctx, req.(*v1.LoginByPhoneRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CheckPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CheckPhoneRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CheckPhone(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CheckPhone",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CheckPhone(ctx, req.(*v1.CheckPhoneRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_ResetPassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ResetPasswordRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).ResetPassword(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/ResetPassword",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).ResetPassword(ctx, req.(*v1.ResetPasswordRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_ChangePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ChangePasswordRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).ChangePassword(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/ChangePassword",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).ChangePassword(ctx, req.(*v1.ChangePasswordRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyApprove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyApproveRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyApprove(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyApprove",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyApprove(ctx, req.(*v1.CompanyApproveRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyList(ctx, req.(*v1.CompanyListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyInfo(ctx, req.(*v1.CompanyInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyUpdate(ctx, req.(*v1.CompanyUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyAddGarden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyAddGardenRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyAddGarden(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyAddGarden",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyAddGarden(ctx, req.(*v1.CompanyAddGardenRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyCanAddGarden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyCanAddGardenRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyCanAddGarden(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyCanAddGarden",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyCanAddGarden(ctx, req.(*v1.CompanyCanAddGardenRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyChangeFreeGarden_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyChangeFreeGardenRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyChangeFreeGarden(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyChangeFreeGarden",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyChangeFreeGarden(ctx, req.(*v1.CompanyChangeFreeGardenRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyGardenDecrease_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyGardenDecreaseRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyGardenDecrease(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyGardenDecrease",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyGardenDecrease(ctx, req.(*v1.CompanyGardenDecreaseRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyMchIdSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyMchIdSetRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyMchIdSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyMchIdSet",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyMchIdSet(ctx, req.(*v1.CompanyMchIdSetRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyPayModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyPayModelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyPayModel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyPayModel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyPayModel(ctx, req.(*v1.CompanyPayModelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyWxAccountApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyWxAccountApplyRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyWxAccountApply(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyWxAccountApply",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyWxAccountApply(ctx, req.(*v1.CompanyWxAccountApplyRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyWxAccountApplyList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyWxAccountApplyListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyWxAccountApplyList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyWxAccountApplyList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyWxAccountApplyList(ctx, req.(*v1.CompanyWxAccountApplyListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyWxAccountApplyInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyWxAccountApplyInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyWxAccountApplyInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyWxAccountApplyInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyWxAccountApplyInfo(ctx, req.(*v1.CompanyWxAccountApplyInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyStatistic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyStatisticRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyStatistic(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyStatistic",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyStatistic(ctx, req.(*v1.CompanyStatisticRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyObjStatisticSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyObjStatisticSetRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyObjStatisticSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyObjStatisticSet",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyObjStatisticSet(ctx, req.(*v1.CompanyObjStatisticSetRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyDealStatisticSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyDealStatisticSetRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyDealStatisticSet(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyDealStatisticSet",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyDealStatisticSet(ctx, req.(*v1.CompanyDealStatisticSetRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyUserAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyUserAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyUserAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyUserAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyUserAdd(ctx, req.(*v1.CompanyUserAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyUserUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyUserUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyUserUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyUserUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyUserUpdate(ctx, req.(*v1.CompanyUserUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyUserDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyUserDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyUserDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyUserDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyUserDel(ctx, req.(*v1.CompanyUserDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Company_CompanyUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyUserListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CompanyServer).CompanyUserList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Company/CompanyUserList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CompanyServer).CompanyUserList(ctx, req.(*v1.CompanyUserListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Company_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.service.Company",
- HandlerType: (*CompanyServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "Login",
- Handler: _Company_Login_Handler,
- },
- {
- MethodName: "Register",
- Handler: _Company_Register_Handler,
- },
- {
- MethodName: "LoginByPhone",
- Handler: _Company_LoginByPhone_Handler,
- },
- {
- MethodName: "CheckPhone",
- Handler: _Company_CheckPhone_Handler,
- },
- {
- MethodName: "ResetPassword",
- Handler: _Company_ResetPassword_Handler,
- },
- {
- MethodName: "ChangePassword",
- Handler: _Company_ChangePassword_Handler,
- },
- {
- MethodName: "CompanyApprove",
- Handler: _Company_CompanyApprove_Handler,
- },
- {
- MethodName: "CompanyList",
- Handler: _Company_CompanyList_Handler,
- },
- {
- MethodName: "CompanyInfo",
- Handler: _Company_CompanyInfo_Handler,
- },
- {
- MethodName: "CompanyUpdate",
- Handler: _Company_CompanyUpdate_Handler,
- },
- {
- MethodName: "CompanyAddGarden",
- Handler: _Company_CompanyAddGarden_Handler,
- },
- {
- MethodName: "CompanyCanAddGarden",
- Handler: _Company_CompanyCanAddGarden_Handler,
- },
- {
- MethodName: "CompanyChangeFreeGarden",
- Handler: _Company_CompanyChangeFreeGarden_Handler,
- },
- {
- MethodName: "CompanyGardenDecrease",
- Handler: _Company_CompanyGardenDecrease_Handler,
- },
- {
- MethodName: "CompanyMchIdSet",
- Handler: _Company_CompanyMchIdSet_Handler,
- },
- {
- MethodName: "CompanyPayModel",
- Handler: _Company_CompanyPayModel_Handler,
- },
- {
- MethodName: "CompanyWxAccountApply",
- Handler: _Company_CompanyWxAccountApply_Handler,
- },
- {
- MethodName: "CompanyWxAccountApplyList",
- Handler: _Company_CompanyWxAccountApplyList_Handler,
- },
- {
- MethodName: "CompanyWxAccountApplyInfo",
- Handler: _Company_CompanyWxAccountApplyInfo_Handler,
- },
- {
- MethodName: "CompanyStatistic",
- Handler: _Company_CompanyStatistic_Handler,
- },
- {
- MethodName: "CompanyObjStatisticSet",
- Handler: _Company_CompanyObjStatisticSet_Handler,
- },
- {
- MethodName: "CompanyDealStatisticSet",
- Handler: _Company_CompanyDealStatisticSet_Handler,
- },
- {
- MethodName: "CompanyUserAdd",
- Handler: _Company_CompanyUserAdd_Handler,
- },
- {
- MethodName: "CompanyUserUpdate",
- Handler: _Company_CompanyUserUpdate_Handler,
- },
- {
- MethodName: "CompanyUserDel",
- Handler: _Company_CompanyUserDel_Handler,
- },
- {
- MethodName: "CompanyUserList",
- Handler: _Company_CompanyUserList_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "company_service.proto",
- }
|