123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927 |
- // 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-gateway/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{
- // 545 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x95, 0xcf, 0x6f, 0xd3, 0x30,
- 0x14, 0xc7, 0xb9, 0xf0, 0x43, 0x0f, 0x18, 0x9b, 0xc7, 0x36, 0x9a, 0xae, 0x4c, 0x03, 0x55, 0x9c,
- 0xd6, 0xa9, 0x70, 0xe3, 0x44, 0x97, 0x69, 0x68, 0x52, 0x11, 0x55, 0x51, 0x85, 0x04, 0x87, 0xc9,
- 0x4d, 0x1e, 0x69, 0x44, 0x17, 0x1b, 0xc7, 0xeb, 0xc8, 0x95, 0xbf, 0x1c, 0x35, 0xb6, 0xf3, 0xc3,
- 0x8d, 0xd3, 0x63, 0xbf, 0x9f, 0xe7, 0xcf, 0x73, 0x9d, 0x17, 0x07, 0x0e, 0x02, 0x76, 0xcb, 0x69,
- 0x92, 0xdd, 0xa4, 0x28, 0x56, 0x71, 0x80, 0x03, 0x2e, 0x98, 0x64, 0x04, 0xf8, 0x7c, 0xa0, 0x13,
- 0x6f, 0x77, 0x35, 0x3c, 0xd7, 0x55, 0x8a, 0xbe, 0xff, 0xb7, 0x03, 0x8f, 0x7d, 0x95, 0x90, 0x21,
- 0x3c, 0x1c, 0xb3, 0x28, 0x4e, 0xc8, 0xfe, 0x80, 0xcf, 0x6f, 0x56, 0xc3, 0x41, 0xfe, 0x6b, 0x8a,
- 0x7f, 0xee, 0x30, 0x95, 0xde, 0x5e, 0x3d, 0xe4, 0xcb, 0xec, 0xcd, 0x03, 0xf2, 0x11, 0x9e, 0x4c,
- 0x31, 0x8a, 0x53, 0x89, 0x82, 0x1c, 0xea, 0x02, 0x13, 0x98, 0x85, 0x2f, 0x37, 0x72, 0xb5, 0xf6,
- 0x0a, 0x9e, 0xe5, 0xae, 0x8b, 0x6c, 0xb2, 0x60, 0x09, 0x12, 0xaf, 0xda, 0x40, 0x87, 0xc6, 0xf1,
- 0xaa, 0x91, 0x29, 0xcf, 0x27, 0x00, 0x7f, 0x81, 0xc1, 0x6f, 0x65, 0x31, 0x95, 0x65, 0x64, 0x1c,
- 0x87, 0x0d, 0x44, 0x19, 0xae, 0xe1, 0xf9, 0x14, 0x53, 0x94, 0x13, 0x9a, 0xa6, 0xf7, 0x4c, 0x84,
- 0xa4, 0x5b, 0x6c, 0xb9, 0x92, 0x1a, 0x4f, 0xa7, 0x19, 0x2a, 0xd5, 0x18, 0x76, 0xfc, 0x05, 0x4d,
- 0x22, 0x2c, 0x5c, 0xc7, 0x45, 0xdb, 0x6a, 0x6c, 0x64, 0x9e, 0x83, 0x96, 0x36, 0xf5, 0x70, 0x46,
- 0x9c, 0x0b, 0xb6, 0xc2, 0xd2, 0x56, 0x8b, 0x37, 0x6c, 0x16, 0x55, 0x36, 0x1f, 0x9e, 0x6a, 0x30,
- 0x8e, 0x53, 0x49, 0x3a, 0xf5, 0xe2, 0x75, 0x66, 0x3c, 0x47, 0x4d, 0xc8, 0x96, 0x5c, 0x27, 0xbf,
- 0x98, 0x2d, 0x59, 0x67, 0x0e, 0x89, 0x42, 0xc5, 0x81, 0xeb, 0x74, 0xc6, 0x43, 0x2a, 0xb1, 0x38,
- 0xf0, 0x5a, 0x6a, 0x1f, 0xb8, 0x05, 0x95, 0x6a, 0x0a, 0xbb, 0xe6, 0xdf, 0x86, 0xe1, 0x67, 0x2a,
- 0x42, 0x4c, 0xc8, 0x6b, 0xeb, 0x18, 0x0c, 0x30, 0xc2, 0x63, 0x27, 0x57, 0xce, 0x9f, 0xb0, 0xaf,
- 0x91, 0x4f, 0x93, 0x52, 0x7b, 0x5a, 0x5f, 0x56, 0x65, 0xc6, 0x7c, 0xd2, 0x56, 0xa2, 0xe4, 0x11,
- 0x1c, 0x19, 0x9a, 0x3f, 0xf3, 0x2b, 0x81, 0xa8, 0x1b, 0xf4, 0xad, 0xd5, 0x16, 0x37, 0x4d, 0xde,
- 0x6e, 0x2b, 0x53, 0x8d, 0xbe, 0xc2, 0x0b, 0x5d, 0x31, 0xa1, 0xd9, 0x17, 0x16, 0xe2, 0x92, 0xf4,
- 0xea, 0x2b, 0x4d, 0x6e, 0xc4, 0x5d, 0x17, 0x56, 0x42, 0x0a, 0x07, 0x9a, 0x7c, 0xff, 0x3b, 0x0a,
- 0x02, 0x76, 0x97, 0xc8, 0x11, 0xe7, 0xcb, 0x8c, 0x58, 0x1b, 0xaa, 0x53, 0x23, 0x3f, 0x6d, 0x2f,
- 0x52, 0x2d, 0x6e, 0xa1, 0xd3, 0xc8, 0xf3, 0x81, 0x7d, 0xd7, 0x66, 0xa8, 0x8e, 0x6f, 0x7f, 0x7b,
- 0x61, 0x7b, 0xbb, 0x7c, 0xb4, 0x5b, 0xdb, 0x55, 0x07, 0xbd, 0xbf, 0xbd, 0xd0, 0x9e, 0xd5, 0x6f,
- 0x92, 0xca, 0x38, 0x95, 0x71, 0x60, 0xcf, 0x6a, 0x01, 0x1c, 0xb3, 0x5a, 0xe1, 0xf6, 0x15, 0x31,
- 0x4b, 0x51, 0x8c, 0xc2, 0xd0, 0xbe, 0x22, 0x74, 0xec, 0xb8, 0x22, 0x0a, 0xaa, 0x6c, 0x33, 0xd8,
- 0xab, 0x00, 0xfd, 0x72, 0x9e, 0x6c, 0x2e, 0xa9, 0xbf, 0xa0, 0x3d, 0x77, 0x41, 0xd3, 0x26, 0x2f,
- 0x71, 0xd9, 0xb4, 0xc9, 0xcb, 0x72, 0x10, 0x3d, 0x07, 0xb5, 0x07, 0x7b, 0x0d, 0xf2, 0xd1, 0x68,
- 0xd8, 0x41, 0x75, 0x20, 0xba, 0x2e, 0x9c, 0x0b, 0x2f, 0x7a, 0x3f, 0xba, 0x5c, 0x30, 0x8e, 0x42,
- 0x66, 0x67, 0xfa, 0xf3, 0x78, 0x16, 0x51, 0x89, 0xf7, 0x34, 0x3b, 0xe7, 0xf3, 0xf9, 0xa3, 0xfc,
- 0x53, 0xf9, 0xe1, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe4, 0x38, 0xc3, 0xb7, 0x61, 0x07, 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)
- // 设置支付方式 仅线下/支付到公司账户/支付到软件系统提供商账户
- 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)
- // 公司用户
- 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) 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) 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)
- // 设置支付方式 仅线下/支付到公司账户/支付到软件系统提供商账户
- 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)
- // 公司用户
- 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) 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) 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_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_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: "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: "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",
- }
|