1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: enterprise_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-enterprise-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("enterprise_management.proto", fileDescriptor_885de2346b917992)
- }
- var fileDescriptor_885de2346b917992 = []byte{
- // 643 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x95, 0xfd, 0x6b, 0x53, 0x3f,
- 0x14, 0xc6, 0xbf, 0x7c, 0x41, 0x99, 0x51, 0xf7, 0x92, 0xee, 0xcd, 0xeb, 0x44, 0x54, 0x10, 0x41,
- 0xb6, 0x52, 0x1d, 0x08, 0x82, 0x60, 0x6d, 0x37, 0x18, 0x0c, 0x2c, 0xab, 0x13, 0xf1, 0x17, 0x49,
- 0x7b, 0x8f, 0x6d, 0xe4, 0x36, 0x37, 0x26, 0xd9, 0x1d, 0xfd, 0x4b, 0xfc, 0x77, 0xa5, 0xc9, 0xcd,
- 0xcb, 0xb9, 0xbb, 0xf3, 0xb7, 0xe6, 0xf3, 0x9c, 0xe7, 0x29, 0x37, 0x39, 0x27, 0x21, 0x8f, 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0x4c,
- 0xee, 0xda, 0xa7, 0xf4, 0xed, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe6, 0x5d, 0x76, 0xde, 0xa5,
- 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
- // SmartSiteEnterpriseClient is the client API for SmartSiteEnterprise service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type SmartSiteEnterpriseClient 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)
- CompanyInfo(ctx context.Context, in *v1.CompanyInfoRequest, opts ...grpc.CallOption) (*v1.CompanyInfoReply, error)
- // 企业登录
- Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, 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)
- // 添加工程
- ProjectAdd(ctx context.Context, in *v1.ProjectAddRequest, opts ...grpc.CallOption) (*v1.ProjectAddReply, error)
- // 项目列表
- ProjectList(ctx context.Context, in *v1.ProjectListRequest, opts ...grpc.CallOption) (*v1.ProjectListReply, error)
- // 项目账号列表
- ProjectUserList(ctx context.Context, in *v1.ProjectUserListRequest, opts ...grpc.CallOption) (*v1.ProjectUserListReply, error)
- // 项目账号启停用
- EnableProjectUser(ctx context.Context, in *v1.EnableProjectUserRequest, opts ...grpc.CallOption) (*v1.EnableProjectUserReply, error)
- // 企业注册状态
- CompanyApproveStatus(ctx context.Context, in *v1.CompanyApproveStatusRequest, opts ...grpc.CallOption) (*v1.CompanyApproveStatusReply, error)
- // 企业修改密码
- ChangePasswd(ctx context.Context, in *v1.ChangePasswdRequest, opts ...grpc.CallOption) (*v1.ChangePasswdReply, error)
- // 设备类型列表
- DeviceTypeList(ctx context.Context, in *v1.DeviceTypeListRequest, opts ...grpc.CallOption) (*v1.DeviceTypeListReply, error)
- // 平台支持得设备类型
- DeviceAllTypeList(ctx context.Context, in *v1.DeviceAllTypeListRequest, opts ...grpc.CallOption) (*v1.DeviceAllTypeListReply, error)
- // 设备列表
- DeviceList(ctx context.Context, in *v1.DeviceListRequest, opts ...grpc.CallOption) (*v1.DeviceListReply, error)
- // 视频通道列表
- ChannelList(ctx context.Context, in *v1.ChannelListRequest, opts ...grpc.CallOption) (*v1.ChannelListReply, error)
- // 视频设备列表
- VedioList(ctx context.Context, in *v1.VedioListRequest, opts ...grpc.CallOption) (*v1.VedioListReply, error)
- // 更新项目
- ProjectUpdate(ctx context.Context, in *v1.ProjectUpdateRequest, opts ...grpc.CallOption) (*v1.ProjectUpdateReply, error)
- // 获取省市区
- ProjectDistrict(ctx context.Context, in *v1.ProjectDistrictRequest, opts ...grpc.CallOption) (*v1.ProjectDistrictReply, error)
- // 重置项目账号密码
- ProjectUserPasswordReset(ctx context.Context, in *v1.ProjectUserPasswordResetRequest, opts ...grpc.CallOption) (*v1.ProjectUserPasswordResetReply, error)
- ProjectInfo(ctx context.Context, in *v1.ProjectInfoRequest, opts ...grpc.CallOption) (*v1.ProjectInfoReply, error)
- ProjectDel(ctx context.Context, in *v1.ProjectDelRequest, opts ...grpc.CallOption) (*v1.ProjectDelReply, error)
- ProjectFinish(ctx context.Context, in *v1.ProjectFinishRequest, opts ...grpc.CallOption) (*v1.ProjectFinishReply, error)
- AreaCodeList(ctx context.Context, in *v1.AreaCodeListRequest, opts ...grpc.CallOption) (*v1.AreaCodeListReply, error)
- }
- type smartSiteEnterpriseClient struct {
- cc grpc.ClientConnInterface
- }
- func NewSmartSiteEnterpriseClient(cc grpc.ClientConnInterface) SmartSiteEnterpriseClient {
- return &smartSiteEnterpriseClient{cc}
- }
- func (c *smartSiteEnterpriseClient) Register(ctx context.Context, in *v1.RegisterRequest, opts ...grpc.CallOption) (*v1.RegisterReply, error) {
- out := new(v1.RegisterReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/Register", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) EmailPrepare(ctx context.Context, in *v1.EmailPrepareRequest, opts ...grpc.CallOption) (*v1.EmailPrepareReply, error) {
- out := new(v1.EmailPrepareReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/EmailPrepare", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) EmailUpdate(ctx context.Context, in *v1.EmailUpdateRequest, opts ...grpc.CallOption) (*v1.EmailUpdateReply, error) {
- out := new(v1.EmailUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/EmailUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) PhoneUpdate(ctx context.Context, in *v1.PhoneUpdateRequest, opts ...grpc.CallOption) (*v1.PhoneUpdateReply, error) {
- out := new(v1.PhoneUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/PhoneUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) UserInfo(ctx context.Context, in *v1.UserInfoRequest, opts ...grpc.CallOption) (*v1.UserInfoReply, error) {
- out := new(v1.UserInfoReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/UserInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) CompanyInfo(ctx context.Context, in *v1.CompanyInfoRequest, opts ...grpc.CallOption) (*v1.CompanyInfoReply, error) {
- out := new(v1.CompanyInfoReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/CompanyInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error) {
- out := new(v1.LoginReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/Login", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) Publicity(ctx context.Context, in *v1.PublicityRequest, opts ...grpc.CallOption) (*v1.PublicityReply, error) {
- out := new(v1.PublicityReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/Publicity", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) SetPasswd(ctx context.Context, in *v1.SetPasswdRequest, opts ...grpc.CallOption) (*v1.SetPasswdReply, error) {
- out := new(v1.SetPasswdReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/SetPasswd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) ProjectAdd(ctx context.Context, in *v1.ProjectAddRequest, opts ...grpc.CallOption) (*v1.ProjectAddReply, error) {
- out := new(v1.ProjectAddReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectAdd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) ProjectList(ctx context.Context, in *v1.ProjectListRequest, opts ...grpc.CallOption) (*v1.ProjectListReply, error) {
- out := new(v1.ProjectListReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) ProjectUserList(ctx context.Context, in *v1.ProjectUserListRequest, opts ...grpc.CallOption) (*v1.ProjectUserListReply, error) {
- out := new(v1.ProjectUserListReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectUserList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) EnableProjectUser(ctx context.Context, in *v1.EnableProjectUserRequest, opts ...grpc.CallOption) (*v1.EnableProjectUserReply, error) {
- out := new(v1.EnableProjectUserReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/EnableProjectUser", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) CompanyApproveStatus(ctx context.Context, in *v1.CompanyApproveStatusRequest, opts ...grpc.CallOption) (*v1.CompanyApproveStatusReply, error) {
- out := new(v1.CompanyApproveStatusReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/CompanyApproveStatus", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) ChangePasswd(ctx context.Context, in *v1.ChangePasswdRequest, opts ...grpc.CallOption) (*v1.ChangePasswdReply, error) {
- out := new(v1.ChangePasswdReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ChangePasswd", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) DeviceTypeList(ctx context.Context, in *v1.DeviceTypeListRequest, opts ...grpc.CallOption) (*v1.DeviceTypeListReply, error) {
- out := new(v1.DeviceTypeListReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/DeviceTypeList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) DeviceAllTypeList(ctx context.Context, in *v1.DeviceAllTypeListRequest, opts ...grpc.CallOption) (*v1.DeviceAllTypeListReply, error) {
- out := new(v1.DeviceAllTypeListReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/DeviceAllTypeList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) DeviceList(ctx context.Context, in *v1.DeviceListRequest, opts ...grpc.CallOption) (*v1.DeviceListReply, error) {
- out := new(v1.DeviceListReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/DeviceList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) ChannelList(ctx context.Context, in *v1.ChannelListRequest, opts ...grpc.CallOption) (*v1.ChannelListReply, error) {
- out := new(v1.ChannelListReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ChannelList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) VedioList(ctx context.Context, in *v1.VedioListRequest, opts ...grpc.CallOption) (*v1.VedioListReply, error) {
- out := new(v1.VedioListReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/VedioList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) ProjectUpdate(ctx context.Context, in *v1.ProjectUpdateRequest, opts ...grpc.CallOption) (*v1.ProjectUpdateReply, error) {
- out := new(v1.ProjectUpdateReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectUpdate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) ProjectDistrict(ctx context.Context, in *v1.ProjectDistrictRequest, opts ...grpc.CallOption) (*v1.ProjectDistrictReply, error) {
- out := new(v1.ProjectDistrictReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectDistrict", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) ProjectUserPasswordReset(ctx context.Context, in *v1.ProjectUserPasswordResetRequest, opts ...grpc.CallOption) (*v1.ProjectUserPasswordResetReply, error) {
- out := new(v1.ProjectUserPasswordResetReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectUserPasswordReset", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) ProjectInfo(ctx context.Context, in *v1.ProjectInfoRequest, opts ...grpc.CallOption) (*v1.ProjectInfoReply, error) {
- out := new(v1.ProjectInfoReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectInfo", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) ProjectDel(ctx context.Context, in *v1.ProjectDelRequest, opts ...grpc.CallOption) (*v1.ProjectDelReply, error) {
- out := new(v1.ProjectDelReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectDel", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) ProjectFinish(ctx context.Context, in *v1.ProjectFinishRequest, opts ...grpc.CallOption) (*v1.ProjectFinishReply, error) {
- out := new(v1.ProjectFinishReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectFinish", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *smartSiteEnterpriseClient) AreaCodeList(ctx context.Context, in *v1.AreaCodeListRequest, opts ...grpc.CallOption) (*v1.AreaCodeListReply, error) {
- out := new(v1.AreaCodeListReply)
- err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/AreaCodeList", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // SmartSiteEnterpriseServer is the server API for SmartSiteEnterprise service.
- type SmartSiteEnterpriseServer 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)
- CompanyInfo(context.Context, *v1.CompanyInfoRequest) (*v1.CompanyInfoReply, error)
- // 企业登录
- Login(context.Context, *v1.LoginRequest) (*v1.LoginReply, error)
- // 公示列表
- Publicity(context.Context, *v1.PublicityRequest) (*v1.PublicityReply, error)
- // 企业忘记密码设置密码
- SetPasswd(context.Context, *v1.SetPasswdRequest) (*v1.SetPasswdReply, error)
- // 添加工程
- ProjectAdd(context.Context, *v1.ProjectAddRequest) (*v1.ProjectAddReply, error)
- // 项目列表
- ProjectList(context.Context, *v1.ProjectListRequest) (*v1.ProjectListReply, error)
- // 项目账号列表
- ProjectUserList(context.Context, *v1.ProjectUserListRequest) (*v1.ProjectUserListReply, error)
- // 项目账号启停用
- EnableProjectUser(context.Context, *v1.EnableProjectUserRequest) (*v1.EnableProjectUserReply, error)
- // 企业注册状态
- CompanyApproveStatus(context.Context, *v1.CompanyApproveStatusRequest) (*v1.CompanyApproveStatusReply, error)
- // 企业修改密码
- ChangePasswd(context.Context, *v1.ChangePasswdRequest) (*v1.ChangePasswdReply, error)
- // 设备类型列表
- DeviceTypeList(context.Context, *v1.DeviceTypeListRequest) (*v1.DeviceTypeListReply, error)
- // 平台支持得设备类型
- DeviceAllTypeList(context.Context, *v1.DeviceAllTypeListRequest) (*v1.DeviceAllTypeListReply, error)
- // 设备列表
- DeviceList(context.Context, *v1.DeviceListRequest) (*v1.DeviceListReply, error)
- // 视频通道列表
- ChannelList(context.Context, *v1.ChannelListRequest) (*v1.ChannelListReply, error)
- // 视频设备列表
- VedioList(context.Context, *v1.VedioListRequest) (*v1.VedioListReply, error)
- // 更新项目
- ProjectUpdate(context.Context, *v1.ProjectUpdateRequest) (*v1.ProjectUpdateReply, error)
- // 获取省市区
- ProjectDistrict(context.Context, *v1.ProjectDistrictRequest) (*v1.ProjectDistrictReply, error)
- // 重置项目账号密码
- ProjectUserPasswordReset(context.Context, *v1.ProjectUserPasswordResetRequest) (*v1.ProjectUserPasswordResetReply, error)
- ProjectInfo(context.Context, *v1.ProjectInfoRequest) (*v1.ProjectInfoReply, error)
- ProjectDel(context.Context, *v1.ProjectDelRequest) (*v1.ProjectDelReply, error)
- ProjectFinish(context.Context, *v1.ProjectFinishRequest) (*v1.ProjectFinishReply, error)
- AreaCodeList(context.Context, *v1.AreaCodeListRequest) (*v1.AreaCodeListReply, error)
- }
- // UnimplementedSmartSiteEnterpriseServer can be embedded to have forward compatible implementations.
- type UnimplementedSmartSiteEnterpriseServer struct {
- }
- func (*UnimplementedSmartSiteEnterpriseServer) Register(ctx context.Context, req *v1.RegisterRequest) (*v1.RegisterReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Register not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) EmailPrepare(ctx context.Context, req *v1.EmailPrepareRequest) (*v1.EmailPrepareReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method EmailPrepare not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) EmailUpdate(ctx context.Context, req *v1.EmailUpdateRequest) (*v1.EmailUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method EmailUpdate not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) PhoneUpdate(ctx context.Context, req *v1.PhoneUpdateRequest) (*v1.PhoneUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method PhoneUpdate not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) UserInfo(ctx context.Context, req *v1.UserInfoRequest) (*v1.UserInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method UserInfo not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) CompanyInfo(ctx context.Context, req *v1.CompanyInfoRequest) (*v1.CompanyInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyInfo not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) Login(ctx context.Context, req *v1.LoginRequest) (*v1.LoginReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) Publicity(ctx context.Context, req *v1.PublicityRequest) (*v1.PublicityReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Publicity not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) SetPasswd(ctx context.Context, req *v1.SetPasswdRequest) (*v1.SetPasswdReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SetPasswd not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) ProjectAdd(ctx context.Context, req *v1.ProjectAddRequest) (*v1.ProjectAddReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ProjectAdd not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) ProjectList(ctx context.Context, req *v1.ProjectListRequest) (*v1.ProjectListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ProjectList not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) ProjectUserList(ctx context.Context, req *v1.ProjectUserListRequest) (*v1.ProjectUserListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ProjectUserList not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) EnableProjectUser(ctx context.Context, req *v1.EnableProjectUserRequest) (*v1.EnableProjectUserReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method EnableProjectUser not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) CompanyApproveStatus(ctx context.Context, req *v1.CompanyApproveStatusRequest) (*v1.CompanyApproveStatusReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method CompanyApproveStatus not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) ChangePasswd(ctx context.Context, req *v1.ChangePasswdRequest) (*v1.ChangePasswdReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ChangePasswd not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) DeviceTypeList(ctx context.Context, req *v1.DeviceTypeListRequest) (*v1.DeviceTypeListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeviceTypeList not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) DeviceAllTypeList(ctx context.Context, req *v1.DeviceAllTypeListRequest) (*v1.DeviceAllTypeListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeviceAllTypeList not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) DeviceList(ctx context.Context, req *v1.DeviceListRequest) (*v1.DeviceListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeviceList not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) ChannelList(ctx context.Context, req *v1.ChannelListRequest) (*v1.ChannelListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ChannelList not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) VedioList(ctx context.Context, req *v1.VedioListRequest) (*v1.VedioListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method VedioList not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) ProjectUpdate(ctx context.Context, req *v1.ProjectUpdateRequest) (*v1.ProjectUpdateReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ProjectUpdate not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) ProjectDistrict(ctx context.Context, req *v1.ProjectDistrictRequest) (*v1.ProjectDistrictReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ProjectDistrict not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) ProjectUserPasswordReset(ctx context.Context, req *v1.ProjectUserPasswordResetRequest) (*v1.ProjectUserPasswordResetReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ProjectUserPasswordReset not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) ProjectInfo(ctx context.Context, req *v1.ProjectInfoRequest) (*v1.ProjectInfoReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ProjectInfo not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) ProjectDel(ctx context.Context, req *v1.ProjectDelRequest) (*v1.ProjectDelReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ProjectDel not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) ProjectFinish(ctx context.Context, req *v1.ProjectFinishRequest) (*v1.ProjectFinishReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ProjectFinish not implemented")
- }
- func (*UnimplementedSmartSiteEnterpriseServer) AreaCodeList(ctx context.Context, req *v1.AreaCodeListRequest) (*v1.AreaCodeListReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method AreaCodeList not implemented")
- }
- func RegisterSmartSiteEnterpriseServer(s *grpc.Server, srv SmartSiteEnterpriseServer) {
- s.RegisterService(&_SmartSiteEnterprise_serviceDesc, srv)
- }
- func _SmartSiteEnterprise_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.(SmartSiteEnterpriseServer).Register(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/Register",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).Register(ctx, req.(*v1.RegisterRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_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.(SmartSiteEnterpriseServer).EmailPrepare(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/EmailPrepare",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).EmailPrepare(ctx, req.(*v1.EmailPrepareRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_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.(SmartSiteEnterpriseServer).EmailUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/EmailUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).EmailUpdate(ctx, req.(*v1.EmailUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_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.(SmartSiteEnterpriseServer).PhoneUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/PhoneUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).PhoneUpdate(ctx, req.(*v1.PhoneUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_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.(SmartSiteEnterpriseServer).UserInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/UserInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).UserInfo(ctx, req.(*v1.UserInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_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.(SmartSiteEnterpriseServer).CompanyInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/CompanyInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).CompanyInfo(ctx, req.(*v1.CompanyInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_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.(SmartSiteEnterpriseServer).Login(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/Login",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).Login(ctx, req.(*v1.LoginRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_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.(SmartSiteEnterpriseServer).Publicity(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/Publicity",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).Publicity(ctx, req.(*v1.PublicityRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_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.(SmartSiteEnterpriseServer).SetPasswd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/SetPasswd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).SetPasswd(ctx, req.(*v1.SetPasswdRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_ProjectAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ProjectAddRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteEnterpriseServer).ProjectAdd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/ProjectAdd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).ProjectAdd(ctx, req.(*v1.ProjectAddRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_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.(SmartSiteEnterpriseServer).ProjectList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/ProjectList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).ProjectList(ctx, req.(*v1.ProjectListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_ProjectUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ProjectUserListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteEnterpriseServer).ProjectUserList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/ProjectUserList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).ProjectUserList(ctx, req.(*v1.ProjectUserListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_EnableProjectUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.EnableProjectUserRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteEnterpriseServer).EnableProjectUser(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/EnableProjectUser",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).EnableProjectUser(ctx, req.(*v1.EnableProjectUserRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_CompanyApproveStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.CompanyApproveStatusRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteEnterpriseServer).CompanyApproveStatus(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/CompanyApproveStatus",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).CompanyApproveStatus(ctx, req.(*v1.CompanyApproveStatusRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_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.(SmartSiteEnterpriseServer).ChangePasswd(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/ChangePasswd",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).ChangePasswd(ctx, req.(*v1.ChangePasswdRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_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.(SmartSiteEnterpriseServer).DeviceTypeList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/DeviceTypeList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).DeviceTypeList(ctx, req.(*v1.DeviceTypeListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_DeviceAllTypeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.DeviceAllTypeListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteEnterpriseServer).DeviceAllTypeList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/DeviceAllTypeList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).DeviceAllTypeList(ctx, req.(*v1.DeviceAllTypeListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_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.(SmartSiteEnterpriseServer).DeviceList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/DeviceList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).DeviceList(ctx, req.(*v1.DeviceListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_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.(SmartSiteEnterpriseServer).ChannelList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/ChannelList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).ChannelList(ctx, req.(*v1.ChannelListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_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.(SmartSiteEnterpriseServer).VedioList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/VedioList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).VedioList(ctx, req.(*v1.VedioListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_ProjectUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ProjectUpdateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteEnterpriseServer).ProjectUpdate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/ProjectUpdate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).ProjectUpdate(ctx, req.(*v1.ProjectUpdateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_ProjectDistrict_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ProjectDistrictRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteEnterpriseServer).ProjectDistrict(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/ProjectDistrict",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).ProjectDistrict(ctx, req.(*v1.ProjectDistrictRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_ProjectUserPasswordReset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ProjectUserPasswordResetRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteEnterpriseServer).ProjectUserPasswordReset(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/ProjectUserPasswordReset",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).ProjectUserPasswordReset(ctx, req.(*v1.ProjectUserPasswordResetRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_ProjectInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ProjectInfoRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteEnterpriseServer).ProjectInfo(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/ProjectInfo",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).ProjectInfo(ctx, req.(*v1.ProjectInfoRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_ProjectDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ProjectDelRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteEnterpriseServer).ProjectDel(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/ProjectDel",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).ProjectDel(ctx, req.(*v1.ProjectDelRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_ProjectFinish_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ProjectFinishRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteEnterpriseServer).ProjectFinish(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/ProjectFinish",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).ProjectFinish(ctx, req.(*v1.ProjectFinishRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _SmartSiteEnterprise_AreaCodeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.AreaCodeListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(SmartSiteEnterpriseServer).AreaCodeList(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.SmartSiteEnterprise/AreaCodeList",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(SmartSiteEnterpriseServer).AreaCodeList(ctx, req.(*v1.AreaCodeListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _SmartSiteEnterprise_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.SmartSiteEnterprise",
- HandlerType: (*SmartSiteEnterpriseServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "Register",
- Handler: _SmartSiteEnterprise_Register_Handler,
- },
- {
- MethodName: "EmailPrepare",
- Handler: _SmartSiteEnterprise_EmailPrepare_Handler,
- },
- {
- MethodName: "EmailUpdate",
- Handler: _SmartSiteEnterprise_EmailUpdate_Handler,
- },
- {
- MethodName: "PhoneUpdate",
- Handler: _SmartSiteEnterprise_PhoneUpdate_Handler,
- },
- {
- MethodName: "UserInfo",
- Handler: _SmartSiteEnterprise_UserInfo_Handler,
- },
- {
- MethodName: "CompanyInfo",
- Handler: _SmartSiteEnterprise_CompanyInfo_Handler,
- },
- {
- MethodName: "Login",
- Handler: _SmartSiteEnterprise_Login_Handler,
- },
- {
- MethodName: "Publicity",
- Handler: _SmartSiteEnterprise_Publicity_Handler,
- },
- {
- MethodName: "SetPasswd",
- Handler: _SmartSiteEnterprise_SetPasswd_Handler,
- },
- {
- MethodName: "ProjectAdd",
- Handler: _SmartSiteEnterprise_ProjectAdd_Handler,
- },
- {
- MethodName: "ProjectList",
- Handler: _SmartSiteEnterprise_ProjectList_Handler,
- },
- {
- MethodName: "ProjectUserList",
- Handler: _SmartSiteEnterprise_ProjectUserList_Handler,
- },
- {
- MethodName: "EnableProjectUser",
- Handler: _SmartSiteEnterprise_EnableProjectUser_Handler,
- },
- {
- MethodName: "CompanyApproveStatus",
- Handler: _SmartSiteEnterprise_CompanyApproveStatus_Handler,
- },
- {
- MethodName: "ChangePasswd",
- Handler: _SmartSiteEnterprise_ChangePasswd_Handler,
- },
- {
- MethodName: "DeviceTypeList",
- Handler: _SmartSiteEnterprise_DeviceTypeList_Handler,
- },
- {
- MethodName: "DeviceAllTypeList",
- Handler: _SmartSiteEnterprise_DeviceAllTypeList_Handler,
- },
- {
- MethodName: "DeviceList",
- Handler: _SmartSiteEnterprise_DeviceList_Handler,
- },
- {
- MethodName: "ChannelList",
- Handler: _SmartSiteEnterprise_ChannelList_Handler,
- },
- {
- MethodName: "VedioList",
- Handler: _SmartSiteEnterprise_VedioList_Handler,
- },
- {
- MethodName: "ProjectUpdate",
- Handler: _SmartSiteEnterprise_ProjectUpdate_Handler,
- },
- {
- MethodName: "ProjectDistrict",
- Handler: _SmartSiteEnterprise_ProjectDistrict_Handler,
- },
- {
- MethodName: "ProjectUserPasswordReset",
- Handler: _SmartSiteEnterprise_ProjectUserPasswordReset_Handler,
- },
- {
- MethodName: "ProjectInfo",
- Handler: _SmartSiteEnterprise_ProjectInfo_Handler,
- },
- {
- MethodName: "ProjectDel",
- Handler: _SmartSiteEnterprise_ProjectDel_Handler,
- },
- {
- MethodName: "ProjectFinish",
- Handler: _SmartSiteEnterprise_ProjectFinish_Handler,
- },
- {
- MethodName: "AreaCodeList",
- Handler: _SmartSiteEnterprise_AreaCodeList_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "enterprise_management.proto",
- }
|