123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922 |
- // 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-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("supplier_management.proto", fileDescriptor_66d11ba1f8070d46)
- }
- var fileDescriptor_66d11ba1f8070d46 = []byte{
- // 543 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x94, 0x5d, 0x8b, 0x13, 0x31,
- 0x14, 0x86, 0x45, 0x50, 0xd6, 0xa8, 0xeb, 0x36, 0xfd, 0xda, 0x56, 0x10, 0x11, 0xf1, 0x46, 0xda,
- 0x52, 0x5d, 0x10, 0x04, 0xc1, 0xba, 0x55, 0x50, 0x7a, 0x51, 0x76, 0x5c, 0x2f, 0xf4, 0x42, 0x32,
- 0x9d, 0xe3, 0x6c, 0x74, 0x3a, 0x89, 0x99, 0x74, 0x96, 0xfe, 0x6f, 0x7f, 0x80, 0x4c, 0x32, 0xf9,
- 0x9a, 0x0e, 0x7b, 0x37, 0x79, 0xce, 0xfb, 0x9e, 0xc9, 0x39, 0x49, 0x0e, 0x1a, 0x15, 0x3b, 0xce,
- 0x33, 0x0a, 0xe2, 0xe7, 0x96, 0xe4, 0x24, 0x85, 0x2d, 0xe4, 0x72, 0xca, 0x05, 0x93, 0x0c, 0xdf,
- 0xe6, 0xf1, 0xb8, 0x53, 0xce, 0x67, 0x46, 0xa1, 0xf1, 0xf8, 0x51, 0x39, 0x9f, 0x25, 0x50, 0xd2,
- 0x0d, 0x68, 0xf0, 0xea, 0x1f, 0x42, 0x9d, 0x68, 0x4b, 0x84, 0x8c, 0xa8, 0x84, 0xa8, 0x16, 0xe3,
- 0x33, 0x74, 0x74, 0x01, 0x29, 0x2d, 0x24, 0x08, 0xdc, 0x9d, 0x96, 0xf3, 0xa9, 0x59, 0x5d, 0xc0,
- 0xdf, 0x1d, 0x14, 0x72, 0xdc, 0x09, 0x21, 0xcf, 0xf6, 0xcf, 0x6e, 0xe1, 0xf7, 0xe8, 0xc1, 0xc7,
- 0x2d, 0xa1, 0xd9, 0x5a, 0x00, 0x27, 0x02, 0xf0, 0xb0, 0x12, 0xf9, 0xc4, 0xb8, 0xfb, 0x87, 0x01,
- 0x9d, 0xe1, 0x1d, 0xba, 0xaf, 0xf0, 0x25, 0x4f, 0x88, 0x04, 0x3c, 0xb0, 0x3a, 0x0d, 0x8c, 0xbf,
- 0x77, 0xc0, 0xad, 0x7d, 0x7d, 0xc5, 0x72, 0xf0, 0xed, 0x1e, 0x08, 0xec, 0x01, 0xd7, 0xf6, 0x33,
- 0x74, 0x74, 0x59, 0x80, 0xf8, 0x9c, 0xff, 0x62, 0xba, 0x6a, 0xb3, 0x0a, 0xaa, 0x76, 0x50, 0xbb,
- 0x5e, 0xa2, 0x3b, 0x2b, 0x96, 0xd2, 0x1c, 0x9f, 0x54, 0x51, 0xf5, 0x69, 0xf4, 0xc7, 0x1e, 0xd1,
- 0xe2, 0x73, 0xf4, 0x70, 0xa9, 0xda, 0xbf, 0x64, 0x9b, 0x3f, 0x34, 0x4f, 0xf1, 0x69, 0x25, 0x09,
- 0x90, 0x31, 0x0f, 0x5a, 0x22, 0x3a, 0xc9, 0x1b, 0x74, 0x4f, 0xf3, 0x45, 0x92, 0xe0, 0x9e, 0x93,
- 0x2d, 0x92, 0xc4, 0x98, 0x71, 0x83, 0x36, 0x8c, 0x4b, 0xc8, 0x7c, 0xe3, 0x12, 0xb2, 0x16, 0xa3,
- 0xa2, 0xda, 0xf8, 0x09, 0x1d, 0x6b, 0xf6, 0x75, 0xcf, 0x61, 0x45, 0x0b, 0x89, 0x47, 0x4e, 0x67,
- 0x98, 0x49, 0x31, 0x6c, 0x0b, 0xe9, 0x3c, 0x6f, 0x11, 0xd2, 0x01, 0x95, 0xa3, 0xef, 0x84, 0xbe,
- 0xbf, 0xdb, 0xc4, 0xee, 0x70, 0x05, 0xfb, 0x0d, 0x1b, 0xa9, 0xcc, 0xfa, 0x70, 0x1d, 0x08, 0x0f,
- 0xd7, 0xe7, 0xb6, 0xf6, 0xf5, 0x2e, 0xce, 0xe8, 0x86, 0xca, 0xbd, 0xae, 0xdd, 0x2e, 0x83, 0xda,
- 0x3d, 0x6a, 0x8d, 0x11, 0xc8, 0x35, 0x29, 0x8a, 0xeb, 0xba, 0xdb, 0x76, 0x19, 0x18, 0x3d, 0xaa,
- 0x8d, 0x2b, 0x74, 0x62, 0x1b, 0xf9, 0x85, 0xc5, 0x6a, 0xd7, 0x8f, 0x83, 0xf6, 0xd6, 0xd4, 0xa4,
- 0x19, 0xb5, 0x07, 0x75, 0xb6, 0x1f, 0xa8, 0xbf, 0x16, 0xac, 0xa4, 0x09, 0x88, 0x05, 0xe7, 0x82,
- 0x95, 0x10, 0x49, 0x22, 0x77, 0x05, 0x7e, 0x5a, 0x17, 0x7c, 0x18, 0x32, 0x79, 0x9f, 0xdc, 0xa0,
- 0xb0, 0xbd, 0x3d, 0xbf, 0x22, 0x79, 0x0e, 0x99, 0xeb, 0xad, 0x07, 0x82, 0xde, 0x06, 0xdc, 0x1e,
- 0x6b, 0x4d, 0xab, 0x1b, 0xd9, 0xf7, 0x54, 0xde, 0x95, 0xec, 0x36, 0xb1, 0x7d, 0x11, 0x35, 0xac,
- 0x5f, 0xed, 0xa9, 0xa7, 0x0b, 0xdf, 0xed, 0xa0, 0x25, 0x62, 0x5f, 0xee, 0x37, 0x48, 0x28, 0xab,
- 0x7e, 0xaf, 0xfe, 0x63, 0x56, 0xc1, 0xcb, 0x75, 0xd0, 0x9e, 0xac, 0x42, 0xaa, 0xe6, 0x9e, 0x55,
- 0xf8, 0x15, 0xe3, 0x06, 0xb5, 0x83, 0xae, 0xda, 0x46, 0x0a, 0xf5, 0xad, 0x18, 0x9a, 0x8d, 0x19,
- 0x12, 0x0c, 0xba, 0x30, 0xa0, 0x32, 0x7c, 0x78, 0xf1, 0xfd, 0x79, 0x51, 0x4d, 0xdd, 0x89, 0x99,
- 0xcf, 0x13, 0x37, 0xc1, 0x27, 0x29, 0x91, 0x70, 0x4d, 0xf6, 0x33, 0x1e, 0xc7, 0x77, 0xd5, 0x94,
- 0x7e, 0xfd, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x46, 0x5a, 0xb2, 0x4d, 0xea, 0x05, 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)
- 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)
- Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error)
- // 设备对接
- DeviceDocking(ctx context.Context, in *v1.DeviceDockingRequest, opts ...grpc.CallOption) (*v1.DeviceDockingReply, 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) 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) 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) DeviceDocking(ctx context.Context, in *v1.DeviceDockingRequest, opts ...grpc.CallOption) (*v1.DeviceDockingReply, error) {
- out := new(v1.DeviceDockingReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteSupplier/DeviceDocking", 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)
- 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)
- Login(context.Context, *v1.LoginRequest) (*v1.LoginReply, error)
- // 设备对接
- DeviceDocking(context.Context, *v1.DeviceDockingRequest) (*v1.DeviceDockingReply, 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) 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) Login(ctx context.Context, req *v1.LoginRequest) (*v1.LoginReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
- }
- func (*UnimplementedSmartSiteSupplierServer) DeviceDocking(ctx context.Context, req *v1.DeviceDockingRequest) (*v1.DeviceDockingReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeviceDocking 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_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_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_DeviceDocking_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DeviceDockingRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteSupplierServer).DeviceDocking(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteSupplier/DeviceDocking",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteSupplierServer).DeviceDocking(ctx, req.(*v1.DeviceDockingRequest))
- }
- 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: "EmailPrepare",
- Handler: _SmartSiteSupplier_EmailPrepare_Handler,
- },
- {
- MethodName: "EmailUpdate",
- Handler: _SmartSiteSupplier_EmailUpdate_Handler,
- },
- {
- MethodName: "PhoneUpdate",
- Handler: _SmartSiteSupplier_PhoneUpdate_Handler,
- },
- {
- MethodName: "UserInfo",
- Handler: _SmartSiteSupplier_UserInfo_Handler,
- },
- {
- MethodName: "Login",
- Handler: _SmartSiteSupplier_Login_Handler,
- },
- {
- MethodName: "DeviceDocking",
- Handler: _SmartSiteSupplier_DeviceDocking_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",
- }
|