enterprise_management.pb.go 45 KB

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