123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: supplier_management.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 "smart-supplier-management/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("supplier_management.proto", fileDescriptor_66d11ba1f8070d46)
- }
- var fileDescriptor_66d11ba1f8070d46 = []byte{
- // 570 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x95, 0xdd, 0x6e, 0x13, 0x3d,
- 0x10, 0x86, 0x3f, 0x7d, 0x12, 0xa8, 0x98, 0x52, 0x1a, 0xe7, 0xaf, 0x09, 0x50, 0x10, 0xa7, 0xa8,
- 0x89, 0x02, 0x95, 0x90, 0x90, 0x90, 0x28, 0x0d, 0x48, 0xa0, 0x1c, 0x44, 0x4d, 0x8b, 0x10, 0x1c,
- 0xa0, 0x4d, 0x76, 0x48, 0x8d, 0x36, 0x6b, 0x63, 0x3b, 0x8b, 0x72, 0x17, 0x5c, 0x32, 0xb2, 0xbd,
- 0xfe, 0x99, 0x34, 0x70, 0x16, 0x3f, 0x33, 0xef, 0xbb, 0x9e, 0xf1, 0xc4, 0x26, 0x3d, 0xb5, 0x16,
- 0xa2, 0x60, 0x20, 0xbf, 0xad, 0xb2, 0x32, 0x5b, 0xc2, 0x0a, 0x4a, 0x3d, 0x10, 0x92, 0x6b, 0x4e,
- 0xff, 0x17, 0xf3, 0x7e, 0xa3, 0x1a, 0x0d, 0x7d, 0x86, 0xc3, 0xfd, 0xfb, 0xd5, 0x68, 0x98, 0x43,
- 0xc5, 0x16, 0xe0, 0xc0, 0xf3, 0xdf, 0xfb, 0xa4, 0x31, 0x5b, 0x65, 0x52, 0xcf, 0x98, 0x86, 0x59,
- 0x9d, 0x4c, 0x4f, 0xc9, 0xde, 0x05, 0x2c, 0x99, 0xd2, 0x20, 0x69, 0x73, 0x50, 0x8d, 0x06, 0x7e,
- 0x75, 0x01, 0x3f, 0xd7, 0xa0, 0x74, 0xbf, 0x81, 0xa1, 0x28, 0x36, 0x4f, 0xff, 0xa3, 0xcf, 0xc8,
- 0xad, 0x09, 0x5f, 0xb2, 0x92, 0x1e, 0x9a, 0xa8, 0xfd, 0xe9, 0xf3, 0x0f, 0x12, 0xe2, 0x92, 0xdf,
- 0x90, 0xfd, 0x77, 0xab, 0x8c, 0x15, 0x53, 0x09, 0x22, 0x93, 0x40, 0xbb, 0x26, 0x23, 0x25, 0x5e,
- 0xda, 0xbe, 0x19, 0x70, 0x0e, 0xaf, 0xc9, 0x5d, 0x8b, 0xaf, 0x44, 0x9e, 0x69, 0xa0, 0x9d, 0x90,
- 0xe7, 0x80, 0xd7, 0xb7, 0x6e, 0xf0, 0x20, 0x9f, 0x5e, 0xf3, 0x12, 0x52, 0x79, 0x02, 0x90, 0x1c,
- 0x71, 0x27, 0x3f, 0x25, 0x7b, 0x57, 0x0a, 0xe4, 0x87, 0xf2, 0x3b, 0x77, 0x2d, 0xf2, 0x2b, 0xd4,
- 0xa2, 0x08, 0x43, 0xd5, 0x53, 0xc9, 0x2b, 0x96, 0xd7, 0x4a, 0x5b, 0x75, 0x4a, 0x50, 0xd5, 0x38,
- 0xe0, 0x1c, 0xce, 0xc9, 0xbd, 0xb1, 0x3d, 0xc0, 0xcb, 0x8d, 0x80, 0xb3, 0x3c, 0xa7, 0x47, 0x26,
- 0x13, 0x21, 0xef, 0xd1, 0xd9, 0x11, 0x71, 0x26, 0x9f, 0x49, 0x2b, 0xf2, 0x4b, 0x50, 0x9a, 0x95,
- 0x4b, 0xe3, 0xf5, 0x18, 0x2b, 0x62, 0xc4, 0x5b, 0x3e, 0xfa, 0x7b, 0x82, 0x73, 0x7e, 0x49, 0xee,
- 0xb8, 0xb0, 0xb1, 0x6b, 0xc5, 0xec, 0xc4, 0x83, 0x6e, 0xd1, 0x2d, 0xe1, 0x18, 0x8a, 0x54, 0x38,
- 0x86, 0x62, 0x87, 0xd0, 0x52, 0x27, 0x7c, 0x4f, 0x0e, 0xe2, 0x86, 0x26, 0x4c, 0x69, 0xda, 0xc3,
- 0x9b, 0x34, 0xcc, 0x5b, 0x74, 0x77, 0x85, 0x9c, 0xcf, 0x2b, 0x42, 0x5c, 0xc0, 0x7a, 0xb4, 0x63,
- 0x62, 0xaa, 0x6f, 0x6e, 0xe3, 0x38, 0x4b, 0x92, 0xff, 0x80, 0x85, 0xb6, 0xe2, 0x4e, 0x7d, 0x78,
- 0x1e, 0xe0, 0x59, 0x4a, 0x79, 0xa8, 0x7d, 0xba, 0x9e, 0x17, 0x6c, 0xc1, 0xf4, 0xc6, 0xd5, 0x1e,
- 0x96, 0xa8, 0xf6, 0x84, 0x06, 0xe1, 0x0c, 0xf4, 0x34, 0x53, 0xea, 0x57, 0xdd, 0xed, 0xb0, 0x44,
- 0xc2, 0x84, 0x3a, 0xe1, 0x84, 0x1c, 0x86, 0x46, 0x7e, 0xe4, 0x73, 0xbb, 0xeb, 0x07, 0xa8, 0xbd,
- 0x35, 0xf5, 0x36, 0xbd, 0xdd, 0x41, 0xe7, 0xf6, 0x95, 0xb4, 0xfd, 0xa8, 0x9e, 0x09, 0x21, 0x79,
- 0x05, 0x33, 0x9d, 0xe9, 0xb5, 0xa2, 0x4f, 0xd2, 0x29, 0x46, 0x21, 0xef, 0x7b, 0xfc, 0x8f, 0x8c,
- 0xd0, 0xdb, 0xf3, 0xeb, 0xac, 0x2c, 0xa1, 0x88, 0xbd, 0x4d, 0x00, 0xea, 0x2d, 0xe2, 0xe1, 0x58,
- 0x6b, 0x6a, 0x26, 0xb2, 0x9d, 0x64, 0x25, 0x23, 0xd9, 0xdc, 0xc6, 0xe1, 0xbf, 0x56, 0xc3, 0xfa,
- 0x92, 0x38, 0x4a, 0xf2, 0xf0, 0x35, 0xd1, 0xd9, 0x11, 0x09, 0x17, 0xc5, 0x27, 0xc8, 0x19, 0x37,
- 0x9f, 0xb7, 0xdf, 0xf1, 0x2b, 0x74, 0x51, 0x44, 0x18, 0x4e, 0xd6, 0x22, 0x5b, 0x73, 0x2b, 0x64,
- 0xa4, 0x15, 0xd3, 0x2d, 0x1a, 0x6e, 0x18, 0xb3, 0x8d, 0x25, 0xd4, 0x53, 0xd1, 0xf5, 0x1b, 0xf3,
- 0x04, 0xdd, 0x30, 0x38, 0x60, 0x1d, 0xde, 0x1e, 0x7f, 0x79, 0xa8, 0xcc, 0x8b, 0x70, 0xe2, 0xdf,
- 0x8e, 0x93, 0xf8, 0xba, 0x0c, 0xc5, 0x7c, 0x7e, 0xdb, 0xbe, 0x1c, 0x2f, 0xfe, 0x04, 0x00, 0x00,
- 0xff, 0xff, 0xa6, 0xba, 0x4b, 0xe3, 0x7e, 0x06, 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
- // SmartSiteSupplierClient is the client API for SmartSiteSupplier service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type SmartSiteSupplierClient interface {
- Register(ctx context.Context, in *v1.RegisterRequest, opts ...grpc.CallOption) (*v1.RegisterReply, error)
- Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error)
- EmailPrepare(ctx context.Context, in *v1.EmailPrepareRequest, opts ...grpc.CallOption) (*v1.EmailPrepareReply, error)
- EmailUpdate(ctx context.Context, in *v1.EmailUpdateRequest, opts ...grpc.CallOption) (*v1.EmailUpdateReply, error)
- PhoneUpdate(ctx context.Context, in *v1.PhoneUpdateRequest, opts ...grpc.CallOption) (*v1.PhoneUpdateReply, error)
- UserInfo(ctx context.Context, in *v1.UserInfoRequest, opts ...grpc.CallOption) (*v1.UserInfoReply, error)
- ProviderInfo(ctx context.Context, in *v1.ProviderInfoRequest, opts ...grpc.CallOption) (*v1.ProviderInfoReply, error)
- // 设备类型申请
- DeviceTypeAdd(ctx context.Context, in *v1.DeviceTypeAddRequest, opts ...grpc.CallOption) (*v1.DeviceTypeAddReply, error)
- // 设备类型对接申请
- DeviceTypeTestingAdd(ctx context.Context, in *v1.DeviceTypeTestingAddRequest, opts ...grpc.CallOption) (*v1.DeviceTypeTestingAddReply, error)
- // 添加设备
- DeviceAdd(ctx context.Context, in *v1.DeviceAddRequest, opts ...grpc.CallOption) (*v1.DeviceAddReply, error)
- //拆机申请
- DeviceDel(ctx context.Context, in *v1.DeviceDelRequest, opts ...grpc.CallOption) (*v1.DeviceDelReply, error)
- // 设备类型列表
- DeviceTypeList(ctx context.Context, in *v1.DeviceTypeListRequest, opts ...grpc.CallOption) (*v1.DeviceTypeListReply, error)
- // 供应商设备列表
- DeviceList(ctx context.Context, in *v1.DeviceListRequest, opts ...grpc.CallOption) (*v1.DeviceListReply, error)
- // 项目列表
- ProjectList(ctx context.Context, in *v1.ProjectListRequest, opts ...grpc.CallOption) (*v1.ProjectListReply, error)
- // 公示列表
- Publicity(ctx context.Context, in *v1.PublicityRequest, opts ...grpc.CallOption) (*v1.PublicityReply, error)
- // 找回密码
- SetPasswd(ctx context.Context, in *v1.SetPasswdRequest, opts ...grpc.CallOption) (*v1.SetPasswdReply, error)
- DeviceDelJobList(ctx context.Context, in *v1.DeviceDelJobListRequest, opts ...grpc.CallOption) (*v1.DeviceDelJobListReply, error)
- ProviderApproveStatus(ctx context.Context, in *v1.ProviderApproveStatusRequest, opts ...grpc.CallOption) (*v1.ProviderApproveStatusReply, error)
- ChannelList(ctx context.Context, in *v1.ChannelListRequest, opts ...grpc.CallOption) (*v1.ChannelListReply, error)
- ChannelAdd(ctx context.Context, in *v1.ChannelAddRequest, opts ...grpc.CallOption) (*v1.ChannelAddReply, error)
- ChannelUpdate(ctx context.Context, in *v1.ChannelUpdateRequest, opts ...grpc.CallOption) (*v1.ChannelUpdateReply, error)
- VedioAdd(ctx context.Context, in *v1.VedioAddRequest, opts ...grpc.CallOption) (*v1.VedioAddReply, error)
- VedioList(ctx context.Context, in *v1.VedioListRequest, opts ...grpc.CallOption) (*v1.VedioListReply, error)
- ChangePasswd(ctx context.Context, in *v1.ChangePasswdRequest, opts ...grpc.CallOption) (*v1.ChangePasswdReply, error)
- }
- type smartSiteSupplierClient struct {
- cc grpc.ClientConnInterface
- }
- func NewSmartSiteSupplierClient(cc grpc.ClientConnInterface) SmartSiteSupplierClient {
- return &smartSiteSupplierClient{cc}
- }
- func (c *smartSiteSupplierClient) Register(ctx context.Context, in *v1.RegisterRequest, opts ...grpc.CallOption) (*v1.RegisterReply, error) {
- out := new(v1.RegisterReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/Register", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error) {
- out := new(v1.LoginReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/Login", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) EmailPrepare(ctx context.Context, in *v1.EmailPrepareRequest, opts ...grpc.CallOption) (*v1.EmailPrepareReply, error) {
- out := new(v1.EmailPrepareReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/EmailPrepare", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) EmailUpdate(ctx context.Context, in *v1.EmailUpdateRequest, opts ...grpc.CallOption) (*v1.EmailUpdateReply, error) {
- out := new(v1.EmailUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/EmailUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) PhoneUpdate(ctx context.Context, in *v1.PhoneUpdateRequest, opts ...grpc.CallOption) (*v1.PhoneUpdateReply, error) {
- out := new(v1.PhoneUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/PhoneUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) UserInfo(ctx context.Context, in *v1.UserInfoRequest, opts ...grpc.CallOption) (*v1.UserInfoReply, error) {
- out := new(v1.UserInfoReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/UserInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) ProviderInfo(ctx context.Context, in *v1.ProviderInfoRequest, opts ...grpc.CallOption) (*v1.ProviderInfoReply, error) {
- out := new(v1.ProviderInfoReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/ProviderInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) DeviceTypeAdd(ctx context.Context, in *v1.DeviceTypeAddRequest, opts ...grpc.CallOption) (*v1.DeviceTypeAddReply, error) {
- out := new(v1.DeviceTypeAddReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/DeviceTypeAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) DeviceTypeTestingAdd(ctx context.Context, in *v1.DeviceTypeTestingAddRequest, opts ...grpc.CallOption) (*v1.DeviceTypeTestingAddReply, error) {
- out := new(v1.DeviceTypeTestingAddReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/DeviceTypeTestingAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) DeviceAdd(ctx context.Context, in *v1.DeviceAddRequest, opts ...grpc.CallOption) (*v1.DeviceAddReply, error) {
- out := new(v1.DeviceAddReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/DeviceAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) DeviceDel(ctx context.Context, in *v1.DeviceDelRequest, opts ...grpc.CallOption) (*v1.DeviceDelReply, error) {
- out := new(v1.DeviceDelReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/DeviceDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) DeviceTypeList(ctx context.Context, in *v1.DeviceTypeListRequest, opts ...grpc.CallOption) (*v1.DeviceTypeListReply, error) {
- out := new(v1.DeviceTypeListReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/DeviceTypeList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) DeviceList(ctx context.Context, in *v1.DeviceListRequest, opts ...grpc.CallOption) (*v1.DeviceListReply, error) {
- out := new(v1.DeviceListReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/DeviceList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) ProjectList(ctx context.Context, in *v1.ProjectListRequest, opts ...grpc.CallOption) (*v1.ProjectListReply, error) {
- out := new(v1.ProjectListReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/ProjectList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) Publicity(ctx context.Context, in *v1.PublicityRequest, opts ...grpc.CallOption) (*v1.PublicityReply, error) {
- out := new(v1.PublicityReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/Publicity", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) SetPasswd(ctx context.Context, in *v1.SetPasswdRequest, opts ...grpc.CallOption) (*v1.SetPasswdReply, error) {
- out := new(v1.SetPasswdReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/SetPasswd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) DeviceDelJobList(ctx context.Context, in *v1.DeviceDelJobListRequest, opts ...grpc.CallOption) (*v1.DeviceDelJobListReply, error) {
- out := new(v1.DeviceDelJobListReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/DeviceDelJobList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) ProviderApproveStatus(ctx context.Context, in *v1.ProviderApproveStatusRequest, opts ...grpc.CallOption) (*v1.ProviderApproveStatusReply, error) {
- out := new(v1.ProviderApproveStatusReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/ProviderApproveStatus", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) ChannelList(ctx context.Context, in *v1.ChannelListRequest, opts ...grpc.CallOption) (*v1.ChannelListReply, error) {
- out := new(v1.ChannelListReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/ChannelList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) ChannelAdd(ctx context.Context, in *v1.ChannelAddRequest, opts ...grpc.CallOption) (*v1.ChannelAddReply, error) {
- out := new(v1.ChannelAddReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/ChannelAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) ChannelUpdate(ctx context.Context, in *v1.ChannelUpdateRequest, opts ...grpc.CallOption) (*v1.ChannelUpdateReply, error) {
- out := new(v1.ChannelUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/ChannelUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) VedioAdd(ctx context.Context, in *v1.VedioAddRequest, opts ...grpc.CallOption) (*v1.VedioAddReply, error) {
- out := new(v1.VedioAddReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/VedioAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) VedioList(ctx context.Context, in *v1.VedioListRequest, opts ...grpc.CallOption) (*v1.VedioListReply, error) {
- out := new(v1.VedioListReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/VedioList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteSupplierClient) ChangePasswd(ctx context.Context, in *v1.ChangePasswdRequest, opts ...grpc.CallOption) (*v1.ChangePasswdReply, error) {
- out := new(v1.ChangePasswdReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/ChangePasswd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // SmartSiteSupplierServer is the server API for SmartSiteSupplier service.
- type SmartSiteSupplierServer interface {
- Register(context.Context, *v1.RegisterRequest) (*v1.RegisterReply, error)
- Login(context.Context, *v1.LoginRequest) (*v1.LoginReply, error)
- EmailPrepare(context.Context, *v1.EmailPrepareRequest) (*v1.EmailPrepareReply, error)
- EmailUpdate(context.Context, *v1.EmailUpdateRequest) (*v1.EmailUpdateReply, error)
- PhoneUpdate(context.Context, *v1.PhoneUpdateRequest) (*v1.PhoneUpdateReply, error)
- UserInfo(context.Context, *v1.UserInfoRequest) (*v1.UserInfoReply, error)
- ProviderInfo(context.Context, *v1.ProviderInfoRequest) (*v1.ProviderInfoReply, error)
- // 设备类型申请
- DeviceTypeAdd(context.Context, *v1.DeviceTypeAddRequest) (*v1.DeviceTypeAddReply, error)
- // 设备类型对接申请
- DeviceTypeTestingAdd(context.Context, *v1.DeviceTypeTestingAddRequest) (*v1.DeviceTypeTestingAddReply, error)
- // 添加设备
- DeviceAdd(context.Context, *v1.DeviceAddRequest) (*v1.DeviceAddReply, error)
- //拆机申请
- DeviceDel(context.Context, *v1.DeviceDelRequest) (*v1.DeviceDelReply, error)
- // 设备类型列表
- DeviceTypeList(context.Context, *v1.DeviceTypeListRequest) (*v1.DeviceTypeListReply, error)
- // 供应商设备列表
- DeviceList(context.Context, *v1.DeviceListRequest) (*v1.DeviceListReply, error)
- // 项目列表
- ProjectList(context.Context, *v1.ProjectListRequest) (*v1.ProjectListReply, error)
- // 公示列表
- Publicity(context.Context, *v1.PublicityRequest) (*v1.PublicityReply, error)
- // 找回密码
- SetPasswd(context.Context, *v1.SetPasswdRequest) (*v1.SetPasswdReply, error)
- DeviceDelJobList(context.Context, *v1.DeviceDelJobListRequest) (*v1.DeviceDelJobListReply, error)
- ProviderApproveStatus(context.Context, *v1.ProviderApproveStatusRequest) (*v1.ProviderApproveStatusReply, error)
- ChannelList(context.Context, *v1.ChannelListRequest) (*v1.ChannelListReply, error)
- ChannelAdd(context.Context, *v1.ChannelAddRequest) (*v1.ChannelAddReply, error)
- ChannelUpdate(context.Context, *v1.ChannelUpdateRequest) (*v1.ChannelUpdateReply, error)
- VedioAdd(context.Context, *v1.VedioAddRequest) (*v1.VedioAddReply, error)
- VedioList(context.Context, *v1.VedioListRequest) (*v1.VedioListReply, error)
- ChangePasswd(context.Context, *v1.ChangePasswdRequest) (*v1.ChangePasswdReply, error)
- }
- // UnimplementedSmartSiteSupplierServer can be embedded to have forward compatible implementations.
- type UnimplementedSmartSiteSupplierServer struct {
- }
- func (*UnimplementedSmartSiteSupplierServer) Register(ctx context.Context, req *v1.RegisterRequest) (*v1.RegisterReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Register not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) Login(ctx context.Context, req *v1.LoginRequest) (*v1.LoginReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) EmailPrepare(ctx context.Context, req *v1.EmailPrepareRequest) (*v1.EmailPrepareReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method EmailPrepare not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) EmailUpdate(ctx context.Context, req *v1.EmailUpdateRequest) (*v1.EmailUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method EmailUpdate not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) PhoneUpdate(ctx context.Context, req *v1.PhoneUpdateRequest) (*v1.PhoneUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PhoneUpdate not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) UserInfo(ctx context.Context, req *v1.UserInfoRequest) (*v1.UserInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserInfo not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) ProviderInfo(ctx context.Context, req *v1.ProviderInfoRequest) (*v1.ProviderInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ProviderInfo not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) DeviceTypeAdd(ctx context.Context, req *v1.DeviceTypeAddRequest) (*v1.DeviceTypeAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeviceTypeAdd not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) DeviceTypeTestingAdd(ctx context.Context, req *v1.DeviceTypeTestingAddRequest) (*v1.DeviceTypeTestingAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeviceTypeTestingAdd not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) DeviceAdd(ctx context.Context, req *v1.DeviceAddRequest) (*v1.DeviceAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeviceAdd not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) DeviceDel(ctx context.Context, req *v1.DeviceDelRequest) (*v1.DeviceDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeviceDel not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) DeviceTypeList(ctx context.Context, req *v1.DeviceTypeListRequest) (*v1.DeviceTypeListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeviceTypeList not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) DeviceList(ctx context.Context, req *v1.DeviceListRequest) (*v1.DeviceListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeviceList not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) ProjectList(ctx context.Context, req *v1.ProjectListRequest) (*v1.ProjectListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ProjectList not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) Publicity(ctx context.Context, req *v1.PublicityRequest) (*v1.PublicityReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Publicity not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) SetPasswd(ctx context.Context, req *v1.SetPasswdRequest) (*v1.SetPasswdReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SetPasswd not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) DeviceDelJobList(ctx context.Context, req *v1.DeviceDelJobListRequest) (*v1.DeviceDelJobListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeviceDelJobList not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) ProviderApproveStatus(ctx context.Context, req *v1.ProviderApproveStatusRequest) (*v1.ProviderApproveStatusReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ProviderApproveStatus not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) ChannelList(ctx context.Context, req *v1.ChannelListRequest) (*v1.ChannelListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ChannelList not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) ChannelAdd(ctx context.Context, req *v1.ChannelAddRequest) (*v1.ChannelAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ChannelAdd not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) ChannelUpdate(ctx context.Context, req *v1.ChannelUpdateRequest) (*v1.ChannelUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ChannelUpdate not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) VedioAdd(ctx context.Context, req *v1.VedioAddRequest) (*v1.VedioAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method VedioAdd not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) VedioList(ctx context.Context, req *v1.VedioListRequest) (*v1.VedioListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method VedioList not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) ChangePasswd(ctx context.Context, req *v1.ChangePasswdRequest) (*v1.ChangePasswdReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ChangePasswd not implemented")
- }
- func RegisterSmartSiteSupplierServer(s *grpc.Server, srv SmartSiteSupplierServer) {
- s.RegisterService(&_SmartSiteSupplier_serviceDesc, srv)
- }
- func _SmartSiteSupplier_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.(SmartSiteSupplierServer).Register(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/Register",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).Register(ctx, req.(*v1.RegisterRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_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.(SmartSiteSupplierServer).Login(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/Login",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).Login(ctx, req.(*v1.LoginRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_EmailPrepare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.EmailPrepareRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).EmailPrepare(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/EmailPrepare",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).EmailPrepare(ctx, req.(*v1.EmailPrepareRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_EmailUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.EmailUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).EmailUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/EmailUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).EmailUpdate(ctx, req.(*v1.EmailUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_PhoneUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.PhoneUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).PhoneUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/PhoneUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).PhoneUpdate(ctx, req.(*v1.PhoneUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_UserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.UserInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).UserInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/UserInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).UserInfo(ctx, req.(*v1.UserInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_ProviderInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ProviderInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).ProviderInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/ProviderInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).ProviderInfo(ctx, req.(*v1.ProviderInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_DeviceTypeAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DeviceTypeAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).DeviceTypeAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/DeviceTypeAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).DeviceTypeAdd(ctx, req.(*v1.DeviceTypeAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_DeviceTypeTestingAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DeviceTypeTestingAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).DeviceTypeTestingAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/DeviceTypeTestingAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).DeviceTypeTestingAdd(ctx, req.(*v1.DeviceTypeTestingAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_DeviceAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DeviceAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).DeviceAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/DeviceAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).DeviceAdd(ctx, req.(*v1.DeviceAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_DeviceDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DeviceDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).DeviceDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/DeviceDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).DeviceDel(ctx, req.(*v1.DeviceDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_DeviceTypeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DeviceTypeListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).DeviceTypeList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/DeviceTypeList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).DeviceTypeList(ctx, req.(*v1.DeviceTypeListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_DeviceList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DeviceListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).DeviceList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/DeviceList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).DeviceList(ctx, req.(*v1.DeviceListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_ProjectList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ProjectListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).ProjectList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/ProjectList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).ProjectList(ctx, req.(*v1.ProjectListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_Publicity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.PublicityRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).Publicity(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/Publicity",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).Publicity(ctx, req.(*v1.PublicityRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_SetPasswd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.SetPasswdRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).SetPasswd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/SetPasswd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).SetPasswd(ctx, req.(*v1.SetPasswdRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_DeviceDelJobList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DeviceDelJobListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).DeviceDelJobList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/DeviceDelJobList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).DeviceDelJobList(ctx, req.(*v1.DeviceDelJobListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_ProviderApproveStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ProviderApproveStatusRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).ProviderApproveStatus(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/ProviderApproveStatus",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).ProviderApproveStatus(ctx, req.(*v1.ProviderApproveStatusRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_ChannelList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ChannelListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).ChannelList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/ChannelList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).ChannelList(ctx, req.(*v1.ChannelListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_ChannelAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ChannelAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).ChannelAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/ChannelAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).ChannelAdd(ctx, req.(*v1.ChannelAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_ChannelUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ChannelUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).ChannelUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/ChannelUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).ChannelUpdate(ctx, req.(*v1.ChannelUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_VedioAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.VedioAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).VedioAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/VedioAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).VedioAdd(ctx, req.(*v1.VedioAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_VedioList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.VedioListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).VedioList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/VedioList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).VedioList(ctx, req.(*v1.VedioListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteSupplier_ChangePasswd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ChangePasswdRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).ChangePasswd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/ChangePasswd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).ChangePasswd(ctx, req.(*v1.ChangePasswdRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _SmartSiteSupplier_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.SmartSiteSupplier",
- HandlerType: (*SmartSiteSupplierServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "Register",
- Handler: _SmartSiteSupplier_Register_Handler,
- },
- {
- MethodName: "Login",
- Handler: _SmartSiteSupplier_Login_Handler,
- },
- {
- MethodName: "EmailPrepare",
- Handler: _SmartSiteSupplier_EmailPrepare_Handler,
- },
- {
- MethodName: "EmailUpdate",
- Handler: _SmartSiteSupplier_EmailUpdate_Handler,
- },
- {
- MethodName: "PhoneUpdate",
- Handler: _SmartSiteSupplier_PhoneUpdate_Handler,
- },
- {
- MethodName: "UserInfo",
- Handler: _SmartSiteSupplier_UserInfo_Handler,
- },
- {
- MethodName: "ProviderInfo",
- Handler: _SmartSiteSupplier_ProviderInfo_Handler,
- },
- {
- MethodName: "DeviceTypeAdd",
- Handler: _SmartSiteSupplier_DeviceTypeAdd_Handler,
- },
- {
- MethodName: "DeviceTypeTestingAdd",
- Handler: _SmartSiteSupplier_DeviceTypeTestingAdd_Handler,
- },
- {
- MethodName: "DeviceAdd",
- Handler: _SmartSiteSupplier_DeviceAdd_Handler,
- },
- {
- MethodName: "DeviceDel",
- Handler: _SmartSiteSupplier_DeviceDel_Handler,
- },
- {
- MethodName: "DeviceTypeList",
- Handler: _SmartSiteSupplier_DeviceTypeList_Handler,
- },
- {
- MethodName: "DeviceList",
- Handler: _SmartSiteSupplier_DeviceList_Handler,
- },
- {
- MethodName: "ProjectList",
- Handler: _SmartSiteSupplier_ProjectList_Handler,
- },
- {
- MethodName: "Publicity",
- Handler: _SmartSiteSupplier_Publicity_Handler,
- },
- {
- MethodName: "SetPasswd",
- Handler: _SmartSiteSupplier_SetPasswd_Handler,
- },
- {
- MethodName: "DeviceDelJobList",
- Handler: _SmartSiteSupplier_DeviceDelJobList_Handler,
- },
- {
- MethodName: "ProviderApproveStatus",
- Handler: _SmartSiteSupplier_ProviderApproveStatus_Handler,
- },
- {
- MethodName: "ChannelList",
- Handler: _SmartSiteSupplier_ChannelList_Handler,
- },
- {
- MethodName: "ChannelAdd",
- Handler: _SmartSiteSupplier_ChannelAdd_Handler,
- },
- {
- MethodName: "ChannelUpdate",
- Handler: _SmartSiteSupplier_ChannelUpdate_Handler,
- },
- {
- MethodName: "VedioAdd",
- Handler: _SmartSiteSupplier_VedioAdd_Handler,
- },
- {
- MethodName: "VedioList",
- Handler: _SmartSiteSupplier_VedioList_Handler,
- },
- {
- MethodName: "ChangePasswd",
- Handler: _SmartSiteSupplier_ChangePasswd_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "supplier_management.proto",
- }
|