im_grpc.pb.go 59 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. package im
  3. import (
  4. context "context"
  5. grpc "google.golang.org/grpc"
  6. codes "google.golang.org/grpc/codes"
  7. status "google.golang.org/grpc/status"
  8. )
  9. // This is a compile-time assertion to ensure that this generated file
  10. // is compatible with the grpc package it is being compiled against.
  11. const _ = grpc.SupportPackageIsVersion7
  12. // ApiClient is the client API for Api service.
  13. //
  14. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
  15. type ApiClient interface {
  16. GenVerifyImage(ctx context.Context, in *GenVerifyImageRequest, opts ...grpc.CallOption) (*GenVerifyImageReply, error)
  17. GenPhoneVerifyCode(ctx context.Context, in *GenPhoneVerifyCodeRequest, opts ...grpc.CallOption) (*DefaultReply, error)
  18. CheckVerifyCode(ctx context.Context, in *CheckVerifyCodeRequest, opts ...grpc.CallOption) (*DefaultReply, error)
  19. SignUpUserCode(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*CreateReply, error)
  20. SignUpPhone(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*CreateReply, error)
  21. SignInUserCode(ctx context.Context, in *SignInPasswordRequest, opts ...grpc.CallOption) (*SignInReply, error)
  22. SignInWithPhonePassword(ctx context.Context, in *SignInPasswordRequest, opts ...grpc.CallOption) (*SignInReply, error)
  23. // 检查token有效性
  24. SubSessionCheck(ctx context.Context, in *TokenParam, opts ...grpc.CallOption) (*SessionCheckReply, error)
  25. // session添加KV对
  26. SubSessionSetValue(ctx context.Context, in *SubSessionSetValueRequest, opts ...grpc.CallOption) (*DefaultReply, error)
  27. // session获取KV对
  28. SubSessionGetValue(ctx context.Context, in *SubSessionGetValueRequest, opts ...grpc.CallOption) (*SubSessionGetValueReply, error)
  29. // 检查token所属用户是否拥有调用service权限
  30. SubPermissionListCheck(ctx context.Context, in *PermissionCheck, opts ...grpc.CallOption) (*PermissionCheckReply, error)
  31. // 登出传入token
  32. SubSignOut(ctx context.Context, in *TokenParam, opts ...grpc.CallOption) (*DefaultReply, error)
  33. // 批量保存service
  34. SubServiceSaveList(ctx context.Context, in *SaveServiceListRequest, opts ...grpc.CallOption) (*DefaultReply, error)
  35. // 用户列表
  36. UserList(ctx context.Context, in *UserListRequest, opts ...grpc.CallOption) (*UserListReply, error)
  37. // 单个用户信息详情
  38. UserGetInfo(ctx context.Context, in *UserGetInfoRequest, opts ...grpc.CallOption) (*UserInfo, error)
  39. // 用户添加多个角色
  40. UserAddRoles(ctx context.Context, in *UserRolesRequest, opts ...grpc.CallOption) (*DefaultReply, error)
  41. // 用户移除多个角色
  42. UserRemoveRoles(ctx context.Context, in *UserRolesRequest, opts ...grpc.CallOption) (*DefaultReply, error)
  43. // 用户获取栏目列表
  44. UserGetColumnList(ctx context.Context, in *UserGetColumnListRequest, opts ...grpc.CallOption) (*UserGetColumnListReply, error)
  45. // 创建角色
  46. RoleCreate(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*DefaultReply, error)
  47. // 角色列表
  48. RoleList(ctx context.Context, in *RoleListRequest, opts ...grpc.CallOption) (*RoleListReply, error)
  49. // 角色编辑
  50. RoleEdit(ctx context.Context, in *Role, opts ...grpc.CallOption) (*DefaultReply, error)
  51. // 角色添加多个service权限
  52. RoleAddPermissions(ctx context.Context, in *RolePermissionRequest, opts ...grpc.CallOption) (*DefaultReply, error)
  53. // 角色移除多个service权限
  54. RoleRemovePermissions(ctx context.Context, in *RolePermissionRequest, opts ...grpc.CallOption) (*DefaultReply, error)
  55. // service权限列表
  56. ServiceList(ctx context.Context, in *ServiceListRequest, opts ...grpc.CallOption) (*ServiceListReply, error)
  57. // 移除service
  58. ServiceRemoveList(ctx context.Context, in *ServiceRemoveRequest, opts ...grpc.CallOption) (*DefaultReply, error)
  59. // 创建商户
  60. ShopCreate(ctx context.Context, in *CreateShopRequest, opts ...grpc.CallOption) (*CreateReply, error)
  61. // 商户列表
  62. ShopList(ctx context.Context, in *ShopListRequest, opts ...grpc.CallOption) (*ShopListReply, error)
  63. // 商户详情
  64. ShopDetail(ctx context.Context, in *ShopDetailRequest, opts ...grpc.CallOption) (*ShopInfo, error)
  65. // 商户许可列表
  66. ShopLicenseList(ctx context.Context, in *ShopDetailRequest, opts ...grpc.CallOption) (*LicenseList, error)
  67. // 商户添加用户
  68. ShopAddUser(ctx context.Context, in *ShopAddUserRequest, opts ...grpc.CallOption) (*DefaultReply, error)
  69. // 商户添加许可证
  70. ShopAddLicense(ctx context.Context, in *ShopAddLicenseRequest, opts ...grpc.CallOption) (*DefaultReply, error)
  71. // 系统添加商户
  72. SystemAddShop(ctx context.Context, in *SystemAddShopRequest, opts ...grpc.CallOption) (*DefaultReply, error)
  73. // 系统添加用户
  74. SystemAddUser(ctx context.Context, in *SystemAddUserRequest, opts ...grpc.CallOption) (*DefaultReply, error)
  75. // 创建栏目
  76. ColumnCreate(ctx context.Context, in *ColumnCreateRequest, opts ...grpc.CallOption) (*CreateReply, error)
  77. // 创建许可
  78. LicenseCreate(ctx context.Context, in *LicenseCreateRequest, opts ...grpc.CallOption) (*CreateReply, error)
  79. // 许可类型字典
  80. LicenseTypeMap(ctx context.Context, in *IdList, opts ...grpc.CallOption) (*LicenseTypeMapReply, error)
  81. // 许可证批量绑定栏目(之前绑定的会全部取消)
  82. LicenseBindColumns(ctx context.Context, in *LicenseBindColumnsRequest, opts ...grpc.CallOption) (*DefaultReply, error)
  83. IMSystemCreate(ctx context.Context, in *CreateSystemRequest, opts ...grpc.CallOption) (*TokenParam, error)
  84. IMSignOut(ctx context.Context, in *DefaultRequest, opts ...grpc.CallOption) (*DefaultReply, error)
  85. IMSelfInfo(ctx context.Context, in *DefaultRequest, opts ...grpc.CallOption) (*UserInfo, error)
  86. IMMessageRcv(ctx context.Context, in *DefaultRequest, opts ...grpc.CallOption) (Api_IMMessageRcvClient, error)
  87. }
  88. type apiClient struct {
  89. cc grpc.ClientConnInterface
  90. }
  91. func NewApiClient(cc grpc.ClientConnInterface) ApiClient {
  92. return &apiClient{cc}
  93. }
  94. func (c *apiClient) GenVerifyImage(ctx context.Context, in *GenVerifyImageRequest, opts ...grpc.CallOption) (*GenVerifyImageReply, error) {
  95. out := new(GenVerifyImageReply)
  96. err := c.cc.Invoke(ctx, "/im.Api/GenVerifyImage", in, out, opts...)
  97. if err != nil {
  98. return nil, err
  99. }
  100. return out, nil
  101. }
  102. func (c *apiClient) GenPhoneVerifyCode(ctx context.Context, in *GenPhoneVerifyCodeRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
  103. out := new(DefaultReply)
  104. err := c.cc.Invoke(ctx, "/im.Api/GenPhoneVerifyCode", in, out, opts...)
  105. if err != nil {
  106. return nil, err
  107. }
  108. return out, nil
  109. }
  110. func (c *apiClient) CheckVerifyCode(ctx context.Context, in *CheckVerifyCodeRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
  111. out := new(DefaultReply)
  112. err := c.cc.Invoke(ctx, "/im.Api/CheckVerifyCode", in, out, opts...)
  113. if err != nil {
  114. return nil, err
  115. }
  116. return out, nil
  117. }
  118. func (c *apiClient) SignUpUserCode(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*CreateReply, error) {
  119. out := new(CreateReply)
  120. err := c.cc.Invoke(ctx, "/im.Api/SignUpUserCode", in, out, opts...)
  121. if err != nil {
  122. return nil, err
  123. }
  124. return out, nil
  125. }
  126. func (c *apiClient) SignUpPhone(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*CreateReply, error) {
  127. out := new(CreateReply)
  128. err := c.cc.Invoke(ctx, "/im.Api/SignUpPhone", in, out, opts...)
  129. if err != nil {
  130. return nil, err
  131. }
  132. return out, nil
  133. }
  134. func (c *apiClient) SignInUserCode(ctx context.Context, in *SignInPasswordRequest, opts ...grpc.CallOption) (*SignInReply, error) {
  135. out := new(SignInReply)
  136. err := c.cc.Invoke(ctx, "/im.Api/SignInUserCode", in, out, opts...)
  137. if err != nil {
  138. return nil, err
  139. }
  140. return out, nil
  141. }
  142. func (c *apiClient) SignInWithPhonePassword(ctx context.Context, in *SignInPasswordRequest, opts ...grpc.CallOption) (*SignInReply, error) {
  143. out := new(SignInReply)
  144. err := c.cc.Invoke(ctx, "/im.Api/SignInWithPhonePassword", in, out, opts...)
  145. if err != nil {
  146. return nil, err
  147. }
  148. return out, nil
  149. }
  150. func (c *apiClient) SubSessionCheck(ctx context.Context, in *TokenParam, opts ...grpc.CallOption) (*SessionCheckReply, error) {
  151. out := new(SessionCheckReply)
  152. err := c.cc.Invoke(ctx, "/im.Api/SubSessionCheck", in, out, opts...)
  153. if err != nil {
  154. return nil, err
  155. }
  156. return out, nil
  157. }
  158. func (c *apiClient) SubSessionSetValue(ctx context.Context, in *SubSessionSetValueRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
  159. out := new(DefaultReply)
  160. err := c.cc.Invoke(ctx, "/im.Api/SubSessionSetValue", in, out, opts...)
  161. if err != nil {
  162. return nil, err
  163. }
  164. return out, nil
  165. }
  166. func (c *apiClient) SubSessionGetValue(ctx context.Context, in *SubSessionGetValueRequest, opts ...grpc.CallOption) (*SubSessionGetValueReply, error) {
  167. out := new(SubSessionGetValueReply)
  168. err := c.cc.Invoke(ctx, "/im.Api/SubSessionGetValue", in, out, opts...)
  169. if err != nil {
  170. return nil, err
  171. }
  172. return out, nil
  173. }
  174. func (c *apiClient) SubPermissionListCheck(ctx context.Context, in *PermissionCheck, opts ...grpc.CallOption) (*PermissionCheckReply, error) {
  175. out := new(PermissionCheckReply)
  176. err := c.cc.Invoke(ctx, "/im.Api/SubPermissionListCheck", in, out, opts...)
  177. if err != nil {
  178. return nil, err
  179. }
  180. return out, nil
  181. }
  182. func (c *apiClient) SubSignOut(ctx context.Context, in *TokenParam, opts ...grpc.CallOption) (*DefaultReply, error) {
  183. out := new(DefaultReply)
  184. err := c.cc.Invoke(ctx, "/im.Api/SubSignOut", in, out, opts...)
  185. if err != nil {
  186. return nil, err
  187. }
  188. return out, nil
  189. }
  190. func (c *apiClient) SubServiceSaveList(ctx context.Context, in *SaveServiceListRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
  191. out := new(DefaultReply)
  192. err := c.cc.Invoke(ctx, "/im.Api/SubServiceSaveList", in, out, opts...)
  193. if err != nil {
  194. return nil, err
  195. }
  196. return out, nil
  197. }
  198. func (c *apiClient) UserList(ctx context.Context, in *UserListRequest, opts ...grpc.CallOption) (*UserListReply, error) {
  199. out := new(UserListReply)
  200. err := c.cc.Invoke(ctx, "/im.Api/UserList", in, out, opts...)
  201. if err != nil {
  202. return nil, err
  203. }
  204. return out, nil
  205. }
  206. func (c *apiClient) UserGetInfo(ctx context.Context, in *UserGetInfoRequest, opts ...grpc.CallOption) (*UserInfo, error) {
  207. out := new(UserInfo)
  208. err := c.cc.Invoke(ctx, "/im.Api/UserGetInfo", in, out, opts...)
  209. if err != nil {
  210. return nil, err
  211. }
  212. return out, nil
  213. }
  214. func (c *apiClient) UserAddRoles(ctx context.Context, in *UserRolesRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
  215. out := new(DefaultReply)
  216. err := c.cc.Invoke(ctx, "/im.Api/UserAddRoles", in, out, opts...)
  217. if err != nil {
  218. return nil, err
  219. }
  220. return out, nil
  221. }
  222. func (c *apiClient) UserRemoveRoles(ctx context.Context, in *UserRolesRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
  223. out := new(DefaultReply)
  224. err := c.cc.Invoke(ctx, "/im.Api/UserRemoveRoles", in, out, opts...)
  225. if err != nil {
  226. return nil, err
  227. }
  228. return out, nil
  229. }
  230. func (c *apiClient) UserGetColumnList(ctx context.Context, in *UserGetColumnListRequest, opts ...grpc.CallOption) (*UserGetColumnListReply, error) {
  231. out := new(UserGetColumnListReply)
  232. err := c.cc.Invoke(ctx, "/im.Api/UserGetColumnList", in, out, opts...)
  233. if err != nil {
  234. return nil, err
  235. }
  236. return out, nil
  237. }
  238. func (c *apiClient) RoleCreate(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
  239. out := new(DefaultReply)
  240. err := c.cc.Invoke(ctx, "/im.Api/RoleCreate", in, out, opts...)
  241. if err != nil {
  242. return nil, err
  243. }
  244. return out, nil
  245. }
  246. func (c *apiClient) RoleList(ctx context.Context, in *RoleListRequest, opts ...grpc.CallOption) (*RoleListReply, error) {
  247. out := new(RoleListReply)
  248. err := c.cc.Invoke(ctx, "/im.Api/RoleList", in, out, opts...)
  249. if err != nil {
  250. return nil, err
  251. }
  252. return out, nil
  253. }
  254. func (c *apiClient) RoleEdit(ctx context.Context, in *Role, opts ...grpc.CallOption) (*DefaultReply, error) {
  255. out := new(DefaultReply)
  256. err := c.cc.Invoke(ctx, "/im.Api/RoleEdit", in, out, opts...)
  257. if err != nil {
  258. return nil, err
  259. }
  260. return out, nil
  261. }
  262. func (c *apiClient) RoleAddPermissions(ctx context.Context, in *RolePermissionRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
  263. out := new(DefaultReply)
  264. err := c.cc.Invoke(ctx, "/im.Api/RoleAddPermissions", in, out, opts...)
  265. if err != nil {
  266. return nil, err
  267. }
  268. return out, nil
  269. }
  270. func (c *apiClient) RoleRemovePermissions(ctx context.Context, in *RolePermissionRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
  271. out := new(DefaultReply)
  272. err := c.cc.Invoke(ctx, "/im.Api/RoleRemovePermissions", in, out, opts...)
  273. if err != nil {
  274. return nil, err
  275. }
  276. return out, nil
  277. }
  278. func (c *apiClient) ServiceList(ctx context.Context, in *ServiceListRequest, opts ...grpc.CallOption) (*ServiceListReply, error) {
  279. out := new(ServiceListReply)
  280. err := c.cc.Invoke(ctx, "/im.Api/ServiceList", in, out, opts...)
  281. if err != nil {
  282. return nil, err
  283. }
  284. return out, nil
  285. }
  286. func (c *apiClient) ServiceRemoveList(ctx context.Context, in *ServiceRemoveRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
  287. out := new(DefaultReply)
  288. err := c.cc.Invoke(ctx, "/im.Api/ServiceRemoveList", in, out, opts...)
  289. if err != nil {
  290. return nil, err
  291. }
  292. return out, nil
  293. }
  294. func (c *apiClient) ShopCreate(ctx context.Context, in *CreateShopRequest, opts ...grpc.CallOption) (*CreateReply, error) {
  295. out := new(CreateReply)
  296. err := c.cc.Invoke(ctx, "/im.Api/ShopCreate", in, out, opts...)
  297. if err != nil {
  298. return nil, err
  299. }
  300. return out, nil
  301. }
  302. func (c *apiClient) ShopList(ctx context.Context, in *ShopListRequest, opts ...grpc.CallOption) (*ShopListReply, error) {
  303. out := new(ShopListReply)
  304. err := c.cc.Invoke(ctx, "/im.Api/ShopList", in, out, opts...)
  305. if err != nil {
  306. return nil, err
  307. }
  308. return out, nil
  309. }
  310. func (c *apiClient) ShopDetail(ctx context.Context, in *ShopDetailRequest, opts ...grpc.CallOption) (*ShopInfo, error) {
  311. out := new(ShopInfo)
  312. err := c.cc.Invoke(ctx, "/im.Api/ShopDetail", in, out, opts...)
  313. if err != nil {
  314. return nil, err
  315. }
  316. return out, nil
  317. }
  318. func (c *apiClient) ShopLicenseList(ctx context.Context, in *ShopDetailRequest, opts ...grpc.CallOption) (*LicenseList, error) {
  319. out := new(LicenseList)
  320. err := c.cc.Invoke(ctx, "/im.Api/ShopLicenseList", in, out, opts...)
  321. if err != nil {
  322. return nil, err
  323. }
  324. return out, nil
  325. }
  326. func (c *apiClient) ShopAddUser(ctx context.Context, in *ShopAddUserRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
  327. out := new(DefaultReply)
  328. err := c.cc.Invoke(ctx, "/im.Api/ShopAddUser", in, out, opts...)
  329. if err != nil {
  330. return nil, err
  331. }
  332. return out, nil
  333. }
  334. func (c *apiClient) ShopAddLicense(ctx context.Context, in *ShopAddLicenseRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
  335. out := new(DefaultReply)
  336. err := c.cc.Invoke(ctx, "/im.Api/ShopAddLicense", in, out, opts...)
  337. if err != nil {
  338. return nil, err
  339. }
  340. return out, nil
  341. }
  342. func (c *apiClient) SystemAddShop(ctx context.Context, in *SystemAddShopRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
  343. out := new(DefaultReply)
  344. err := c.cc.Invoke(ctx, "/im.Api/SystemAddShop", in, out, opts...)
  345. if err != nil {
  346. return nil, err
  347. }
  348. return out, nil
  349. }
  350. func (c *apiClient) SystemAddUser(ctx context.Context, in *SystemAddUserRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
  351. out := new(DefaultReply)
  352. err := c.cc.Invoke(ctx, "/im.Api/SystemAddUser", in, out, opts...)
  353. if err != nil {
  354. return nil, err
  355. }
  356. return out, nil
  357. }
  358. func (c *apiClient) ColumnCreate(ctx context.Context, in *ColumnCreateRequest, opts ...grpc.CallOption) (*CreateReply, error) {
  359. out := new(CreateReply)
  360. err := c.cc.Invoke(ctx, "/im.Api/ColumnCreate", in, out, opts...)
  361. if err != nil {
  362. return nil, err
  363. }
  364. return out, nil
  365. }
  366. func (c *apiClient) LicenseCreate(ctx context.Context, in *LicenseCreateRequest, opts ...grpc.CallOption) (*CreateReply, error) {
  367. out := new(CreateReply)
  368. err := c.cc.Invoke(ctx, "/im.Api/LicenseCreate", in, out, opts...)
  369. if err != nil {
  370. return nil, err
  371. }
  372. return out, nil
  373. }
  374. func (c *apiClient) LicenseTypeMap(ctx context.Context, in *IdList, opts ...grpc.CallOption) (*LicenseTypeMapReply, error) {
  375. out := new(LicenseTypeMapReply)
  376. err := c.cc.Invoke(ctx, "/im.Api/LicenseTypeMap", in, out, opts...)
  377. if err != nil {
  378. return nil, err
  379. }
  380. return out, nil
  381. }
  382. func (c *apiClient) LicenseBindColumns(ctx context.Context, in *LicenseBindColumnsRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
  383. out := new(DefaultReply)
  384. err := c.cc.Invoke(ctx, "/im.Api/LicenseBindColumns", in, out, opts...)
  385. if err != nil {
  386. return nil, err
  387. }
  388. return out, nil
  389. }
  390. func (c *apiClient) IMSystemCreate(ctx context.Context, in *CreateSystemRequest, opts ...grpc.CallOption) (*TokenParam, error) {
  391. out := new(TokenParam)
  392. err := c.cc.Invoke(ctx, "/im.Api/IMSystemCreate", in, out, opts...)
  393. if err != nil {
  394. return nil, err
  395. }
  396. return out, nil
  397. }
  398. func (c *apiClient) IMSignOut(ctx context.Context, in *DefaultRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
  399. out := new(DefaultReply)
  400. err := c.cc.Invoke(ctx, "/im.Api/IMSignOut", in, out, opts...)
  401. if err != nil {
  402. return nil, err
  403. }
  404. return out, nil
  405. }
  406. func (c *apiClient) IMSelfInfo(ctx context.Context, in *DefaultRequest, opts ...grpc.CallOption) (*UserInfo, error) {
  407. out := new(UserInfo)
  408. err := c.cc.Invoke(ctx, "/im.Api/IMSelfInfo", in, out, opts...)
  409. if err != nil {
  410. return nil, err
  411. }
  412. return out, nil
  413. }
  414. func (c *apiClient) IMMessageRcv(ctx context.Context, in *DefaultRequest, opts ...grpc.CallOption) (Api_IMMessageRcvClient, error) {
  415. stream, err := c.cc.NewStream(ctx, &_Api_serviceDesc.Streams[0], "/im.Api/IMMessageRcv", opts...)
  416. if err != nil {
  417. return nil, err
  418. }
  419. x := &apiIMMessageRcvClient{stream}
  420. if err := x.ClientStream.SendMsg(in); err != nil {
  421. return nil, err
  422. }
  423. if err := x.ClientStream.CloseSend(); err != nil {
  424. return nil, err
  425. }
  426. return x, nil
  427. }
  428. type Api_IMMessageRcvClient interface {
  429. Recv() (*Message, error)
  430. grpc.ClientStream
  431. }
  432. type apiIMMessageRcvClient struct {
  433. grpc.ClientStream
  434. }
  435. func (x *apiIMMessageRcvClient) Recv() (*Message, error) {
  436. m := new(Message)
  437. if err := x.ClientStream.RecvMsg(m); err != nil {
  438. return nil, err
  439. }
  440. return m, nil
  441. }
  442. // ApiServer is the server API for Api service.
  443. // All implementations must embed UnimplementedApiServer
  444. // for forward compatibility
  445. type ApiServer interface {
  446. GenVerifyImage(context.Context, *GenVerifyImageRequest) (*GenVerifyImageReply, error)
  447. GenPhoneVerifyCode(context.Context, *GenPhoneVerifyCodeRequest) (*DefaultReply, error)
  448. CheckVerifyCode(context.Context, *CheckVerifyCodeRequest) (*DefaultReply, error)
  449. SignUpUserCode(context.Context, *SignUpRequest) (*CreateReply, error)
  450. SignUpPhone(context.Context, *SignUpRequest) (*CreateReply, error)
  451. SignInUserCode(context.Context, *SignInPasswordRequest) (*SignInReply, error)
  452. SignInWithPhonePassword(context.Context, *SignInPasswordRequest) (*SignInReply, error)
  453. // 检查token有效性
  454. SubSessionCheck(context.Context, *TokenParam) (*SessionCheckReply, error)
  455. // session添加KV对
  456. SubSessionSetValue(context.Context, *SubSessionSetValueRequest) (*DefaultReply, error)
  457. // session获取KV对
  458. SubSessionGetValue(context.Context, *SubSessionGetValueRequest) (*SubSessionGetValueReply, error)
  459. // 检查token所属用户是否拥有调用service权限
  460. SubPermissionListCheck(context.Context, *PermissionCheck) (*PermissionCheckReply, error)
  461. // 登出传入token
  462. SubSignOut(context.Context, *TokenParam) (*DefaultReply, error)
  463. // 批量保存service
  464. SubServiceSaveList(context.Context, *SaveServiceListRequest) (*DefaultReply, error)
  465. // 用户列表
  466. UserList(context.Context, *UserListRequest) (*UserListReply, error)
  467. // 单个用户信息详情
  468. UserGetInfo(context.Context, *UserGetInfoRequest) (*UserInfo, error)
  469. // 用户添加多个角色
  470. UserAddRoles(context.Context, *UserRolesRequest) (*DefaultReply, error)
  471. // 用户移除多个角色
  472. UserRemoveRoles(context.Context, *UserRolesRequest) (*DefaultReply, error)
  473. // 用户获取栏目列表
  474. UserGetColumnList(context.Context, *UserGetColumnListRequest) (*UserGetColumnListReply, error)
  475. // 创建角色
  476. RoleCreate(context.Context, *CreateRoleRequest) (*DefaultReply, error)
  477. // 角色列表
  478. RoleList(context.Context, *RoleListRequest) (*RoleListReply, error)
  479. // 角色编辑
  480. RoleEdit(context.Context, *Role) (*DefaultReply, error)
  481. // 角色添加多个service权限
  482. RoleAddPermissions(context.Context, *RolePermissionRequest) (*DefaultReply, error)
  483. // 角色移除多个service权限
  484. RoleRemovePermissions(context.Context, *RolePermissionRequest) (*DefaultReply, error)
  485. // service权限列表
  486. ServiceList(context.Context, *ServiceListRequest) (*ServiceListReply, error)
  487. // 移除service
  488. ServiceRemoveList(context.Context, *ServiceRemoveRequest) (*DefaultReply, error)
  489. // 创建商户
  490. ShopCreate(context.Context, *CreateShopRequest) (*CreateReply, error)
  491. // 商户列表
  492. ShopList(context.Context, *ShopListRequest) (*ShopListReply, error)
  493. // 商户详情
  494. ShopDetail(context.Context, *ShopDetailRequest) (*ShopInfo, error)
  495. // 商户许可列表
  496. ShopLicenseList(context.Context, *ShopDetailRequest) (*LicenseList, error)
  497. // 商户添加用户
  498. ShopAddUser(context.Context, *ShopAddUserRequest) (*DefaultReply, error)
  499. // 商户添加许可证
  500. ShopAddLicense(context.Context, *ShopAddLicenseRequest) (*DefaultReply, error)
  501. // 系统添加商户
  502. SystemAddShop(context.Context, *SystemAddShopRequest) (*DefaultReply, error)
  503. // 系统添加用户
  504. SystemAddUser(context.Context, *SystemAddUserRequest) (*DefaultReply, error)
  505. // 创建栏目
  506. ColumnCreate(context.Context, *ColumnCreateRequest) (*CreateReply, error)
  507. // 创建许可
  508. LicenseCreate(context.Context, *LicenseCreateRequest) (*CreateReply, error)
  509. // 许可类型字典
  510. LicenseTypeMap(context.Context, *IdList) (*LicenseTypeMapReply, error)
  511. // 许可证批量绑定栏目(之前绑定的会全部取消)
  512. LicenseBindColumns(context.Context, *LicenseBindColumnsRequest) (*DefaultReply, error)
  513. IMSystemCreate(context.Context, *CreateSystemRequest) (*TokenParam, error)
  514. IMSignOut(context.Context, *DefaultRequest) (*DefaultReply, error)
  515. IMSelfInfo(context.Context, *DefaultRequest) (*UserInfo, error)
  516. IMMessageRcv(*DefaultRequest, Api_IMMessageRcvServer) error
  517. mustEmbedUnimplementedApiServer()
  518. }
  519. // UnimplementedApiServer must be embedded to have forward compatible implementations.
  520. type UnimplementedApiServer struct {
  521. }
  522. func (UnimplementedApiServer) GenVerifyImage(context.Context, *GenVerifyImageRequest) (*GenVerifyImageReply, error) {
  523. return nil, status.Errorf(codes.Unimplemented, "method GenVerifyImage not implemented")
  524. }
  525. func (UnimplementedApiServer) GenPhoneVerifyCode(context.Context, *GenPhoneVerifyCodeRequest) (*DefaultReply, error) {
  526. return nil, status.Errorf(codes.Unimplemented, "method GenPhoneVerifyCode not implemented")
  527. }
  528. func (UnimplementedApiServer) CheckVerifyCode(context.Context, *CheckVerifyCodeRequest) (*DefaultReply, error) {
  529. return nil, status.Errorf(codes.Unimplemented, "method CheckVerifyCode not implemented")
  530. }
  531. func (UnimplementedApiServer) SignUpUserCode(context.Context, *SignUpRequest) (*CreateReply, error) {
  532. return nil, status.Errorf(codes.Unimplemented, "method SignUpUserCode not implemented")
  533. }
  534. func (UnimplementedApiServer) SignUpPhone(context.Context, *SignUpRequest) (*CreateReply, error) {
  535. return nil, status.Errorf(codes.Unimplemented, "method SignUpPhone not implemented")
  536. }
  537. func (UnimplementedApiServer) SignInUserCode(context.Context, *SignInPasswordRequest) (*SignInReply, error) {
  538. return nil, status.Errorf(codes.Unimplemented, "method SignInUserCode not implemented")
  539. }
  540. func (UnimplementedApiServer) SignInWithPhonePassword(context.Context, *SignInPasswordRequest) (*SignInReply, error) {
  541. return nil, status.Errorf(codes.Unimplemented, "method SignInWithPhonePassword not implemented")
  542. }
  543. func (UnimplementedApiServer) SubSessionCheck(context.Context, *TokenParam) (*SessionCheckReply, error) {
  544. return nil, status.Errorf(codes.Unimplemented, "method SubSessionCheck not implemented")
  545. }
  546. func (UnimplementedApiServer) SubSessionSetValue(context.Context, *SubSessionSetValueRequest) (*DefaultReply, error) {
  547. return nil, status.Errorf(codes.Unimplemented, "method SubSessionSetValue not implemented")
  548. }
  549. func (UnimplementedApiServer) SubSessionGetValue(context.Context, *SubSessionGetValueRequest) (*SubSessionGetValueReply, error) {
  550. return nil, status.Errorf(codes.Unimplemented, "method SubSessionGetValue not implemented")
  551. }
  552. func (UnimplementedApiServer) SubPermissionListCheck(context.Context, *PermissionCheck) (*PermissionCheckReply, error) {
  553. return nil, status.Errorf(codes.Unimplemented, "method SubPermissionListCheck not implemented")
  554. }
  555. func (UnimplementedApiServer) SubSignOut(context.Context, *TokenParam) (*DefaultReply, error) {
  556. return nil, status.Errorf(codes.Unimplemented, "method SubSignOut not implemented")
  557. }
  558. func (UnimplementedApiServer) SubServiceSaveList(context.Context, *SaveServiceListRequest) (*DefaultReply, error) {
  559. return nil, status.Errorf(codes.Unimplemented, "method SubServiceSaveList not implemented")
  560. }
  561. func (UnimplementedApiServer) UserList(context.Context, *UserListRequest) (*UserListReply, error) {
  562. return nil, status.Errorf(codes.Unimplemented, "method UserList not implemented")
  563. }
  564. func (UnimplementedApiServer) UserGetInfo(context.Context, *UserGetInfoRequest) (*UserInfo, error) {
  565. return nil, status.Errorf(codes.Unimplemented, "method UserGetInfo not implemented")
  566. }
  567. func (UnimplementedApiServer) UserAddRoles(context.Context, *UserRolesRequest) (*DefaultReply, error) {
  568. return nil, status.Errorf(codes.Unimplemented, "method UserAddRoles not implemented")
  569. }
  570. func (UnimplementedApiServer) UserRemoveRoles(context.Context, *UserRolesRequest) (*DefaultReply, error) {
  571. return nil, status.Errorf(codes.Unimplemented, "method UserRemoveRoles not implemented")
  572. }
  573. func (UnimplementedApiServer) UserGetColumnList(context.Context, *UserGetColumnListRequest) (*UserGetColumnListReply, error) {
  574. return nil, status.Errorf(codes.Unimplemented, "method UserGetColumnList not implemented")
  575. }
  576. func (UnimplementedApiServer) RoleCreate(context.Context, *CreateRoleRequest) (*DefaultReply, error) {
  577. return nil, status.Errorf(codes.Unimplemented, "method RoleCreate not implemented")
  578. }
  579. func (UnimplementedApiServer) RoleList(context.Context, *RoleListRequest) (*RoleListReply, error) {
  580. return nil, status.Errorf(codes.Unimplemented, "method RoleList not implemented")
  581. }
  582. func (UnimplementedApiServer) RoleEdit(context.Context, *Role) (*DefaultReply, error) {
  583. return nil, status.Errorf(codes.Unimplemented, "method RoleEdit not implemented")
  584. }
  585. func (UnimplementedApiServer) RoleAddPermissions(context.Context, *RolePermissionRequest) (*DefaultReply, error) {
  586. return nil, status.Errorf(codes.Unimplemented, "method RoleAddPermissions not implemented")
  587. }
  588. func (UnimplementedApiServer) RoleRemovePermissions(context.Context, *RolePermissionRequest) (*DefaultReply, error) {
  589. return nil, status.Errorf(codes.Unimplemented, "method RoleRemovePermissions not implemented")
  590. }
  591. func (UnimplementedApiServer) ServiceList(context.Context, *ServiceListRequest) (*ServiceListReply, error) {
  592. return nil, status.Errorf(codes.Unimplemented, "method ServiceList not implemented")
  593. }
  594. func (UnimplementedApiServer) ServiceRemoveList(context.Context, *ServiceRemoveRequest) (*DefaultReply, error) {
  595. return nil, status.Errorf(codes.Unimplemented, "method ServiceRemoveList not implemented")
  596. }
  597. func (UnimplementedApiServer) ShopCreate(context.Context, *CreateShopRequest) (*CreateReply, error) {
  598. return nil, status.Errorf(codes.Unimplemented, "method ShopCreate not implemented")
  599. }
  600. func (UnimplementedApiServer) ShopList(context.Context, *ShopListRequest) (*ShopListReply, error) {
  601. return nil, status.Errorf(codes.Unimplemented, "method ShopList not implemented")
  602. }
  603. func (UnimplementedApiServer) ShopDetail(context.Context, *ShopDetailRequest) (*ShopInfo, error) {
  604. return nil, status.Errorf(codes.Unimplemented, "method ShopDetail not implemented")
  605. }
  606. func (UnimplementedApiServer) ShopLicenseList(context.Context, *ShopDetailRequest) (*LicenseList, error) {
  607. return nil, status.Errorf(codes.Unimplemented, "method ShopLicenseList not implemented")
  608. }
  609. func (UnimplementedApiServer) ShopAddUser(context.Context, *ShopAddUserRequest) (*DefaultReply, error) {
  610. return nil, status.Errorf(codes.Unimplemented, "method ShopAddUser not implemented")
  611. }
  612. func (UnimplementedApiServer) ShopAddLicense(context.Context, *ShopAddLicenseRequest) (*DefaultReply, error) {
  613. return nil, status.Errorf(codes.Unimplemented, "method ShopAddLicense not implemented")
  614. }
  615. func (UnimplementedApiServer) SystemAddShop(context.Context, *SystemAddShopRequest) (*DefaultReply, error) {
  616. return nil, status.Errorf(codes.Unimplemented, "method SystemAddShop not implemented")
  617. }
  618. func (UnimplementedApiServer) SystemAddUser(context.Context, *SystemAddUserRequest) (*DefaultReply, error) {
  619. return nil, status.Errorf(codes.Unimplemented, "method SystemAddUser not implemented")
  620. }
  621. func (UnimplementedApiServer) ColumnCreate(context.Context, *ColumnCreateRequest) (*CreateReply, error) {
  622. return nil, status.Errorf(codes.Unimplemented, "method ColumnCreate not implemented")
  623. }
  624. func (UnimplementedApiServer) LicenseCreate(context.Context, *LicenseCreateRequest) (*CreateReply, error) {
  625. return nil, status.Errorf(codes.Unimplemented, "method LicenseCreate not implemented")
  626. }
  627. func (UnimplementedApiServer) LicenseTypeMap(context.Context, *IdList) (*LicenseTypeMapReply, error) {
  628. return nil, status.Errorf(codes.Unimplemented, "method LicenseTypeMap not implemented")
  629. }
  630. func (UnimplementedApiServer) LicenseBindColumns(context.Context, *LicenseBindColumnsRequest) (*DefaultReply, error) {
  631. return nil, status.Errorf(codes.Unimplemented, "method LicenseBindColumns not implemented")
  632. }
  633. func (UnimplementedApiServer) IMSystemCreate(context.Context, *CreateSystemRequest) (*TokenParam, error) {
  634. return nil, status.Errorf(codes.Unimplemented, "method IMSystemCreate not implemented")
  635. }
  636. func (UnimplementedApiServer) IMSignOut(context.Context, *DefaultRequest) (*DefaultReply, error) {
  637. return nil, status.Errorf(codes.Unimplemented, "method IMSignOut not implemented")
  638. }
  639. func (UnimplementedApiServer) IMSelfInfo(context.Context, *DefaultRequest) (*UserInfo, error) {
  640. return nil, status.Errorf(codes.Unimplemented, "method IMSelfInfo not implemented")
  641. }
  642. func (UnimplementedApiServer) IMMessageRcv(*DefaultRequest, Api_IMMessageRcvServer) error {
  643. return status.Errorf(codes.Unimplemented, "method IMMessageRcv not implemented")
  644. }
  645. func (UnimplementedApiServer) mustEmbedUnimplementedApiServer() {}
  646. // UnsafeApiServer may be embedded to opt out of forward compatibility for this service.
  647. // Use of this interface is not recommended, as added methods to ApiServer will
  648. // result in compilation errors.
  649. type UnsafeApiServer interface {
  650. mustEmbedUnimplementedApiServer()
  651. }
  652. func RegisterApiServer(s grpc.ServiceRegistrar, srv ApiServer) {
  653. s.RegisterService(&_Api_serviceDesc, srv)
  654. }
  655. func _Api_GenVerifyImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  656. in := new(GenVerifyImageRequest)
  657. if err := dec(in); err != nil {
  658. return nil, err
  659. }
  660. if interceptor == nil {
  661. return srv.(ApiServer).GenVerifyImage(ctx, in)
  662. }
  663. info := &grpc.UnaryServerInfo{
  664. Server: srv,
  665. FullMethod: "/im.Api/GenVerifyImage",
  666. }
  667. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  668. return srv.(ApiServer).GenVerifyImage(ctx, req.(*GenVerifyImageRequest))
  669. }
  670. return interceptor(ctx, in, info, handler)
  671. }
  672. func _Api_GenPhoneVerifyCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  673. in := new(GenPhoneVerifyCodeRequest)
  674. if err := dec(in); err != nil {
  675. return nil, err
  676. }
  677. if interceptor == nil {
  678. return srv.(ApiServer).GenPhoneVerifyCode(ctx, in)
  679. }
  680. info := &grpc.UnaryServerInfo{
  681. Server: srv,
  682. FullMethod: "/im.Api/GenPhoneVerifyCode",
  683. }
  684. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  685. return srv.(ApiServer).GenPhoneVerifyCode(ctx, req.(*GenPhoneVerifyCodeRequest))
  686. }
  687. return interceptor(ctx, in, info, handler)
  688. }
  689. func _Api_CheckVerifyCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  690. in := new(CheckVerifyCodeRequest)
  691. if err := dec(in); err != nil {
  692. return nil, err
  693. }
  694. if interceptor == nil {
  695. return srv.(ApiServer).CheckVerifyCode(ctx, in)
  696. }
  697. info := &grpc.UnaryServerInfo{
  698. Server: srv,
  699. FullMethod: "/im.Api/CheckVerifyCode",
  700. }
  701. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  702. return srv.(ApiServer).CheckVerifyCode(ctx, req.(*CheckVerifyCodeRequest))
  703. }
  704. return interceptor(ctx, in, info, handler)
  705. }
  706. func _Api_SignUpUserCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  707. in := new(SignUpRequest)
  708. if err := dec(in); err != nil {
  709. return nil, err
  710. }
  711. if interceptor == nil {
  712. return srv.(ApiServer).SignUpUserCode(ctx, in)
  713. }
  714. info := &grpc.UnaryServerInfo{
  715. Server: srv,
  716. FullMethod: "/im.Api/SignUpUserCode",
  717. }
  718. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  719. return srv.(ApiServer).SignUpUserCode(ctx, req.(*SignUpRequest))
  720. }
  721. return interceptor(ctx, in, info, handler)
  722. }
  723. func _Api_SignUpPhone_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  724. in := new(SignUpRequest)
  725. if err := dec(in); err != nil {
  726. return nil, err
  727. }
  728. if interceptor == nil {
  729. return srv.(ApiServer).SignUpPhone(ctx, in)
  730. }
  731. info := &grpc.UnaryServerInfo{
  732. Server: srv,
  733. FullMethod: "/im.Api/SignUpPhone",
  734. }
  735. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  736. return srv.(ApiServer).SignUpPhone(ctx, req.(*SignUpRequest))
  737. }
  738. return interceptor(ctx, in, info, handler)
  739. }
  740. func _Api_SignInUserCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  741. in := new(SignInPasswordRequest)
  742. if err := dec(in); err != nil {
  743. return nil, err
  744. }
  745. if interceptor == nil {
  746. return srv.(ApiServer).SignInUserCode(ctx, in)
  747. }
  748. info := &grpc.UnaryServerInfo{
  749. Server: srv,
  750. FullMethod: "/im.Api/SignInUserCode",
  751. }
  752. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  753. return srv.(ApiServer).SignInUserCode(ctx, req.(*SignInPasswordRequest))
  754. }
  755. return interceptor(ctx, in, info, handler)
  756. }
  757. func _Api_SignInWithPhonePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  758. in := new(SignInPasswordRequest)
  759. if err := dec(in); err != nil {
  760. return nil, err
  761. }
  762. if interceptor == nil {
  763. return srv.(ApiServer).SignInWithPhonePassword(ctx, in)
  764. }
  765. info := &grpc.UnaryServerInfo{
  766. Server: srv,
  767. FullMethod: "/im.Api/SignInWithPhonePassword",
  768. }
  769. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  770. return srv.(ApiServer).SignInWithPhonePassword(ctx, req.(*SignInPasswordRequest))
  771. }
  772. return interceptor(ctx, in, info, handler)
  773. }
  774. func _Api_SubSessionCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  775. in := new(TokenParam)
  776. if err := dec(in); err != nil {
  777. return nil, err
  778. }
  779. if interceptor == nil {
  780. return srv.(ApiServer).SubSessionCheck(ctx, in)
  781. }
  782. info := &grpc.UnaryServerInfo{
  783. Server: srv,
  784. FullMethod: "/im.Api/SubSessionCheck",
  785. }
  786. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  787. return srv.(ApiServer).SubSessionCheck(ctx, req.(*TokenParam))
  788. }
  789. return interceptor(ctx, in, info, handler)
  790. }
  791. func _Api_SubSessionSetValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  792. in := new(SubSessionSetValueRequest)
  793. if err := dec(in); err != nil {
  794. return nil, err
  795. }
  796. if interceptor == nil {
  797. return srv.(ApiServer).SubSessionSetValue(ctx, in)
  798. }
  799. info := &grpc.UnaryServerInfo{
  800. Server: srv,
  801. FullMethod: "/im.Api/SubSessionSetValue",
  802. }
  803. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  804. return srv.(ApiServer).SubSessionSetValue(ctx, req.(*SubSessionSetValueRequest))
  805. }
  806. return interceptor(ctx, in, info, handler)
  807. }
  808. func _Api_SubSessionGetValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  809. in := new(SubSessionGetValueRequest)
  810. if err := dec(in); err != nil {
  811. return nil, err
  812. }
  813. if interceptor == nil {
  814. return srv.(ApiServer).SubSessionGetValue(ctx, in)
  815. }
  816. info := &grpc.UnaryServerInfo{
  817. Server: srv,
  818. FullMethod: "/im.Api/SubSessionGetValue",
  819. }
  820. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  821. return srv.(ApiServer).SubSessionGetValue(ctx, req.(*SubSessionGetValueRequest))
  822. }
  823. return interceptor(ctx, in, info, handler)
  824. }
  825. func _Api_SubPermissionListCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  826. in := new(PermissionCheck)
  827. if err := dec(in); err != nil {
  828. return nil, err
  829. }
  830. if interceptor == nil {
  831. return srv.(ApiServer).SubPermissionListCheck(ctx, in)
  832. }
  833. info := &grpc.UnaryServerInfo{
  834. Server: srv,
  835. FullMethod: "/im.Api/SubPermissionListCheck",
  836. }
  837. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  838. return srv.(ApiServer).SubPermissionListCheck(ctx, req.(*PermissionCheck))
  839. }
  840. return interceptor(ctx, in, info, handler)
  841. }
  842. func _Api_SubSignOut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  843. in := new(TokenParam)
  844. if err := dec(in); err != nil {
  845. return nil, err
  846. }
  847. if interceptor == nil {
  848. return srv.(ApiServer).SubSignOut(ctx, in)
  849. }
  850. info := &grpc.UnaryServerInfo{
  851. Server: srv,
  852. FullMethod: "/im.Api/SubSignOut",
  853. }
  854. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  855. return srv.(ApiServer).SubSignOut(ctx, req.(*TokenParam))
  856. }
  857. return interceptor(ctx, in, info, handler)
  858. }
  859. func _Api_SubServiceSaveList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  860. in := new(SaveServiceListRequest)
  861. if err := dec(in); err != nil {
  862. return nil, err
  863. }
  864. if interceptor == nil {
  865. return srv.(ApiServer).SubServiceSaveList(ctx, in)
  866. }
  867. info := &grpc.UnaryServerInfo{
  868. Server: srv,
  869. FullMethod: "/im.Api/SubServiceSaveList",
  870. }
  871. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  872. return srv.(ApiServer).SubServiceSaveList(ctx, req.(*SaveServiceListRequest))
  873. }
  874. return interceptor(ctx, in, info, handler)
  875. }
  876. func _Api_UserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  877. in := new(UserListRequest)
  878. if err := dec(in); err != nil {
  879. return nil, err
  880. }
  881. if interceptor == nil {
  882. return srv.(ApiServer).UserList(ctx, in)
  883. }
  884. info := &grpc.UnaryServerInfo{
  885. Server: srv,
  886. FullMethod: "/im.Api/UserList",
  887. }
  888. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  889. return srv.(ApiServer).UserList(ctx, req.(*UserListRequest))
  890. }
  891. return interceptor(ctx, in, info, handler)
  892. }
  893. func _Api_UserGetInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  894. in := new(UserGetInfoRequest)
  895. if err := dec(in); err != nil {
  896. return nil, err
  897. }
  898. if interceptor == nil {
  899. return srv.(ApiServer).UserGetInfo(ctx, in)
  900. }
  901. info := &grpc.UnaryServerInfo{
  902. Server: srv,
  903. FullMethod: "/im.Api/UserGetInfo",
  904. }
  905. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  906. return srv.(ApiServer).UserGetInfo(ctx, req.(*UserGetInfoRequest))
  907. }
  908. return interceptor(ctx, in, info, handler)
  909. }
  910. func _Api_UserAddRoles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  911. in := new(UserRolesRequest)
  912. if err := dec(in); err != nil {
  913. return nil, err
  914. }
  915. if interceptor == nil {
  916. return srv.(ApiServer).UserAddRoles(ctx, in)
  917. }
  918. info := &grpc.UnaryServerInfo{
  919. Server: srv,
  920. FullMethod: "/im.Api/UserAddRoles",
  921. }
  922. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  923. return srv.(ApiServer).UserAddRoles(ctx, req.(*UserRolesRequest))
  924. }
  925. return interceptor(ctx, in, info, handler)
  926. }
  927. func _Api_UserRemoveRoles_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  928. in := new(UserRolesRequest)
  929. if err := dec(in); err != nil {
  930. return nil, err
  931. }
  932. if interceptor == nil {
  933. return srv.(ApiServer).UserRemoveRoles(ctx, in)
  934. }
  935. info := &grpc.UnaryServerInfo{
  936. Server: srv,
  937. FullMethod: "/im.Api/UserRemoveRoles",
  938. }
  939. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  940. return srv.(ApiServer).UserRemoveRoles(ctx, req.(*UserRolesRequest))
  941. }
  942. return interceptor(ctx, in, info, handler)
  943. }
  944. func _Api_UserGetColumnList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  945. in := new(UserGetColumnListRequest)
  946. if err := dec(in); err != nil {
  947. return nil, err
  948. }
  949. if interceptor == nil {
  950. return srv.(ApiServer).UserGetColumnList(ctx, in)
  951. }
  952. info := &grpc.UnaryServerInfo{
  953. Server: srv,
  954. FullMethod: "/im.Api/UserGetColumnList",
  955. }
  956. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  957. return srv.(ApiServer).UserGetColumnList(ctx, req.(*UserGetColumnListRequest))
  958. }
  959. return interceptor(ctx, in, info, handler)
  960. }
  961. func _Api_RoleCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  962. in := new(CreateRoleRequest)
  963. if err := dec(in); err != nil {
  964. return nil, err
  965. }
  966. if interceptor == nil {
  967. return srv.(ApiServer).RoleCreate(ctx, in)
  968. }
  969. info := &grpc.UnaryServerInfo{
  970. Server: srv,
  971. FullMethod: "/im.Api/RoleCreate",
  972. }
  973. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  974. return srv.(ApiServer).RoleCreate(ctx, req.(*CreateRoleRequest))
  975. }
  976. return interceptor(ctx, in, info, handler)
  977. }
  978. func _Api_RoleList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  979. in := new(RoleListRequest)
  980. if err := dec(in); err != nil {
  981. return nil, err
  982. }
  983. if interceptor == nil {
  984. return srv.(ApiServer).RoleList(ctx, in)
  985. }
  986. info := &grpc.UnaryServerInfo{
  987. Server: srv,
  988. FullMethod: "/im.Api/RoleList",
  989. }
  990. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  991. return srv.(ApiServer).RoleList(ctx, req.(*RoleListRequest))
  992. }
  993. return interceptor(ctx, in, info, handler)
  994. }
  995. func _Api_RoleEdit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  996. in := new(Role)
  997. if err := dec(in); err != nil {
  998. return nil, err
  999. }
  1000. if interceptor == nil {
  1001. return srv.(ApiServer).RoleEdit(ctx, in)
  1002. }
  1003. info := &grpc.UnaryServerInfo{
  1004. Server: srv,
  1005. FullMethod: "/im.Api/RoleEdit",
  1006. }
  1007. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1008. return srv.(ApiServer).RoleEdit(ctx, req.(*Role))
  1009. }
  1010. return interceptor(ctx, in, info, handler)
  1011. }
  1012. func _Api_RoleAddPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1013. in := new(RolePermissionRequest)
  1014. if err := dec(in); err != nil {
  1015. return nil, err
  1016. }
  1017. if interceptor == nil {
  1018. return srv.(ApiServer).RoleAddPermissions(ctx, in)
  1019. }
  1020. info := &grpc.UnaryServerInfo{
  1021. Server: srv,
  1022. FullMethod: "/im.Api/RoleAddPermissions",
  1023. }
  1024. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1025. return srv.(ApiServer).RoleAddPermissions(ctx, req.(*RolePermissionRequest))
  1026. }
  1027. return interceptor(ctx, in, info, handler)
  1028. }
  1029. func _Api_RoleRemovePermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1030. in := new(RolePermissionRequest)
  1031. if err := dec(in); err != nil {
  1032. return nil, err
  1033. }
  1034. if interceptor == nil {
  1035. return srv.(ApiServer).RoleRemovePermissions(ctx, in)
  1036. }
  1037. info := &grpc.UnaryServerInfo{
  1038. Server: srv,
  1039. FullMethod: "/im.Api/RoleRemovePermissions",
  1040. }
  1041. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1042. return srv.(ApiServer).RoleRemovePermissions(ctx, req.(*RolePermissionRequest))
  1043. }
  1044. return interceptor(ctx, in, info, handler)
  1045. }
  1046. func _Api_ServiceList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1047. in := new(ServiceListRequest)
  1048. if err := dec(in); err != nil {
  1049. return nil, err
  1050. }
  1051. if interceptor == nil {
  1052. return srv.(ApiServer).ServiceList(ctx, in)
  1053. }
  1054. info := &grpc.UnaryServerInfo{
  1055. Server: srv,
  1056. FullMethod: "/im.Api/ServiceList",
  1057. }
  1058. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1059. return srv.(ApiServer).ServiceList(ctx, req.(*ServiceListRequest))
  1060. }
  1061. return interceptor(ctx, in, info, handler)
  1062. }
  1063. func _Api_ServiceRemoveList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1064. in := new(ServiceRemoveRequest)
  1065. if err := dec(in); err != nil {
  1066. return nil, err
  1067. }
  1068. if interceptor == nil {
  1069. return srv.(ApiServer).ServiceRemoveList(ctx, in)
  1070. }
  1071. info := &grpc.UnaryServerInfo{
  1072. Server: srv,
  1073. FullMethod: "/im.Api/ServiceRemoveList",
  1074. }
  1075. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1076. return srv.(ApiServer).ServiceRemoveList(ctx, req.(*ServiceRemoveRequest))
  1077. }
  1078. return interceptor(ctx, in, info, handler)
  1079. }
  1080. func _Api_ShopCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1081. in := new(CreateShopRequest)
  1082. if err := dec(in); err != nil {
  1083. return nil, err
  1084. }
  1085. if interceptor == nil {
  1086. return srv.(ApiServer).ShopCreate(ctx, in)
  1087. }
  1088. info := &grpc.UnaryServerInfo{
  1089. Server: srv,
  1090. FullMethod: "/im.Api/ShopCreate",
  1091. }
  1092. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1093. return srv.(ApiServer).ShopCreate(ctx, req.(*CreateShopRequest))
  1094. }
  1095. return interceptor(ctx, in, info, handler)
  1096. }
  1097. func _Api_ShopList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1098. in := new(ShopListRequest)
  1099. if err := dec(in); err != nil {
  1100. return nil, err
  1101. }
  1102. if interceptor == nil {
  1103. return srv.(ApiServer).ShopList(ctx, in)
  1104. }
  1105. info := &grpc.UnaryServerInfo{
  1106. Server: srv,
  1107. FullMethod: "/im.Api/ShopList",
  1108. }
  1109. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1110. return srv.(ApiServer).ShopList(ctx, req.(*ShopListRequest))
  1111. }
  1112. return interceptor(ctx, in, info, handler)
  1113. }
  1114. func _Api_ShopDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1115. in := new(ShopDetailRequest)
  1116. if err := dec(in); err != nil {
  1117. return nil, err
  1118. }
  1119. if interceptor == nil {
  1120. return srv.(ApiServer).ShopDetail(ctx, in)
  1121. }
  1122. info := &grpc.UnaryServerInfo{
  1123. Server: srv,
  1124. FullMethod: "/im.Api/ShopDetail",
  1125. }
  1126. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1127. return srv.(ApiServer).ShopDetail(ctx, req.(*ShopDetailRequest))
  1128. }
  1129. return interceptor(ctx, in, info, handler)
  1130. }
  1131. func _Api_ShopLicenseList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1132. in := new(ShopDetailRequest)
  1133. if err := dec(in); err != nil {
  1134. return nil, err
  1135. }
  1136. if interceptor == nil {
  1137. return srv.(ApiServer).ShopLicenseList(ctx, in)
  1138. }
  1139. info := &grpc.UnaryServerInfo{
  1140. Server: srv,
  1141. FullMethod: "/im.Api/ShopLicenseList",
  1142. }
  1143. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1144. return srv.(ApiServer).ShopLicenseList(ctx, req.(*ShopDetailRequest))
  1145. }
  1146. return interceptor(ctx, in, info, handler)
  1147. }
  1148. func _Api_ShopAddUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1149. in := new(ShopAddUserRequest)
  1150. if err := dec(in); err != nil {
  1151. return nil, err
  1152. }
  1153. if interceptor == nil {
  1154. return srv.(ApiServer).ShopAddUser(ctx, in)
  1155. }
  1156. info := &grpc.UnaryServerInfo{
  1157. Server: srv,
  1158. FullMethod: "/im.Api/ShopAddUser",
  1159. }
  1160. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1161. return srv.(ApiServer).ShopAddUser(ctx, req.(*ShopAddUserRequest))
  1162. }
  1163. return interceptor(ctx, in, info, handler)
  1164. }
  1165. func _Api_ShopAddLicense_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1166. in := new(ShopAddLicenseRequest)
  1167. if err := dec(in); err != nil {
  1168. return nil, err
  1169. }
  1170. if interceptor == nil {
  1171. return srv.(ApiServer).ShopAddLicense(ctx, in)
  1172. }
  1173. info := &grpc.UnaryServerInfo{
  1174. Server: srv,
  1175. FullMethod: "/im.Api/ShopAddLicense",
  1176. }
  1177. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1178. return srv.(ApiServer).ShopAddLicense(ctx, req.(*ShopAddLicenseRequest))
  1179. }
  1180. return interceptor(ctx, in, info, handler)
  1181. }
  1182. func _Api_SystemAddShop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1183. in := new(SystemAddShopRequest)
  1184. if err := dec(in); err != nil {
  1185. return nil, err
  1186. }
  1187. if interceptor == nil {
  1188. return srv.(ApiServer).SystemAddShop(ctx, in)
  1189. }
  1190. info := &grpc.UnaryServerInfo{
  1191. Server: srv,
  1192. FullMethod: "/im.Api/SystemAddShop",
  1193. }
  1194. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1195. return srv.(ApiServer).SystemAddShop(ctx, req.(*SystemAddShopRequest))
  1196. }
  1197. return interceptor(ctx, in, info, handler)
  1198. }
  1199. func _Api_SystemAddUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1200. in := new(SystemAddUserRequest)
  1201. if err := dec(in); err != nil {
  1202. return nil, err
  1203. }
  1204. if interceptor == nil {
  1205. return srv.(ApiServer).SystemAddUser(ctx, in)
  1206. }
  1207. info := &grpc.UnaryServerInfo{
  1208. Server: srv,
  1209. FullMethod: "/im.Api/SystemAddUser",
  1210. }
  1211. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1212. return srv.(ApiServer).SystemAddUser(ctx, req.(*SystemAddUserRequest))
  1213. }
  1214. return interceptor(ctx, in, info, handler)
  1215. }
  1216. func _Api_ColumnCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1217. in := new(ColumnCreateRequest)
  1218. if err := dec(in); err != nil {
  1219. return nil, err
  1220. }
  1221. if interceptor == nil {
  1222. return srv.(ApiServer).ColumnCreate(ctx, in)
  1223. }
  1224. info := &grpc.UnaryServerInfo{
  1225. Server: srv,
  1226. FullMethod: "/im.Api/ColumnCreate",
  1227. }
  1228. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1229. return srv.(ApiServer).ColumnCreate(ctx, req.(*ColumnCreateRequest))
  1230. }
  1231. return interceptor(ctx, in, info, handler)
  1232. }
  1233. func _Api_LicenseCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1234. in := new(LicenseCreateRequest)
  1235. if err := dec(in); err != nil {
  1236. return nil, err
  1237. }
  1238. if interceptor == nil {
  1239. return srv.(ApiServer).LicenseCreate(ctx, in)
  1240. }
  1241. info := &grpc.UnaryServerInfo{
  1242. Server: srv,
  1243. FullMethod: "/im.Api/LicenseCreate",
  1244. }
  1245. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1246. return srv.(ApiServer).LicenseCreate(ctx, req.(*LicenseCreateRequest))
  1247. }
  1248. return interceptor(ctx, in, info, handler)
  1249. }
  1250. func _Api_LicenseTypeMap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1251. in := new(IdList)
  1252. if err := dec(in); err != nil {
  1253. return nil, err
  1254. }
  1255. if interceptor == nil {
  1256. return srv.(ApiServer).LicenseTypeMap(ctx, in)
  1257. }
  1258. info := &grpc.UnaryServerInfo{
  1259. Server: srv,
  1260. FullMethod: "/im.Api/LicenseTypeMap",
  1261. }
  1262. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1263. return srv.(ApiServer).LicenseTypeMap(ctx, req.(*IdList))
  1264. }
  1265. return interceptor(ctx, in, info, handler)
  1266. }
  1267. func _Api_LicenseBindColumns_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1268. in := new(LicenseBindColumnsRequest)
  1269. if err := dec(in); err != nil {
  1270. return nil, err
  1271. }
  1272. if interceptor == nil {
  1273. return srv.(ApiServer).LicenseBindColumns(ctx, in)
  1274. }
  1275. info := &grpc.UnaryServerInfo{
  1276. Server: srv,
  1277. FullMethod: "/im.Api/LicenseBindColumns",
  1278. }
  1279. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1280. return srv.(ApiServer).LicenseBindColumns(ctx, req.(*LicenseBindColumnsRequest))
  1281. }
  1282. return interceptor(ctx, in, info, handler)
  1283. }
  1284. func _Api_IMSystemCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1285. in := new(CreateSystemRequest)
  1286. if err := dec(in); err != nil {
  1287. return nil, err
  1288. }
  1289. if interceptor == nil {
  1290. return srv.(ApiServer).IMSystemCreate(ctx, in)
  1291. }
  1292. info := &grpc.UnaryServerInfo{
  1293. Server: srv,
  1294. FullMethod: "/im.Api/IMSystemCreate",
  1295. }
  1296. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1297. return srv.(ApiServer).IMSystemCreate(ctx, req.(*CreateSystemRequest))
  1298. }
  1299. return interceptor(ctx, in, info, handler)
  1300. }
  1301. func _Api_IMSignOut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1302. in := new(DefaultRequest)
  1303. if err := dec(in); err != nil {
  1304. return nil, err
  1305. }
  1306. if interceptor == nil {
  1307. return srv.(ApiServer).IMSignOut(ctx, in)
  1308. }
  1309. info := &grpc.UnaryServerInfo{
  1310. Server: srv,
  1311. FullMethod: "/im.Api/IMSignOut",
  1312. }
  1313. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1314. return srv.(ApiServer).IMSignOut(ctx, req.(*DefaultRequest))
  1315. }
  1316. return interceptor(ctx, in, info, handler)
  1317. }
  1318. func _Api_IMSelfInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1319. in := new(DefaultRequest)
  1320. if err := dec(in); err != nil {
  1321. return nil, err
  1322. }
  1323. if interceptor == nil {
  1324. return srv.(ApiServer).IMSelfInfo(ctx, in)
  1325. }
  1326. info := &grpc.UnaryServerInfo{
  1327. Server: srv,
  1328. FullMethod: "/im.Api/IMSelfInfo",
  1329. }
  1330. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1331. return srv.(ApiServer).IMSelfInfo(ctx, req.(*DefaultRequest))
  1332. }
  1333. return interceptor(ctx, in, info, handler)
  1334. }
  1335. func _Api_IMMessageRcv_Handler(srv interface{}, stream grpc.ServerStream) error {
  1336. m := new(DefaultRequest)
  1337. if err := stream.RecvMsg(m); err != nil {
  1338. return err
  1339. }
  1340. return srv.(ApiServer).IMMessageRcv(m, &apiIMMessageRcvServer{stream})
  1341. }
  1342. type Api_IMMessageRcvServer interface {
  1343. Send(*Message) error
  1344. grpc.ServerStream
  1345. }
  1346. type apiIMMessageRcvServer struct {
  1347. grpc.ServerStream
  1348. }
  1349. func (x *apiIMMessageRcvServer) Send(m *Message) error {
  1350. return x.ServerStream.SendMsg(m)
  1351. }
  1352. var _Api_serviceDesc = grpc.ServiceDesc{
  1353. ServiceName: "im.Api",
  1354. HandlerType: (*ApiServer)(nil),
  1355. Methods: []grpc.MethodDesc{
  1356. {
  1357. MethodName: "GenVerifyImage",
  1358. Handler: _Api_GenVerifyImage_Handler,
  1359. },
  1360. {
  1361. MethodName: "GenPhoneVerifyCode",
  1362. Handler: _Api_GenPhoneVerifyCode_Handler,
  1363. },
  1364. {
  1365. MethodName: "CheckVerifyCode",
  1366. Handler: _Api_CheckVerifyCode_Handler,
  1367. },
  1368. {
  1369. MethodName: "SignUpUserCode",
  1370. Handler: _Api_SignUpUserCode_Handler,
  1371. },
  1372. {
  1373. MethodName: "SignUpPhone",
  1374. Handler: _Api_SignUpPhone_Handler,
  1375. },
  1376. {
  1377. MethodName: "SignInUserCode",
  1378. Handler: _Api_SignInUserCode_Handler,
  1379. },
  1380. {
  1381. MethodName: "SignInWithPhonePassword",
  1382. Handler: _Api_SignInWithPhonePassword_Handler,
  1383. },
  1384. {
  1385. MethodName: "SubSessionCheck",
  1386. Handler: _Api_SubSessionCheck_Handler,
  1387. },
  1388. {
  1389. MethodName: "SubSessionSetValue",
  1390. Handler: _Api_SubSessionSetValue_Handler,
  1391. },
  1392. {
  1393. MethodName: "SubSessionGetValue",
  1394. Handler: _Api_SubSessionGetValue_Handler,
  1395. },
  1396. {
  1397. MethodName: "SubPermissionListCheck",
  1398. Handler: _Api_SubPermissionListCheck_Handler,
  1399. },
  1400. {
  1401. MethodName: "SubSignOut",
  1402. Handler: _Api_SubSignOut_Handler,
  1403. },
  1404. {
  1405. MethodName: "SubServiceSaveList",
  1406. Handler: _Api_SubServiceSaveList_Handler,
  1407. },
  1408. {
  1409. MethodName: "UserList",
  1410. Handler: _Api_UserList_Handler,
  1411. },
  1412. {
  1413. MethodName: "UserGetInfo",
  1414. Handler: _Api_UserGetInfo_Handler,
  1415. },
  1416. {
  1417. MethodName: "UserAddRoles",
  1418. Handler: _Api_UserAddRoles_Handler,
  1419. },
  1420. {
  1421. MethodName: "UserRemoveRoles",
  1422. Handler: _Api_UserRemoveRoles_Handler,
  1423. },
  1424. {
  1425. MethodName: "UserGetColumnList",
  1426. Handler: _Api_UserGetColumnList_Handler,
  1427. },
  1428. {
  1429. MethodName: "RoleCreate",
  1430. Handler: _Api_RoleCreate_Handler,
  1431. },
  1432. {
  1433. MethodName: "RoleList",
  1434. Handler: _Api_RoleList_Handler,
  1435. },
  1436. {
  1437. MethodName: "RoleEdit",
  1438. Handler: _Api_RoleEdit_Handler,
  1439. },
  1440. {
  1441. MethodName: "RoleAddPermissions",
  1442. Handler: _Api_RoleAddPermissions_Handler,
  1443. },
  1444. {
  1445. MethodName: "RoleRemovePermissions",
  1446. Handler: _Api_RoleRemovePermissions_Handler,
  1447. },
  1448. {
  1449. MethodName: "ServiceList",
  1450. Handler: _Api_ServiceList_Handler,
  1451. },
  1452. {
  1453. MethodName: "ServiceRemoveList",
  1454. Handler: _Api_ServiceRemoveList_Handler,
  1455. },
  1456. {
  1457. MethodName: "ShopCreate",
  1458. Handler: _Api_ShopCreate_Handler,
  1459. },
  1460. {
  1461. MethodName: "ShopList",
  1462. Handler: _Api_ShopList_Handler,
  1463. },
  1464. {
  1465. MethodName: "ShopDetail",
  1466. Handler: _Api_ShopDetail_Handler,
  1467. },
  1468. {
  1469. MethodName: "ShopLicenseList",
  1470. Handler: _Api_ShopLicenseList_Handler,
  1471. },
  1472. {
  1473. MethodName: "ShopAddUser",
  1474. Handler: _Api_ShopAddUser_Handler,
  1475. },
  1476. {
  1477. MethodName: "ShopAddLicense",
  1478. Handler: _Api_ShopAddLicense_Handler,
  1479. },
  1480. {
  1481. MethodName: "SystemAddShop",
  1482. Handler: _Api_SystemAddShop_Handler,
  1483. },
  1484. {
  1485. MethodName: "SystemAddUser",
  1486. Handler: _Api_SystemAddUser_Handler,
  1487. },
  1488. {
  1489. MethodName: "ColumnCreate",
  1490. Handler: _Api_ColumnCreate_Handler,
  1491. },
  1492. {
  1493. MethodName: "LicenseCreate",
  1494. Handler: _Api_LicenseCreate_Handler,
  1495. },
  1496. {
  1497. MethodName: "LicenseTypeMap",
  1498. Handler: _Api_LicenseTypeMap_Handler,
  1499. },
  1500. {
  1501. MethodName: "LicenseBindColumns",
  1502. Handler: _Api_LicenseBindColumns_Handler,
  1503. },
  1504. {
  1505. MethodName: "IMSystemCreate",
  1506. Handler: _Api_IMSystemCreate_Handler,
  1507. },
  1508. {
  1509. MethodName: "IMSignOut",
  1510. Handler: _Api_IMSignOut_Handler,
  1511. },
  1512. {
  1513. MethodName: "IMSelfInfo",
  1514. Handler: _Api_IMSelfInfo_Handler,
  1515. },
  1516. },
  1517. Streams: []grpc.StreamDesc{
  1518. {
  1519. StreamName: "IMMessageRcv",
  1520. Handler: _Api_IMMessageRcv_Handler,
  1521. ServerStreams: true,
  1522. },
  1523. },
  1524. Metadata: "im.proto",
  1525. }