enterprise_management.pb.go 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: enterprise_management.proto
  3. // package声明符,用来防止不同的消息类型有命名冲突
  4. package pb
  5. import (
  6. context "context"
  7. fmt "fmt"
  8. proto "github.com/golang/protobuf/proto"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. math "math"
  13. v1 "smart-enterprise-management/pb/v1"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  24. func init() {
  25. proto.RegisterFile("enterprise_management.proto", fileDescriptor_885de2346b917992)
  26. }
  27. var fileDescriptor_885de2346b917992 = []byte{
  28. // 604 bytes of a gzipped FileDescriptorProto
  29. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x95, 0x6b, 0x8b, 0x13, 0x3f,
  30. 0x14, 0xc6, 0xff, 0xfc, 0x41, 0x59, 0xa3, 0x7b, 0x4b, 0xf7, 0xe6, 0xb8, 0xde, 0x5f, 0xca, 0x6e,
  31. 0xa9, 0x2e, 0x08, 0x82, 0x60, 0x6d, 0xbb, 0xb0, 0xb0, 0x60, 0x69, 0x5d, 0x11, 0xdf, 0xc8, 0xb4,
  32. 0x73, 0x6c, 0x23, 0xd3, 0x4c, 0x4c, 0xd2, 0x91, 0x7e, 0x11, 0x3f, 0xaf, 0x4c, 0x4e, 0x73, 0x9b,
  33. 0xce, 0xfa, 0x6e, 0xf2, 0x7b, 0xce, 0xf3, 0xc0, 0x9c, 0x9c, 0x24, 0xe4, 0x11, 0x70, 0x0d, 0x52,
  34. 0x48, 0xa6, 0xe0, 0xfb, 0x22, 0xe5, 0xe9, 0x0c, 0x16, 0xc0, 0xf5, 0xb9, 0x90, 0x85, 0x2e, 0xe8,
  35. 0xff, 0x62, 0x92, 0xb4, 0xca, 0x4e, 0xdb, 0xd7, 0xa0, 0x90, 0xec, 0x95, 0x9d, 0xb6, 0x90, 0xc5,
  36. 0x4f, 0x98, 0xae, 0x4b, 0x93, 0xdd, 0xb2, 0xd3, 0xce, 0xa0, 0x64, 0xd3, 0x75, 0xc9, 0xeb, 0x3f,
  37. 0xdb, 0xa4, 0x35, 0x5e, 0xa4, 0x52, 0x8f, 0x99, 0x86, 0x81, 0x0b, 0xa0, 0x17, 0x64, 0x6b, 0x04,
  38. 0x33, 0xa6, 0x34, 0x48, 0xda, 0x3a, 0x2f, 0x3b, 0xe7, 0x76, 0x35, 0x82, 0x5f, 0x4b, 0x50, 0x3a,
  39. 0xd9, 0x8f, 0xa1, 0xc8, 0x57, 0x2f, 0xfe, 0xa3, 0xaf, 0xc8, 0x9d, 0xeb, 0x62, 0xc6, 0x38, 0xdd,
  40. 0xab, 0x54, 0xf3, 0x69, 0xeb, 0x77, 0x02, 0x82, 0xc5, 0x1f, 0xc8, 0x83, 0xc1, 0x22, 0x65, 0xf9,
  41. 0x50, 0x82, 0x48, 0x25, 0xd0, 0xe3, 0xaa, 0x22, 0x24, 0xd6, 0x7a, 0xb8, 0x29, 0x60, 0xc2, 0x7b,
  42. 0x72, 0xdf, 0xe0, 0x1b, 0x91, 0xa5, 0x1a, 0xe8, 0x91, 0xab, 0x43, 0x60, 0xfd, 0x07, 0x1b, 0xdc,
  43. 0xd9, 0x87, 0xf3, 0x82, 0x43, 0x68, 0x0f, 0x40, 0x64, 0x8f, 0x38, 0xda, 0x2f, 0xc8, 0xd6, 0x8d,
  44. 0x02, 0x79, 0xc5, 0x7f, 0x14, 0xd8, 0x22, 0xbb, 0x8a, 0x5a, 0xe4, 0x21, 0xba, 0xde, 0x92, 0x7b,
  45. 0xc3, 0xe5, 0x24, 0x67, 0x53, 0xa6, 0x57, 0x14, 0xa3, 0xed, 0xd2, 0xfa, 0x68, 0x8d, 0x3a, 0xe3,
  46. 0x18, 0xf4, 0x30, 0x55, 0xea, 0x77, 0x86, 0x46, 0xb7, 0x8c, 0x8c, 0x01, 0x45, 0xe3, 0x3b, 0x42,
  47. 0x86, 0x38, 0x04, 0xdd, 0x2c, 0xa3, 0xa6, 0x99, 0x7e, 0x6d, 0xad, 0xad, 0x3a, 0xf6, 0x2d, 0x42,
  48. 0x78, 0xcd, 0x94, 0x5e, 0xb7, 0xc8, 0x83, 0xb8, 0x45, 0x21, 0x47, 0xfb, 0x15, 0xd9, 0x5d, 0xd3,
  49. 0xaa, 0x0d, 0x26, 0x22, 0x09, 0x4a, 0x2d, 0xb4, 0x31, 0x27, 0x8d, 0x1a, 0x46, 0x7d, 0x22, 0xfb,
  50. 0x03, 0x9e, 0x4e, 0x72, 0x08, 0x74, 0x7a, 0x6a, 0x76, 0xb6, 0x8e, 0x6d, 0x5c, 0x72, 0x8b, 0x8a,
  51. 0x81, 0x5f, 0xc9, 0x41, 0xaf, 0x58, 0x88, 0x94, 0xaf, 0xba, 0x42, 0xc8, 0xa2, 0x84, 0xb1, 0x4e,
  52. 0xf5, 0x52, 0xd1, 0xa7, 0x95, 0xab, 0x49, 0xb1, 0xb1, 0x8f, 0x6f, 0x2f, 0x70, 0x83, 0xdd, 0x9b,
  53. 0xa7, 0x7c, 0x06, 0xeb, 0xcd, 0x32, 0x83, 0x1d, 0x92, 0x68, 0xb0, 0x63, 0x01, 0x13, 0x2e, 0xc9,
  54. 0x4e, 0xdf, 0x9c, 0xd2, 0xcf, 0x2b, 0x01, 0xa6, 0x6d, 0x0f, 0xab, 0xd2, 0x98, 0xd9, 0x94, 0xe3,
  55. 0x26, 0xc9, 0x35, 0x0d, 0x85, 0x6e, 0x9e, 0xbb, 0xa8, 0x53, 0x5f, 0x1f, 0xe0, 0xa8, 0x69, 0x0d,
  56. 0xaa, 0x9b, 0x25, 0xd4, 0x4c, 0xd2, 0xa1, 0xaf, 0x0d, 0x23, 0x5a, 0x75, 0xec, 0x66, 0xa9, 0xfa,
  57. 0x57, 0x0e, 0xb9, 0x9f, 0xa5, 0x00, 0x44, 0xb3, 0x14, 0x71, 0x37, 0xff, 0x5f, 0x20, 0x63, 0x85,
  58. 0x31, 0x9b, 0x22, 0xb7, 0x8c, 0xe6, 0x3f, 0xa0, 0x68, 0xec, 0x91, 0x6d, 0xbb, 0xfd, 0x78, 0xd0,
  59. 0xa3, 0x31, 0x8b, 0x8e, 0xfa, 0x51, 0x83, 0x52, 0x9f, 0xe4, 0x3e, 0x53, 0x5a, 0xb2, 0x69, 0x3c,
  60. 0xc9, 0x16, 0x36, 0x4d, 0xb2, 0xd7, 0x30, 0x2a, 0x23, 0x27, 0xc1, 0x38, 0x9a, 0x8d, 0x2f, 0x64,
  61. 0x36, 0x02, 0x05, 0x9a, 0xbe, 0xac, 0x9d, 0x80, 0x48, 0xb5, 0xe1, 0xcf, 0xff, 0x5d, 0x54, 0x3f,
  62. 0xb9, 0xe6, 0x82, 0x0a, 0xff, 0x2c, 0xbc, 0xa3, 0x0e, 0x36, 0x78, 0xfd, 0xd2, 0xe8, 0x43, 0x1e,
  63. 0x5d, 0x1a, 0x7d, 0xc8, 0x9b, 0x2e, 0x0d, 0x83, 0xeb, 0x0d, 0xbf, 0x64, 0x9c, 0xa9, 0x79, 0xd4,
  64. 0x70, 0x44, 0x4d, 0x0d, 0xb7, 0x8a, 0x09, 0xf9, 0xf8, 0xec, 0xdb, 0x13, 0x55, 0xbd, 0x4b, 0x67,
  65. 0xfe, 0x55, 0x3b, 0xf3, 0x2f, 0x5f, 0x5b, 0x4c, 0x26, 0x77, 0xcd, 0x0b, 0xf6, 0xe6, 0x6f, 0x00,
  66. 0x00, 0x00, 0xff, 0xff, 0x96, 0x1b, 0x8c, 0xb3, 0x1c, 0x07, 0x00, 0x00,
  67. }
  68. // Reference imports to suppress errors if they are not otherwise used.
  69. var _ context.Context
  70. var _ grpc.ClientConnInterface
  71. // This is a compile-time assertion to ensure that this generated file
  72. // is compatible with the grpc package it is being compiled against.
  73. const _ = grpc.SupportPackageIsVersion6
  74. // SmartSiteEnterpriseClient is the client API for SmartSiteEnterprise service.
  75. //
  76. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  77. type SmartSiteEnterpriseClient interface {
  78. // 企业注册需政府审批
  79. Register(ctx context.Context, in *v1.RegisterRequest, opts ...grpc.CallOption) (*v1.RegisterReply, error)
  80. // 企业登录
  81. Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error)
  82. EmailPrepare(ctx context.Context, in *v1.EmailPrepareRequest, opts ...grpc.CallOption) (*v1.EmailPrepareReply, error)
  83. EmailUpdate(ctx context.Context, in *v1.EmailUpdateRequest, opts ...grpc.CallOption) (*v1.EmailUpdateReply, error)
  84. PhoneUpdate(ctx context.Context, in *v1.PhoneUpdateRequest, opts ...grpc.CallOption) (*v1.PhoneUpdateReply, error)
  85. UserInfo(ctx context.Context, in *v1.UserInfoRequest, opts ...grpc.CallOption) (*v1.UserInfoReply, error)
  86. // 公示列表
  87. Publicity(ctx context.Context, in *v1.PublicityRequest, opts ...grpc.CallOption) (*v1.PublicityReply, error)
  88. // 企业忘记密码设置密码
  89. SetPasswd(ctx context.Context, in *v1.SetPasswdRequest, opts ...grpc.CallOption) (*v1.SetPasswdReply, error)
  90. // 添加工程
  91. ProjectAdd(ctx context.Context, in *v1.ProjectAddRequest, opts ...grpc.CallOption) (*v1.ProjectAddReply, error)
  92. // 项目列表
  93. ProjectList(ctx context.Context, in *v1.ProjectListRequest, opts ...grpc.CallOption) (*v1.ProjectListReply, error)
  94. // 项目账号列表
  95. ProjectUserList(ctx context.Context, in *v1.ProjectUserListRequest, opts ...grpc.CallOption) (*v1.ProjectUserListReply, error)
  96. // 项目账号启停用
  97. EnableProjectUser(ctx context.Context, in *v1.EnableProjectUserRequest, opts ...grpc.CallOption) (*v1.EnableProjectUserReply, error)
  98. // 企业注册状态
  99. CompanyApproveStatus(ctx context.Context, in *v1.CompanyApproveStatusRequest, opts ...grpc.CallOption) (*v1.CompanyApproveStatusReply, error)
  100. // 企业修改密码
  101. ChangePasswd(ctx context.Context, in *v1.ChangePasswdRequest, opts ...grpc.CallOption) (*v1.ChangePasswdReply, error)
  102. // 设备类型列表
  103. DeviceTypeList(ctx context.Context, in *v1.DeviceTypeListRequest, opts ...grpc.CallOption) (*v1.DeviceTypeListReply, error)
  104. // 平台支持的设备类型
  105. DeviceAllTypeList(ctx context.Context, in *v1.DeviceAllTypeListRequest, opts ...grpc.CallOption) (*v1.DeviceAllTypeListReply, error)
  106. // 设备列表
  107. DeviceList(ctx context.Context, in *v1.DeviceListRequest, opts ...grpc.CallOption) (*v1.DeviceListReply, error)
  108. // 视频通道列表
  109. ChannelList(ctx context.Context, in *v1.ChannelListRequest, opts ...grpc.CallOption) (*v1.ChannelListReply, error)
  110. // 视频设备列表
  111. VedioList(ctx context.Context, in *v1.VedioListRequest, opts ...grpc.CallOption) (*v1.VedioListReply, error)
  112. // 更新项目
  113. ProjectUpdate(ctx context.Context, in *v1.ProjectUpdateRequest, opts ...grpc.CallOption) (*v1.ProjectUpdateReply, error)
  114. // 获取省市区
  115. ProjectDistrict(ctx context.Context, in *v1.ProjectDistrictRequest, opts ...grpc.CallOption) (*v1.ProjectDistrictReply, error)
  116. // 重置项目账号密码
  117. ProjectUserPasswordReset(ctx context.Context, in *v1.ProjectUserPasswordResetRequest, opts ...grpc.CallOption) (*v1.ProjectUserPasswordResetReply, error)
  118. ProjectInfo(ctx context.Context, in *v1.ProjectInfoRequest, opts ...grpc.CallOption) (*v1.ProjectInfoReply, error)
  119. ProjectDel(ctx context.Context, in *v1.ProjectDelRequest, opts ...grpc.CallOption) (*v1.ProjectDelReply, error)
  120. ProjectFinish(ctx context.Context, in *v1.ProjectFinishRequest, opts ...grpc.CallOption) (*v1.ProjectFinishReply, error)
  121. }
  122. type smartSiteEnterpriseClient struct {
  123. cc grpc.ClientConnInterface
  124. }
  125. func NewSmartSiteEnterpriseClient(cc grpc.ClientConnInterface) SmartSiteEnterpriseClient {
  126. return &smartSiteEnterpriseClient{cc}
  127. }
  128. func (c *smartSiteEnterpriseClient) Register(ctx context.Context, in *v1.RegisterRequest, opts ...grpc.CallOption) (*v1.RegisterReply, error) {
  129. out := new(v1.RegisterReply)
  130. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/Register", in, out, opts...)
  131. if err != nil {
  132. return nil, err
  133. }
  134. return out, nil
  135. }
  136. func (c *smartSiteEnterpriseClient) Login(ctx context.Context, in *v1.LoginRequest, opts ...grpc.CallOption) (*v1.LoginReply, error) {
  137. out := new(v1.LoginReply)
  138. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/Login", in, out, opts...)
  139. if err != nil {
  140. return nil, err
  141. }
  142. return out, nil
  143. }
  144. func (c *smartSiteEnterpriseClient) EmailPrepare(ctx context.Context, in *v1.EmailPrepareRequest, opts ...grpc.CallOption) (*v1.EmailPrepareReply, error) {
  145. out := new(v1.EmailPrepareReply)
  146. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/EmailPrepare", in, out, opts...)
  147. if err != nil {
  148. return nil, err
  149. }
  150. return out, nil
  151. }
  152. func (c *smartSiteEnterpriseClient) EmailUpdate(ctx context.Context, in *v1.EmailUpdateRequest, opts ...grpc.CallOption) (*v1.EmailUpdateReply, error) {
  153. out := new(v1.EmailUpdateReply)
  154. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/EmailUpdate", in, out, opts...)
  155. if err != nil {
  156. return nil, err
  157. }
  158. return out, nil
  159. }
  160. func (c *smartSiteEnterpriseClient) PhoneUpdate(ctx context.Context, in *v1.PhoneUpdateRequest, opts ...grpc.CallOption) (*v1.PhoneUpdateReply, error) {
  161. out := new(v1.PhoneUpdateReply)
  162. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/PhoneUpdate", in, out, opts...)
  163. if err != nil {
  164. return nil, err
  165. }
  166. return out, nil
  167. }
  168. func (c *smartSiteEnterpriseClient) UserInfo(ctx context.Context, in *v1.UserInfoRequest, opts ...grpc.CallOption) (*v1.UserInfoReply, error) {
  169. out := new(v1.UserInfoReply)
  170. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/UserInfo", in, out, opts...)
  171. if err != nil {
  172. return nil, err
  173. }
  174. return out, nil
  175. }
  176. func (c *smartSiteEnterpriseClient) Publicity(ctx context.Context, in *v1.PublicityRequest, opts ...grpc.CallOption) (*v1.PublicityReply, error) {
  177. out := new(v1.PublicityReply)
  178. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/Publicity", in, out, opts...)
  179. if err != nil {
  180. return nil, err
  181. }
  182. return out, nil
  183. }
  184. func (c *smartSiteEnterpriseClient) SetPasswd(ctx context.Context, in *v1.SetPasswdRequest, opts ...grpc.CallOption) (*v1.SetPasswdReply, error) {
  185. out := new(v1.SetPasswdReply)
  186. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/SetPasswd", in, out, opts...)
  187. if err != nil {
  188. return nil, err
  189. }
  190. return out, nil
  191. }
  192. func (c *smartSiteEnterpriseClient) ProjectAdd(ctx context.Context, in *v1.ProjectAddRequest, opts ...grpc.CallOption) (*v1.ProjectAddReply, error) {
  193. out := new(v1.ProjectAddReply)
  194. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectAdd", in, out, opts...)
  195. if err != nil {
  196. return nil, err
  197. }
  198. return out, nil
  199. }
  200. func (c *smartSiteEnterpriseClient) ProjectList(ctx context.Context, in *v1.ProjectListRequest, opts ...grpc.CallOption) (*v1.ProjectListReply, error) {
  201. out := new(v1.ProjectListReply)
  202. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectList", in, out, opts...)
  203. if err != nil {
  204. return nil, err
  205. }
  206. return out, nil
  207. }
  208. func (c *smartSiteEnterpriseClient) ProjectUserList(ctx context.Context, in *v1.ProjectUserListRequest, opts ...grpc.CallOption) (*v1.ProjectUserListReply, error) {
  209. out := new(v1.ProjectUserListReply)
  210. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectUserList", in, out, opts...)
  211. if err != nil {
  212. return nil, err
  213. }
  214. return out, nil
  215. }
  216. func (c *smartSiteEnterpriseClient) EnableProjectUser(ctx context.Context, in *v1.EnableProjectUserRequest, opts ...grpc.CallOption) (*v1.EnableProjectUserReply, error) {
  217. out := new(v1.EnableProjectUserReply)
  218. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/EnableProjectUser", in, out, opts...)
  219. if err != nil {
  220. return nil, err
  221. }
  222. return out, nil
  223. }
  224. func (c *smartSiteEnterpriseClient) CompanyApproveStatus(ctx context.Context, in *v1.CompanyApproveStatusRequest, opts ...grpc.CallOption) (*v1.CompanyApproveStatusReply, error) {
  225. out := new(v1.CompanyApproveStatusReply)
  226. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/CompanyApproveStatus", in, out, opts...)
  227. if err != nil {
  228. return nil, err
  229. }
  230. return out, nil
  231. }
  232. func (c *smartSiteEnterpriseClient) ChangePasswd(ctx context.Context, in *v1.ChangePasswdRequest, opts ...grpc.CallOption) (*v1.ChangePasswdReply, error) {
  233. out := new(v1.ChangePasswdReply)
  234. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ChangePasswd", in, out, opts...)
  235. if err != nil {
  236. return nil, err
  237. }
  238. return out, nil
  239. }
  240. func (c *smartSiteEnterpriseClient) DeviceTypeList(ctx context.Context, in *v1.DeviceTypeListRequest, opts ...grpc.CallOption) (*v1.DeviceTypeListReply, error) {
  241. out := new(v1.DeviceTypeListReply)
  242. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/DeviceTypeList", in, out, opts...)
  243. if err != nil {
  244. return nil, err
  245. }
  246. return out, nil
  247. }
  248. func (c *smartSiteEnterpriseClient) DeviceAllTypeList(ctx context.Context, in *v1.DeviceAllTypeListRequest, opts ...grpc.CallOption) (*v1.DeviceAllTypeListReply, error) {
  249. out := new(v1.DeviceAllTypeListReply)
  250. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/DeviceAllTypeList", in, out, opts...)
  251. if err != nil {
  252. return nil, err
  253. }
  254. return out, nil
  255. }
  256. func (c *smartSiteEnterpriseClient) DeviceList(ctx context.Context, in *v1.DeviceListRequest, opts ...grpc.CallOption) (*v1.DeviceListReply, error) {
  257. out := new(v1.DeviceListReply)
  258. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/DeviceList", in, out, opts...)
  259. if err != nil {
  260. return nil, err
  261. }
  262. return out, nil
  263. }
  264. func (c *smartSiteEnterpriseClient) ChannelList(ctx context.Context, in *v1.ChannelListRequest, opts ...grpc.CallOption) (*v1.ChannelListReply, error) {
  265. out := new(v1.ChannelListReply)
  266. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ChannelList", in, out, opts...)
  267. if err != nil {
  268. return nil, err
  269. }
  270. return out, nil
  271. }
  272. func (c *smartSiteEnterpriseClient) VedioList(ctx context.Context, in *v1.VedioListRequest, opts ...grpc.CallOption) (*v1.VedioListReply, error) {
  273. out := new(v1.VedioListReply)
  274. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/VedioList", in, out, opts...)
  275. if err != nil {
  276. return nil, err
  277. }
  278. return out, nil
  279. }
  280. func (c *smartSiteEnterpriseClient) ProjectUpdate(ctx context.Context, in *v1.ProjectUpdateRequest, opts ...grpc.CallOption) (*v1.ProjectUpdateReply, error) {
  281. out := new(v1.ProjectUpdateReply)
  282. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectUpdate", in, out, opts...)
  283. if err != nil {
  284. return nil, err
  285. }
  286. return out, nil
  287. }
  288. func (c *smartSiteEnterpriseClient) ProjectDistrict(ctx context.Context, in *v1.ProjectDistrictRequest, opts ...grpc.CallOption) (*v1.ProjectDistrictReply, error) {
  289. out := new(v1.ProjectDistrictReply)
  290. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectDistrict", in, out, opts...)
  291. if err != nil {
  292. return nil, err
  293. }
  294. return out, nil
  295. }
  296. func (c *smartSiteEnterpriseClient) ProjectUserPasswordReset(ctx context.Context, in *v1.ProjectUserPasswordResetRequest, opts ...grpc.CallOption) (*v1.ProjectUserPasswordResetReply, error) {
  297. out := new(v1.ProjectUserPasswordResetReply)
  298. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectUserPasswordReset", in, out, opts...)
  299. if err != nil {
  300. return nil, err
  301. }
  302. return out, nil
  303. }
  304. func (c *smartSiteEnterpriseClient) ProjectInfo(ctx context.Context, in *v1.ProjectInfoRequest, opts ...grpc.CallOption) (*v1.ProjectInfoReply, error) {
  305. out := new(v1.ProjectInfoReply)
  306. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectInfo", in, out, opts...)
  307. if err != nil {
  308. return nil, err
  309. }
  310. return out, nil
  311. }
  312. func (c *smartSiteEnterpriseClient) ProjectDel(ctx context.Context, in *v1.ProjectDelRequest, opts ...grpc.CallOption) (*v1.ProjectDelReply, error) {
  313. out := new(v1.ProjectDelReply)
  314. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectDel", in, out, opts...)
  315. if err != nil {
  316. return nil, err
  317. }
  318. return out, nil
  319. }
  320. func (c *smartSiteEnterpriseClient) ProjectFinish(ctx context.Context, in *v1.ProjectFinishRequest, opts ...grpc.CallOption) (*v1.ProjectFinishReply, error) {
  321. out := new(v1.ProjectFinishReply)
  322. err := c.cc.Invoke(ctx, "/pb.SmartSiteEnterprise/ProjectFinish", in, out, opts...)
  323. if err != nil {
  324. return nil, err
  325. }
  326. return out, nil
  327. }
  328. // SmartSiteEnterpriseServer is the server API for SmartSiteEnterprise service.
  329. type SmartSiteEnterpriseServer interface {
  330. // 企业注册需政府审批
  331. Register(context.Context, *v1.RegisterRequest) (*v1.RegisterReply, error)
  332. // 企业登录
  333. Login(context.Context, *v1.LoginRequest) (*v1.LoginReply, error)
  334. EmailPrepare(context.Context, *v1.EmailPrepareRequest) (*v1.EmailPrepareReply, error)
  335. EmailUpdate(context.Context, *v1.EmailUpdateRequest) (*v1.EmailUpdateReply, error)
  336. PhoneUpdate(context.Context, *v1.PhoneUpdateRequest) (*v1.PhoneUpdateReply, error)
  337. UserInfo(context.Context, *v1.UserInfoRequest) (*v1.UserInfoReply, error)
  338. // 公示列表
  339. Publicity(context.Context, *v1.PublicityRequest) (*v1.PublicityReply, error)
  340. // 企业忘记密码设置密码
  341. SetPasswd(context.Context, *v1.SetPasswdRequest) (*v1.SetPasswdReply, error)
  342. // 添加工程
  343. ProjectAdd(context.Context, *v1.ProjectAddRequest) (*v1.ProjectAddReply, error)
  344. // 项目列表
  345. ProjectList(context.Context, *v1.ProjectListRequest) (*v1.ProjectListReply, error)
  346. // 项目账号列表
  347. ProjectUserList(context.Context, *v1.ProjectUserListRequest) (*v1.ProjectUserListReply, error)
  348. // 项目账号启停用
  349. EnableProjectUser(context.Context, *v1.EnableProjectUserRequest) (*v1.EnableProjectUserReply, error)
  350. // 企业注册状态
  351. CompanyApproveStatus(context.Context, *v1.CompanyApproveStatusRequest) (*v1.CompanyApproveStatusReply, error)
  352. // 企业修改密码
  353. ChangePasswd(context.Context, *v1.ChangePasswdRequest) (*v1.ChangePasswdReply, error)
  354. // 设备类型列表
  355. DeviceTypeList(context.Context, *v1.DeviceTypeListRequest) (*v1.DeviceTypeListReply, error)
  356. // 平台支持的设备类型
  357. DeviceAllTypeList(context.Context, *v1.DeviceAllTypeListRequest) (*v1.DeviceAllTypeListReply, error)
  358. // 设备列表
  359. DeviceList(context.Context, *v1.DeviceListRequest) (*v1.DeviceListReply, error)
  360. // 视频通道列表
  361. ChannelList(context.Context, *v1.ChannelListRequest) (*v1.ChannelListReply, error)
  362. // 视频设备列表
  363. VedioList(context.Context, *v1.VedioListRequest) (*v1.VedioListReply, error)
  364. // 更新项目
  365. ProjectUpdate(context.Context, *v1.ProjectUpdateRequest) (*v1.ProjectUpdateReply, error)
  366. // 获取省市区
  367. ProjectDistrict(context.Context, *v1.ProjectDistrictRequest) (*v1.ProjectDistrictReply, error)
  368. // 重置项目账号密码
  369. ProjectUserPasswordReset(context.Context, *v1.ProjectUserPasswordResetRequest) (*v1.ProjectUserPasswordResetReply, error)
  370. ProjectInfo(context.Context, *v1.ProjectInfoRequest) (*v1.ProjectInfoReply, error)
  371. ProjectDel(context.Context, *v1.ProjectDelRequest) (*v1.ProjectDelReply, error)
  372. ProjectFinish(context.Context, *v1.ProjectFinishRequest) (*v1.ProjectFinishReply, error)
  373. }
  374. // UnimplementedSmartSiteEnterpriseServer can be embedded to have forward compatible implementations.
  375. type UnimplementedSmartSiteEnterpriseServer struct {
  376. }
  377. func (*UnimplementedSmartSiteEnterpriseServer) Register(ctx context.Context, req *v1.RegisterRequest) (*v1.RegisterReply, error) {
  378. return nil, status.Errorf(codes.Unimplemented, "method Register not implemented")
  379. }
  380. func (*UnimplementedSmartSiteEnterpriseServer) Login(ctx context.Context, req *v1.LoginRequest) (*v1.LoginReply, error) {
  381. return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
  382. }
  383. func (*UnimplementedSmartSiteEnterpriseServer) EmailPrepare(ctx context.Context, req *v1.EmailPrepareRequest) (*v1.EmailPrepareReply, error) {
  384. return nil, status.Errorf(codes.Unimplemented, "method EmailPrepare not implemented")
  385. }
  386. func (*UnimplementedSmartSiteEnterpriseServer) EmailUpdate(ctx context.Context, req *v1.EmailUpdateRequest) (*v1.EmailUpdateReply, error) {
  387. return nil, status.Errorf(codes.Unimplemented, "method EmailUpdate not implemented")
  388. }
  389. func (*UnimplementedSmartSiteEnterpriseServer) PhoneUpdate(ctx context.Context, req *v1.PhoneUpdateRequest) (*v1.PhoneUpdateReply, error) {
  390. return nil, status.Errorf(codes.Unimplemented, "method PhoneUpdate not implemented")
  391. }
  392. func (*UnimplementedSmartSiteEnterpriseServer) UserInfo(ctx context.Context, req *v1.UserInfoRequest) (*v1.UserInfoReply, error) {
  393. return nil, status.Errorf(codes.Unimplemented, "method UserInfo not implemented")
  394. }
  395. func (*UnimplementedSmartSiteEnterpriseServer) Publicity(ctx context.Context, req *v1.PublicityRequest) (*v1.PublicityReply, error) {
  396. return nil, status.Errorf(codes.Unimplemented, "method Publicity not implemented")
  397. }
  398. func (*UnimplementedSmartSiteEnterpriseServer) SetPasswd(ctx context.Context, req *v1.SetPasswdRequest) (*v1.SetPasswdReply, error) {
  399. return nil, status.Errorf(codes.Unimplemented, "method SetPasswd not implemented")
  400. }
  401. func (*UnimplementedSmartSiteEnterpriseServer) ProjectAdd(ctx context.Context, req *v1.ProjectAddRequest) (*v1.ProjectAddReply, error) {
  402. return nil, status.Errorf(codes.Unimplemented, "method ProjectAdd not implemented")
  403. }
  404. func (*UnimplementedSmartSiteEnterpriseServer) ProjectList(ctx context.Context, req *v1.ProjectListRequest) (*v1.ProjectListReply, error) {
  405. return nil, status.Errorf(codes.Unimplemented, "method ProjectList not implemented")
  406. }
  407. func (*UnimplementedSmartSiteEnterpriseServer) ProjectUserList(ctx context.Context, req *v1.ProjectUserListRequest) (*v1.ProjectUserListReply, error) {
  408. return nil, status.Errorf(codes.Unimplemented, "method ProjectUserList not implemented")
  409. }
  410. func (*UnimplementedSmartSiteEnterpriseServer) EnableProjectUser(ctx context.Context, req *v1.EnableProjectUserRequest) (*v1.EnableProjectUserReply, error) {
  411. return nil, status.Errorf(codes.Unimplemented, "method EnableProjectUser not implemented")
  412. }
  413. func (*UnimplementedSmartSiteEnterpriseServer) CompanyApproveStatus(ctx context.Context, req *v1.CompanyApproveStatusRequest) (*v1.CompanyApproveStatusReply, error) {
  414. return nil, status.Errorf(codes.Unimplemented, "method CompanyApproveStatus not implemented")
  415. }
  416. func (*UnimplementedSmartSiteEnterpriseServer) ChangePasswd(ctx context.Context, req *v1.ChangePasswdRequest) (*v1.ChangePasswdReply, error) {
  417. return nil, status.Errorf(codes.Unimplemented, "method ChangePasswd not implemented")
  418. }
  419. func (*UnimplementedSmartSiteEnterpriseServer) DeviceTypeList(ctx context.Context, req *v1.DeviceTypeListRequest) (*v1.DeviceTypeListReply, error) {
  420. return nil, status.Errorf(codes.Unimplemented, "method DeviceTypeList not implemented")
  421. }
  422. func (*UnimplementedSmartSiteEnterpriseServer) DeviceAllTypeList(ctx context.Context, req *v1.DeviceAllTypeListRequest) (*v1.DeviceAllTypeListReply, error) {
  423. return nil, status.Errorf(codes.Unimplemented, "method DeviceAllTypeList not implemented")
  424. }
  425. func (*UnimplementedSmartSiteEnterpriseServer) DeviceList(ctx context.Context, req *v1.DeviceListRequest) (*v1.DeviceListReply, error) {
  426. return nil, status.Errorf(codes.Unimplemented, "method DeviceList not implemented")
  427. }
  428. func (*UnimplementedSmartSiteEnterpriseServer) ChannelList(ctx context.Context, req *v1.ChannelListRequest) (*v1.ChannelListReply, error) {
  429. return nil, status.Errorf(codes.Unimplemented, "method ChannelList not implemented")
  430. }
  431. func (*UnimplementedSmartSiteEnterpriseServer) VedioList(ctx context.Context, req *v1.VedioListRequest) (*v1.VedioListReply, error) {
  432. return nil, status.Errorf(codes.Unimplemented, "method VedioList not implemented")
  433. }
  434. func (*UnimplementedSmartSiteEnterpriseServer) ProjectUpdate(ctx context.Context, req *v1.ProjectUpdateRequest) (*v1.ProjectUpdateReply, error) {
  435. return nil, status.Errorf(codes.Unimplemented, "method ProjectUpdate not implemented")
  436. }
  437. func (*UnimplementedSmartSiteEnterpriseServer) ProjectDistrict(ctx context.Context, req *v1.ProjectDistrictRequest) (*v1.ProjectDistrictReply, error) {
  438. return nil, status.Errorf(codes.Unimplemented, "method ProjectDistrict not implemented")
  439. }
  440. func (*UnimplementedSmartSiteEnterpriseServer) ProjectUserPasswordReset(ctx context.Context, req *v1.ProjectUserPasswordResetRequest) (*v1.ProjectUserPasswordResetReply, error) {
  441. return nil, status.Errorf(codes.Unimplemented, "method ProjectUserPasswordReset not implemented")
  442. }
  443. func (*UnimplementedSmartSiteEnterpriseServer) ProjectInfo(ctx context.Context, req *v1.ProjectInfoRequest) (*v1.ProjectInfoReply, error) {
  444. return nil, status.Errorf(codes.Unimplemented, "method ProjectInfo not implemented")
  445. }
  446. func (*UnimplementedSmartSiteEnterpriseServer) ProjectDel(ctx context.Context, req *v1.ProjectDelRequest) (*v1.ProjectDelReply, error) {
  447. return nil, status.Errorf(codes.Unimplemented, "method ProjectDel not implemented")
  448. }
  449. func (*UnimplementedSmartSiteEnterpriseServer) ProjectFinish(ctx context.Context, req *v1.ProjectFinishRequest) (*v1.ProjectFinishReply, error) {
  450. return nil, status.Errorf(codes.Unimplemented, "method ProjectFinish not implemented")
  451. }
  452. func RegisterSmartSiteEnterpriseServer(s *grpc.Server, srv SmartSiteEnterpriseServer) {
  453. s.RegisterService(&_SmartSiteEnterprise_serviceDesc, srv)
  454. }
  455. func _SmartSiteEnterprise_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  456. in := new(v1.RegisterRequest)
  457. if err := dec(in); err != nil {
  458. return nil, err
  459. }
  460. if interceptor == nil {
  461. return srv.(SmartSiteEnterpriseServer).Register(ctx, in)
  462. }
  463. info := &grpc.UnaryServerInfo{
  464. Server: srv,
  465. FullMethod: "/pb.SmartSiteEnterprise/Register",
  466. }
  467. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  468. return srv.(SmartSiteEnterpriseServer).Register(ctx, req.(*v1.RegisterRequest))
  469. }
  470. return interceptor(ctx, in, info, handler)
  471. }
  472. func _SmartSiteEnterprise_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  473. in := new(v1.LoginRequest)
  474. if err := dec(in); err != nil {
  475. return nil, err
  476. }
  477. if interceptor == nil {
  478. return srv.(SmartSiteEnterpriseServer).Login(ctx, in)
  479. }
  480. info := &grpc.UnaryServerInfo{
  481. Server: srv,
  482. FullMethod: "/pb.SmartSiteEnterprise/Login",
  483. }
  484. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  485. return srv.(SmartSiteEnterpriseServer).Login(ctx, req.(*v1.LoginRequest))
  486. }
  487. return interceptor(ctx, in, info, handler)
  488. }
  489. func _SmartSiteEnterprise_EmailPrepare_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  490. in := new(v1.EmailPrepareRequest)
  491. if err := dec(in); err != nil {
  492. return nil, err
  493. }
  494. if interceptor == nil {
  495. return srv.(SmartSiteEnterpriseServer).EmailPrepare(ctx, in)
  496. }
  497. info := &grpc.UnaryServerInfo{
  498. Server: srv,
  499. FullMethod: "/pb.SmartSiteEnterprise/EmailPrepare",
  500. }
  501. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  502. return srv.(SmartSiteEnterpriseServer).EmailPrepare(ctx, req.(*v1.EmailPrepareRequest))
  503. }
  504. return interceptor(ctx, in, info, handler)
  505. }
  506. func _SmartSiteEnterprise_EmailUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  507. in := new(v1.EmailUpdateRequest)
  508. if err := dec(in); err != nil {
  509. return nil, err
  510. }
  511. if interceptor == nil {
  512. return srv.(SmartSiteEnterpriseServer).EmailUpdate(ctx, in)
  513. }
  514. info := &grpc.UnaryServerInfo{
  515. Server: srv,
  516. FullMethod: "/pb.SmartSiteEnterprise/EmailUpdate",
  517. }
  518. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  519. return srv.(SmartSiteEnterpriseServer).EmailUpdate(ctx, req.(*v1.EmailUpdateRequest))
  520. }
  521. return interceptor(ctx, in, info, handler)
  522. }
  523. func _SmartSiteEnterprise_PhoneUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  524. in := new(v1.PhoneUpdateRequest)
  525. if err := dec(in); err != nil {
  526. return nil, err
  527. }
  528. if interceptor == nil {
  529. return srv.(SmartSiteEnterpriseServer).PhoneUpdate(ctx, in)
  530. }
  531. info := &grpc.UnaryServerInfo{
  532. Server: srv,
  533. FullMethod: "/pb.SmartSiteEnterprise/PhoneUpdate",
  534. }
  535. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  536. return srv.(SmartSiteEnterpriseServer).PhoneUpdate(ctx, req.(*v1.PhoneUpdateRequest))
  537. }
  538. return interceptor(ctx, in, info, handler)
  539. }
  540. func _SmartSiteEnterprise_UserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  541. in := new(v1.UserInfoRequest)
  542. if err := dec(in); err != nil {
  543. return nil, err
  544. }
  545. if interceptor == nil {
  546. return srv.(SmartSiteEnterpriseServer).UserInfo(ctx, in)
  547. }
  548. info := &grpc.UnaryServerInfo{
  549. Server: srv,
  550. FullMethod: "/pb.SmartSiteEnterprise/UserInfo",
  551. }
  552. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  553. return srv.(SmartSiteEnterpriseServer).UserInfo(ctx, req.(*v1.UserInfoRequest))
  554. }
  555. return interceptor(ctx, in, info, handler)
  556. }
  557. func _SmartSiteEnterprise_Publicity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  558. in := new(v1.PublicityRequest)
  559. if err := dec(in); err != nil {
  560. return nil, err
  561. }
  562. if interceptor == nil {
  563. return srv.(SmartSiteEnterpriseServer).Publicity(ctx, in)
  564. }
  565. info := &grpc.UnaryServerInfo{
  566. Server: srv,
  567. FullMethod: "/pb.SmartSiteEnterprise/Publicity",
  568. }
  569. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  570. return srv.(SmartSiteEnterpriseServer).Publicity(ctx, req.(*v1.PublicityRequest))
  571. }
  572. return interceptor(ctx, in, info, handler)
  573. }
  574. func _SmartSiteEnterprise_SetPasswd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  575. in := new(v1.SetPasswdRequest)
  576. if err := dec(in); err != nil {
  577. return nil, err
  578. }
  579. if interceptor == nil {
  580. return srv.(SmartSiteEnterpriseServer).SetPasswd(ctx, in)
  581. }
  582. info := &grpc.UnaryServerInfo{
  583. Server: srv,
  584. FullMethod: "/pb.SmartSiteEnterprise/SetPasswd",
  585. }
  586. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  587. return srv.(SmartSiteEnterpriseServer).SetPasswd(ctx, req.(*v1.SetPasswdRequest))
  588. }
  589. return interceptor(ctx, in, info, handler)
  590. }
  591. func _SmartSiteEnterprise_ProjectAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  592. in := new(v1.ProjectAddRequest)
  593. if err := dec(in); err != nil {
  594. return nil, err
  595. }
  596. if interceptor == nil {
  597. return srv.(SmartSiteEnterpriseServer).ProjectAdd(ctx, in)
  598. }
  599. info := &grpc.UnaryServerInfo{
  600. Server: srv,
  601. FullMethod: "/pb.SmartSiteEnterprise/ProjectAdd",
  602. }
  603. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  604. return srv.(SmartSiteEnterpriseServer).ProjectAdd(ctx, req.(*v1.ProjectAddRequest))
  605. }
  606. return interceptor(ctx, in, info, handler)
  607. }
  608. func _SmartSiteEnterprise_ProjectList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  609. in := new(v1.ProjectListRequest)
  610. if err := dec(in); err != nil {
  611. return nil, err
  612. }
  613. if interceptor == nil {
  614. return srv.(SmartSiteEnterpriseServer).ProjectList(ctx, in)
  615. }
  616. info := &grpc.UnaryServerInfo{
  617. Server: srv,
  618. FullMethod: "/pb.SmartSiteEnterprise/ProjectList",
  619. }
  620. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  621. return srv.(SmartSiteEnterpriseServer).ProjectList(ctx, req.(*v1.ProjectListRequest))
  622. }
  623. return interceptor(ctx, in, info, handler)
  624. }
  625. func _SmartSiteEnterprise_ProjectUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  626. in := new(v1.ProjectUserListRequest)
  627. if err := dec(in); err != nil {
  628. return nil, err
  629. }
  630. if interceptor == nil {
  631. return srv.(SmartSiteEnterpriseServer).ProjectUserList(ctx, in)
  632. }
  633. info := &grpc.UnaryServerInfo{
  634. Server: srv,
  635. FullMethod: "/pb.SmartSiteEnterprise/ProjectUserList",
  636. }
  637. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  638. return srv.(SmartSiteEnterpriseServer).ProjectUserList(ctx, req.(*v1.ProjectUserListRequest))
  639. }
  640. return interceptor(ctx, in, info, handler)
  641. }
  642. func _SmartSiteEnterprise_EnableProjectUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  643. in := new(v1.EnableProjectUserRequest)
  644. if err := dec(in); err != nil {
  645. return nil, err
  646. }
  647. if interceptor == nil {
  648. return srv.(SmartSiteEnterpriseServer).EnableProjectUser(ctx, in)
  649. }
  650. info := &grpc.UnaryServerInfo{
  651. Server: srv,
  652. FullMethod: "/pb.SmartSiteEnterprise/EnableProjectUser",
  653. }
  654. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  655. return srv.(SmartSiteEnterpriseServer).EnableProjectUser(ctx, req.(*v1.EnableProjectUserRequest))
  656. }
  657. return interceptor(ctx, in, info, handler)
  658. }
  659. func _SmartSiteEnterprise_CompanyApproveStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  660. in := new(v1.CompanyApproveStatusRequest)
  661. if err := dec(in); err != nil {
  662. return nil, err
  663. }
  664. if interceptor == nil {
  665. return srv.(SmartSiteEnterpriseServer).CompanyApproveStatus(ctx, in)
  666. }
  667. info := &grpc.UnaryServerInfo{
  668. Server: srv,
  669. FullMethod: "/pb.SmartSiteEnterprise/CompanyApproveStatus",
  670. }
  671. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  672. return srv.(SmartSiteEnterpriseServer).CompanyApproveStatus(ctx, req.(*v1.CompanyApproveStatusRequest))
  673. }
  674. return interceptor(ctx, in, info, handler)
  675. }
  676. func _SmartSiteEnterprise_ChangePasswd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  677. in := new(v1.ChangePasswdRequest)
  678. if err := dec(in); err != nil {
  679. return nil, err
  680. }
  681. if interceptor == nil {
  682. return srv.(SmartSiteEnterpriseServer).ChangePasswd(ctx, in)
  683. }
  684. info := &grpc.UnaryServerInfo{
  685. Server: srv,
  686. FullMethod: "/pb.SmartSiteEnterprise/ChangePasswd",
  687. }
  688. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  689. return srv.(SmartSiteEnterpriseServer).ChangePasswd(ctx, req.(*v1.ChangePasswdRequest))
  690. }
  691. return interceptor(ctx, in, info, handler)
  692. }
  693. func _SmartSiteEnterprise_DeviceTypeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  694. in := new(v1.DeviceTypeListRequest)
  695. if err := dec(in); err != nil {
  696. return nil, err
  697. }
  698. if interceptor == nil {
  699. return srv.(SmartSiteEnterpriseServer).DeviceTypeList(ctx, in)
  700. }
  701. info := &grpc.UnaryServerInfo{
  702. Server: srv,
  703. FullMethod: "/pb.SmartSiteEnterprise/DeviceTypeList",
  704. }
  705. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  706. return srv.(SmartSiteEnterpriseServer).DeviceTypeList(ctx, req.(*v1.DeviceTypeListRequest))
  707. }
  708. return interceptor(ctx, in, info, handler)
  709. }
  710. func _SmartSiteEnterprise_DeviceAllTypeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  711. in := new(v1.DeviceAllTypeListRequest)
  712. if err := dec(in); err != nil {
  713. return nil, err
  714. }
  715. if interceptor == nil {
  716. return srv.(SmartSiteEnterpriseServer).DeviceAllTypeList(ctx, in)
  717. }
  718. info := &grpc.UnaryServerInfo{
  719. Server: srv,
  720. FullMethod: "/pb.SmartSiteEnterprise/DeviceAllTypeList",
  721. }
  722. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  723. return srv.(SmartSiteEnterpriseServer).DeviceAllTypeList(ctx, req.(*v1.DeviceAllTypeListRequest))
  724. }
  725. return interceptor(ctx, in, info, handler)
  726. }
  727. func _SmartSiteEnterprise_DeviceList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  728. in := new(v1.DeviceListRequest)
  729. if err := dec(in); err != nil {
  730. return nil, err
  731. }
  732. if interceptor == nil {
  733. return srv.(SmartSiteEnterpriseServer).DeviceList(ctx, in)
  734. }
  735. info := &grpc.UnaryServerInfo{
  736. Server: srv,
  737. FullMethod: "/pb.SmartSiteEnterprise/DeviceList",
  738. }
  739. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  740. return srv.(SmartSiteEnterpriseServer).DeviceList(ctx, req.(*v1.DeviceListRequest))
  741. }
  742. return interceptor(ctx, in, info, handler)
  743. }
  744. func _SmartSiteEnterprise_ChannelList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  745. in := new(v1.ChannelListRequest)
  746. if err := dec(in); err != nil {
  747. return nil, err
  748. }
  749. if interceptor == nil {
  750. return srv.(SmartSiteEnterpriseServer).ChannelList(ctx, in)
  751. }
  752. info := &grpc.UnaryServerInfo{
  753. Server: srv,
  754. FullMethod: "/pb.SmartSiteEnterprise/ChannelList",
  755. }
  756. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  757. return srv.(SmartSiteEnterpriseServer).ChannelList(ctx, req.(*v1.ChannelListRequest))
  758. }
  759. return interceptor(ctx, in, info, handler)
  760. }
  761. func _SmartSiteEnterprise_VedioList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  762. in := new(v1.VedioListRequest)
  763. if err := dec(in); err != nil {
  764. return nil, err
  765. }
  766. if interceptor == nil {
  767. return srv.(SmartSiteEnterpriseServer).VedioList(ctx, in)
  768. }
  769. info := &grpc.UnaryServerInfo{
  770. Server: srv,
  771. FullMethod: "/pb.SmartSiteEnterprise/VedioList",
  772. }
  773. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  774. return srv.(SmartSiteEnterpriseServer).VedioList(ctx, req.(*v1.VedioListRequest))
  775. }
  776. return interceptor(ctx, in, info, handler)
  777. }
  778. func _SmartSiteEnterprise_ProjectUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  779. in := new(v1.ProjectUpdateRequest)
  780. if err := dec(in); err != nil {
  781. return nil, err
  782. }
  783. if interceptor == nil {
  784. return srv.(SmartSiteEnterpriseServer).ProjectUpdate(ctx, in)
  785. }
  786. info := &grpc.UnaryServerInfo{
  787. Server: srv,
  788. FullMethod: "/pb.SmartSiteEnterprise/ProjectUpdate",
  789. }
  790. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  791. return srv.(SmartSiteEnterpriseServer).ProjectUpdate(ctx, req.(*v1.ProjectUpdateRequest))
  792. }
  793. return interceptor(ctx, in, info, handler)
  794. }
  795. func _SmartSiteEnterprise_ProjectDistrict_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  796. in := new(v1.ProjectDistrictRequest)
  797. if err := dec(in); err != nil {
  798. return nil, err
  799. }
  800. if interceptor == nil {
  801. return srv.(SmartSiteEnterpriseServer).ProjectDistrict(ctx, in)
  802. }
  803. info := &grpc.UnaryServerInfo{
  804. Server: srv,
  805. FullMethod: "/pb.SmartSiteEnterprise/ProjectDistrict",
  806. }
  807. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  808. return srv.(SmartSiteEnterpriseServer).ProjectDistrict(ctx, req.(*v1.ProjectDistrictRequest))
  809. }
  810. return interceptor(ctx, in, info, handler)
  811. }
  812. func _SmartSiteEnterprise_ProjectUserPasswordReset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  813. in := new(v1.ProjectUserPasswordResetRequest)
  814. if err := dec(in); err != nil {
  815. return nil, err
  816. }
  817. if interceptor == nil {
  818. return srv.(SmartSiteEnterpriseServer).ProjectUserPasswordReset(ctx, in)
  819. }
  820. info := &grpc.UnaryServerInfo{
  821. Server: srv,
  822. FullMethod: "/pb.SmartSiteEnterprise/ProjectUserPasswordReset",
  823. }
  824. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  825. return srv.(SmartSiteEnterpriseServer).ProjectUserPasswordReset(ctx, req.(*v1.ProjectUserPasswordResetRequest))
  826. }
  827. return interceptor(ctx, in, info, handler)
  828. }
  829. func _SmartSiteEnterprise_ProjectInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  830. in := new(v1.ProjectInfoRequest)
  831. if err := dec(in); err != nil {
  832. return nil, err
  833. }
  834. if interceptor == nil {
  835. return srv.(SmartSiteEnterpriseServer).ProjectInfo(ctx, in)
  836. }
  837. info := &grpc.UnaryServerInfo{
  838. Server: srv,
  839. FullMethod: "/pb.SmartSiteEnterprise/ProjectInfo",
  840. }
  841. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  842. return srv.(SmartSiteEnterpriseServer).ProjectInfo(ctx, req.(*v1.ProjectInfoRequest))
  843. }
  844. return interceptor(ctx, in, info, handler)
  845. }
  846. func _SmartSiteEnterprise_ProjectDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  847. in := new(v1.ProjectDelRequest)
  848. if err := dec(in); err != nil {
  849. return nil, err
  850. }
  851. if interceptor == nil {
  852. return srv.(SmartSiteEnterpriseServer).ProjectDel(ctx, in)
  853. }
  854. info := &grpc.UnaryServerInfo{
  855. Server: srv,
  856. FullMethod: "/pb.SmartSiteEnterprise/ProjectDel",
  857. }
  858. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  859. return srv.(SmartSiteEnterpriseServer).ProjectDel(ctx, req.(*v1.ProjectDelRequest))
  860. }
  861. return interceptor(ctx, in, info, handler)
  862. }
  863. func _SmartSiteEnterprise_ProjectFinish_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  864. in := new(v1.ProjectFinishRequest)
  865. if err := dec(in); err != nil {
  866. return nil, err
  867. }
  868. if interceptor == nil {
  869. return srv.(SmartSiteEnterpriseServer).ProjectFinish(ctx, in)
  870. }
  871. info := &grpc.UnaryServerInfo{
  872. Server: srv,
  873. FullMethod: "/pb.SmartSiteEnterprise/ProjectFinish",
  874. }
  875. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  876. return srv.(SmartSiteEnterpriseServer).ProjectFinish(ctx, req.(*v1.ProjectFinishRequest))
  877. }
  878. return interceptor(ctx, in, info, handler)
  879. }
  880. var _SmartSiteEnterprise_serviceDesc = grpc.ServiceDesc{
  881. ServiceName: "pb.SmartSiteEnterprise",
  882. HandlerType: (*SmartSiteEnterpriseServer)(nil),
  883. Methods: []grpc.MethodDesc{
  884. {
  885. MethodName: "Register",
  886. Handler: _SmartSiteEnterprise_Register_Handler,
  887. },
  888. {
  889. MethodName: "Login",
  890. Handler: _SmartSiteEnterprise_Login_Handler,
  891. },
  892. {
  893. MethodName: "EmailPrepare",
  894. Handler: _SmartSiteEnterprise_EmailPrepare_Handler,
  895. },
  896. {
  897. MethodName: "EmailUpdate",
  898. Handler: _SmartSiteEnterprise_EmailUpdate_Handler,
  899. },
  900. {
  901. MethodName: "PhoneUpdate",
  902. Handler: _SmartSiteEnterprise_PhoneUpdate_Handler,
  903. },
  904. {
  905. MethodName: "UserInfo",
  906. Handler: _SmartSiteEnterprise_UserInfo_Handler,
  907. },
  908. {
  909. MethodName: "Publicity",
  910. Handler: _SmartSiteEnterprise_Publicity_Handler,
  911. },
  912. {
  913. MethodName: "SetPasswd",
  914. Handler: _SmartSiteEnterprise_SetPasswd_Handler,
  915. },
  916. {
  917. MethodName: "ProjectAdd",
  918. Handler: _SmartSiteEnterprise_ProjectAdd_Handler,
  919. },
  920. {
  921. MethodName: "ProjectList",
  922. Handler: _SmartSiteEnterprise_ProjectList_Handler,
  923. },
  924. {
  925. MethodName: "ProjectUserList",
  926. Handler: _SmartSiteEnterprise_ProjectUserList_Handler,
  927. },
  928. {
  929. MethodName: "EnableProjectUser",
  930. Handler: _SmartSiteEnterprise_EnableProjectUser_Handler,
  931. },
  932. {
  933. MethodName: "CompanyApproveStatus",
  934. Handler: _SmartSiteEnterprise_CompanyApproveStatus_Handler,
  935. },
  936. {
  937. MethodName: "ChangePasswd",
  938. Handler: _SmartSiteEnterprise_ChangePasswd_Handler,
  939. },
  940. {
  941. MethodName: "DeviceTypeList",
  942. Handler: _SmartSiteEnterprise_DeviceTypeList_Handler,
  943. },
  944. {
  945. MethodName: "DeviceAllTypeList",
  946. Handler: _SmartSiteEnterprise_DeviceAllTypeList_Handler,
  947. },
  948. {
  949. MethodName: "DeviceList",
  950. Handler: _SmartSiteEnterprise_DeviceList_Handler,
  951. },
  952. {
  953. MethodName: "ChannelList",
  954. Handler: _SmartSiteEnterprise_ChannelList_Handler,
  955. },
  956. {
  957. MethodName: "VedioList",
  958. Handler: _SmartSiteEnterprise_VedioList_Handler,
  959. },
  960. {
  961. MethodName: "ProjectUpdate",
  962. Handler: _SmartSiteEnterprise_ProjectUpdate_Handler,
  963. },
  964. {
  965. MethodName: "ProjectDistrict",
  966. Handler: _SmartSiteEnterprise_ProjectDistrict_Handler,
  967. },
  968. {
  969. MethodName: "ProjectUserPasswordReset",
  970. Handler: _SmartSiteEnterprise_ProjectUserPasswordReset_Handler,
  971. },
  972. {
  973. MethodName: "ProjectInfo",
  974. Handler: _SmartSiteEnterprise_ProjectInfo_Handler,
  975. },
  976. {
  977. MethodName: "ProjectDel",
  978. Handler: _SmartSiteEnterprise_ProjectDel_Handler,
  979. },
  980. {
  981. MethodName: "ProjectFinish",
  982. Handler: _SmartSiteEnterprise_ProjectFinish_Handler,
  983. },
  984. },
  985. Streams: []grpc.StreamDesc{},
  986. Metadata: "enterprise_management.proto",
  987. }