im_grpc.pb.go 59 KB

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