enterprise_management.pb.go 48 KB

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