memo_service.pb.gw.go 74 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452
  1. // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
  2. // source: api/v1/memo_service.proto
  3. /*
  4. Package apiv1 is a reverse proxy.
  5. It translates gRPC into RESTful JSON APIs.
  6. */
  7. package apiv1
  8. import (
  9. "context"
  10. "errors"
  11. "io"
  12. "net/http"
  13. "github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
  14. "github.com/grpc-ecosystem/grpc-gateway/v2/utilities"
  15. "google.golang.org/grpc"
  16. "google.golang.org/grpc/codes"
  17. "google.golang.org/grpc/grpclog"
  18. "google.golang.org/grpc/metadata"
  19. "google.golang.org/grpc/status"
  20. "google.golang.org/protobuf/proto"
  21. )
  22. // Suppress "imported and not used" errors
  23. var (
  24. _ codes.Code
  25. _ io.Reader
  26. _ status.Status
  27. _ = errors.New
  28. _ = runtime.String
  29. _ = utilities.NewDoubleArray
  30. _ = metadata.Join
  31. )
  32. func request_MemoService_CreateMemo_0(ctx context.Context, marshaler runtime.Marshaler, client MemoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  33. var (
  34. protoReq CreateMemoRequest
  35. metadata runtime.ServerMetadata
  36. )
  37. if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
  38. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  39. }
  40. msg, err := client.CreateMemo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  41. return msg, metadata, err
  42. }
  43. func local_request_MemoService_CreateMemo_0(ctx context.Context, marshaler runtime.Marshaler, server MemoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  44. var (
  45. protoReq CreateMemoRequest
  46. metadata runtime.ServerMetadata
  47. )
  48. if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
  49. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  50. }
  51. msg, err := server.CreateMemo(ctx, &protoReq)
  52. return msg, metadata, err
  53. }
  54. var filter_MemoService_ListMemos_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
  55. func request_MemoService_ListMemos_0(ctx context.Context, marshaler runtime.Marshaler, client MemoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  56. var (
  57. protoReq ListMemosRequest
  58. metadata runtime.ServerMetadata
  59. )
  60. if err := req.ParseForm(); err != nil {
  61. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  62. }
  63. if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_MemoService_ListMemos_0); err != nil {
  64. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  65. }
  66. msg, err := client.ListMemos(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  67. return msg, metadata, err
  68. }
  69. func local_request_MemoService_ListMemos_0(ctx context.Context, marshaler runtime.Marshaler, server MemoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  70. var (
  71. protoReq ListMemosRequest
  72. metadata runtime.ServerMetadata
  73. )
  74. if err := req.ParseForm(); err != nil {
  75. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  76. }
  77. if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_MemoService_ListMemos_0); err != nil {
  78. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  79. }
  80. msg, err := server.ListMemos(ctx, &protoReq)
  81. return msg, metadata, err
  82. }
  83. func request_MemoService_GetMemo_0(ctx context.Context, marshaler runtime.Marshaler, client MemoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  84. var (
  85. protoReq GetMemoRequest
  86. metadata runtime.ServerMetadata
  87. err error
  88. )
  89. val, ok := pathParams["name"]
  90. if !ok {
  91. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  92. }
  93. protoReq.Name, err = runtime.String(val)
  94. if err != nil {
  95. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  96. }
  97. msg, err := client.GetMemo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  98. return msg, metadata, err
  99. }
  100. func local_request_MemoService_GetMemo_0(ctx context.Context, marshaler runtime.Marshaler, server MemoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  101. var (
  102. protoReq GetMemoRequest
  103. metadata runtime.ServerMetadata
  104. err error
  105. )
  106. val, ok := pathParams["name"]
  107. if !ok {
  108. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  109. }
  110. protoReq.Name, err = runtime.String(val)
  111. if err != nil {
  112. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  113. }
  114. msg, err := server.GetMemo(ctx, &protoReq)
  115. return msg, metadata, err
  116. }
  117. func request_MemoService_GetMemoByUid_0(ctx context.Context, marshaler runtime.Marshaler, client MemoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  118. var (
  119. protoReq GetMemoByUidRequest
  120. metadata runtime.ServerMetadata
  121. err error
  122. )
  123. val, ok := pathParams["uid"]
  124. if !ok {
  125. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "uid")
  126. }
  127. protoReq.Uid, err = runtime.String(val)
  128. if err != nil {
  129. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "uid", err)
  130. }
  131. msg, err := client.GetMemoByUid(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  132. return msg, metadata, err
  133. }
  134. func local_request_MemoService_GetMemoByUid_0(ctx context.Context, marshaler runtime.Marshaler, server MemoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  135. var (
  136. protoReq GetMemoByUidRequest
  137. metadata runtime.ServerMetadata
  138. err error
  139. )
  140. val, ok := pathParams["uid"]
  141. if !ok {
  142. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "uid")
  143. }
  144. protoReq.Uid, err = runtime.String(val)
  145. if err != nil {
  146. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "uid", err)
  147. }
  148. msg, err := server.GetMemoByUid(ctx, &protoReq)
  149. return msg, metadata, err
  150. }
  151. var filter_MemoService_UpdateMemo_0 = &utilities.DoubleArray{Encoding: map[string]int{"memo": 0, "name": 1}, Base: []int{1, 2, 1, 0, 0}, Check: []int{0, 1, 2, 3, 2}}
  152. func request_MemoService_UpdateMemo_0(ctx context.Context, marshaler runtime.Marshaler, client MemoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  153. var (
  154. protoReq UpdateMemoRequest
  155. metadata runtime.ServerMetadata
  156. err error
  157. )
  158. newReader, berr := utilities.IOReaderFactory(req.Body)
  159. if berr != nil {
  160. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  161. }
  162. if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Memo); err != nil && !errors.Is(err, io.EOF) {
  163. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  164. }
  165. if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {
  166. if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.Memo); err != nil {
  167. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  168. } else {
  169. protoReq.UpdateMask = fieldMask
  170. }
  171. }
  172. val, ok := pathParams["memo.name"]
  173. if !ok {
  174. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "memo.name")
  175. }
  176. err = runtime.PopulateFieldFromPath(&protoReq, "memo.name", val)
  177. if err != nil {
  178. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "memo.name", err)
  179. }
  180. if err := req.ParseForm(); err != nil {
  181. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  182. }
  183. if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_MemoService_UpdateMemo_0); err != nil {
  184. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  185. }
  186. msg, err := client.UpdateMemo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  187. return msg, metadata, err
  188. }
  189. func local_request_MemoService_UpdateMemo_0(ctx context.Context, marshaler runtime.Marshaler, server MemoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  190. var (
  191. protoReq UpdateMemoRequest
  192. metadata runtime.ServerMetadata
  193. err error
  194. )
  195. newReader, berr := utilities.IOReaderFactory(req.Body)
  196. if berr != nil {
  197. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
  198. }
  199. if err := marshaler.NewDecoder(newReader()).Decode(&protoReq.Memo); err != nil && !errors.Is(err, io.EOF) {
  200. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  201. }
  202. if protoReq.UpdateMask == nil || len(protoReq.UpdateMask.GetPaths()) == 0 {
  203. if fieldMask, err := runtime.FieldMaskFromRequestBody(newReader(), protoReq.Memo); err != nil {
  204. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  205. } else {
  206. protoReq.UpdateMask = fieldMask
  207. }
  208. }
  209. val, ok := pathParams["memo.name"]
  210. if !ok {
  211. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "memo.name")
  212. }
  213. err = runtime.PopulateFieldFromPath(&protoReq, "memo.name", val)
  214. if err != nil {
  215. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "memo.name", err)
  216. }
  217. if err := req.ParseForm(); err != nil {
  218. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  219. }
  220. if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_MemoService_UpdateMemo_0); err != nil {
  221. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  222. }
  223. msg, err := server.UpdateMemo(ctx, &protoReq)
  224. return msg, metadata, err
  225. }
  226. func request_MemoService_DeleteMemo_0(ctx context.Context, marshaler runtime.Marshaler, client MemoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  227. var (
  228. protoReq DeleteMemoRequest
  229. metadata runtime.ServerMetadata
  230. err error
  231. )
  232. val, ok := pathParams["name"]
  233. if !ok {
  234. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  235. }
  236. protoReq.Name, err = runtime.String(val)
  237. if err != nil {
  238. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  239. }
  240. msg, err := client.DeleteMemo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  241. return msg, metadata, err
  242. }
  243. func local_request_MemoService_DeleteMemo_0(ctx context.Context, marshaler runtime.Marshaler, server MemoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  244. var (
  245. protoReq DeleteMemoRequest
  246. metadata runtime.ServerMetadata
  247. err error
  248. )
  249. val, ok := pathParams["name"]
  250. if !ok {
  251. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  252. }
  253. protoReq.Name, err = runtime.String(val)
  254. if err != nil {
  255. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  256. }
  257. msg, err := server.DeleteMemo(ctx, &protoReq)
  258. return msg, metadata, err
  259. }
  260. func request_MemoService_RenameMemoTag_0(ctx context.Context, marshaler runtime.Marshaler, client MemoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  261. var (
  262. protoReq RenameMemoTagRequest
  263. metadata runtime.ServerMetadata
  264. err error
  265. )
  266. if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
  267. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  268. }
  269. val, ok := pathParams["parent"]
  270. if !ok {
  271. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")
  272. }
  273. protoReq.Parent, err = runtime.String(val)
  274. if err != nil {
  275. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)
  276. }
  277. msg, err := client.RenameMemoTag(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  278. return msg, metadata, err
  279. }
  280. func local_request_MemoService_RenameMemoTag_0(ctx context.Context, marshaler runtime.Marshaler, server MemoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  281. var (
  282. protoReq RenameMemoTagRequest
  283. metadata runtime.ServerMetadata
  284. err error
  285. )
  286. if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
  287. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  288. }
  289. val, ok := pathParams["parent"]
  290. if !ok {
  291. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")
  292. }
  293. protoReq.Parent, err = runtime.String(val)
  294. if err != nil {
  295. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)
  296. }
  297. msg, err := server.RenameMemoTag(ctx, &protoReq)
  298. return msg, metadata, err
  299. }
  300. var filter_MemoService_DeleteMemoTag_0 = &utilities.DoubleArray{Encoding: map[string]int{"parent": 0, "tag": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}}
  301. func request_MemoService_DeleteMemoTag_0(ctx context.Context, marshaler runtime.Marshaler, client MemoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  302. var (
  303. protoReq DeleteMemoTagRequest
  304. metadata runtime.ServerMetadata
  305. err error
  306. )
  307. val, ok := pathParams["parent"]
  308. if !ok {
  309. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")
  310. }
  311. protoReq.Parent, err = runtime.String(val)
  312. if err != nil {
  313. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)
  314. }
  315. val, ok = pathParams["tag"]
  316. if !ok {
  317. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tag")
  318. }
  319. protoReq.Tag, err = runtime.String(val)
  320. if err != nil {
  321. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tag", err)
  322. }
  323. if err := req.ParseForm(); err != nil {
  324. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  325. }
  326. if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_MemoService_DeleteMemoTag_0); err != nil {
  327. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  328. }
  329. msg, err := client.DeleteMemoTag(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  330. return msg, metadata, err
  331. }
  332. func local_request_MemoService_DeleteMemoTag_0(ctx context.Context, marshaler runtime.Marshaler, server MemoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  333. var (
  334. protoReq DeleteMemoTagRequest
  335. metadata runtime.ServerMetadata
  336. err error
  337. )
  338. val, ok := pathParams["parent"]
  339. if !ok {
  340. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")
  341. }
  342. protoReq.Parent, err = runtime.String(val)
  343. if err != nil {
  344. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)
  345. }
  346. val, ok = pathParams["tag"]
  347. if !ok {
  348. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "tag")
  349. }
  350. protoReq.Tag, err = runtime.String(val)
  351. if err != nil {
  352. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "tag", err)
  353. }
  354. if err := req.ParseForm(); err != nil {
  355. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  356. }
  357. if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_MemoService_DeleteMemoTag_0); err != nil {
  358. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  359. }
  360. msg, err := server.DeleteMemoTag(ctx, &protoReq)
  361. return msg, metadata, err
  362. }
  363. func request_MemoService_SetMemoResources_0(ctx context.Context, marshaler runtime.Marshaler, client MemoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  364. var (
  365. protoReq SetMemoResourcesRequest
  366. metadata runtime.ServerMetadata
  367. err error
  368. )
  369. if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
  370. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  371. }
  372. val, ok := pathParams["name"]
  373. if !ok {
  374. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  375. }
  376. protoReq.Name, err = runtime.String(val)
  377. if err != nil {
  378. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  379. }
  380. msg, err := client.SetMemoResources(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  381. return msg, metadata, err
  382. }
  383. func local_request_MemoService_SetMemoResources_0(ctx context.Context, marshaler runtime.Marshaler, server MemoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  384. var (
  385. protoReq SetMemoResourcesRequest
  386. metadata runtime.ServerMetadata
  387. err error
  388. )
  389. if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
  390. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  391. }
  392. val, ok := pathParams["name"]
  393. if !ok {
  394. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  395. }
  396. protoReq.Name, err = runtime.String(val)
  397. if err != nil {
  398. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  399. }
  400. msg, err := server.SetMemoResources(ctx, &protoReq)
  401. return msg, metadata, err
  402. }
  403. func request_MemoService_ListMemoResources_0(ctx context.Context, marshaler runtime.Marshaler, client MemoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  404. var (
  405. protoReq ListMemoResourcesRequest
  406. metadata runtime.ServerMetadata
  407. err error
  408. )
  409. val, ok := pathParams["name"]
  410. if !ok {
  411. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  412. }
  413. protoReq.Name, err = runtime.String(val)
  414. if err != nil {
  415. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  416. }
  417. msg, err := client.ListMemoResources(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  418. return msg, metadata, err
  419. }
  420. func local_request_MemoService_ListMemoResources_0(ctx context.Context, marshaler runtime.Marshaler, server MemoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  421. var (
  422. protoReq ListMemoResourcesRequest
  423. metadata runtime.ServerMetadata
  424. err error
  425. )
  426. val, ok := pathParams["name"]
  427. if !ok {
  428. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  429. }
  430. protoReq.Name, err = runtime.String(val)
  431. if err != nil {
  432. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  433. }
  434. msg, err := server.ListMemoResources(ctx, &protoReq)
  435. return msg, metadata, err
  436. }
  437. func request_MemoService_SetMemoRelations_0(ctx context.Context, marshaler runtime.Marshaler, client MemoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  438. var (
  439. protoReq SetMemoRelationsRequest
  440. metadata runtime.ServerMetadata
  441. err error
  442. )
  443. if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
  444. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  445. }
  446. val, ok := pathParams["name"]
  447. if !ok {
  448. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  449. }
  450. protoReq.Name, err = runtime.String(val)
  451. if err != nil {
  452. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  453. }
  454. msg, err := client.SetMemoRelations(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  455. return msg, metadata, err
  456. }
  457. func local_request_MemoService_SetMemoRelations_0(ctx context.Context, marshaler runtime.Marshaler, server MemoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  458. var (
  459. protoReq SetMemoRelationsRequest
  460. metadata runtime.ServerMetadata
  461. err error
  462. )
  463. if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
  464. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  465. }
  466. val, ok := pathParams["name"]
  467. if !ok {
  468. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  469. }
  470. protoReq.Name, err = runtime.String(val)
  471. if err != nil {
  472. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  473. }
  474. msg, err := server.SetMemoRelations(ctx, &protoReq)
  475. return msg, metadata, err
  476. }
  477. func request_MemoService_ListMemoRelations_0(ctx context.Context, marshaler runtime.Marshaler, client MemoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  478. var (
  479. protoReq ListMemoRelationsRequest
  480. metadata runtime.ServerMetadata
  481. err error
  482. )
  483. val, ok := pathParams["name"]
  484. if !ok {
  485. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  486. }
  487. protoReq.Name, err = runtime.String(val)
  488. if err != nil {
  489. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  490. }
  491. msg, err := client.ListMemoRelations(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  492. return msg, metadata, err
  493. }
  494. func local_request_MemoService_ListMemoRelations_0(ctx context.Context, marshaler runtime.Marshaler, server MemoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  495. var (
  496. protoReq ListMemoRelationsRequest
  497. metadata runtime.ServerMetadata
  498. err error
  499. )
  500. val, ok := pathParams["name"]
  501. if !ok {
  502. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  503. }
  504. protoReq.Name, err = runtime.String(val)
  505. if err != nil {
  506. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  507. }
  508. msg, err := server.ListMemoRelations(ctx, &protoReq)
  509. return msg, metadata, err
  510. }
  511. func request_MemoService_CreateMemoComment_0(ctx context.Context, marshaler runtime.Marshaler, client MemoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  512. var (
  513. protoReq CreateMemoCommentRequest
  514. metadata runtime.ServerMetadata
  515. err error
  516. )
  517. if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.Comment); err != nil && !errors.Is(err, io.EOF) {
  518. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  519. }
  520. val, ok := pathParams["name"]
  521. if !ok {
  522. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  523. }
  524. protoReq.Name, err = runtime.String(val)
  525. if err != nil {
  526. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  527. }
  528. msg, err := client.CreateMemoComment(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  529. return msg, metadata, err
  530. }
  531. func local_request_MemoService_CreateMemoComment_0(ctx context.Context, marshaler runtime.Marshaler, server MemoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  532. var (
  533. protoReq CreateMemoCommentRequest
  534. metadata runtime.ServerMetadata
  535. err error
  536. )
  537. if err := marshaler.NewDecoder(req.Body).Decode(&protoReq.Comment); err != nil && !errors.Is(err, io.EOF) {
  538. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  539. }
  540. val, ok := pathParams["name"]
  541. if !ok {
  542. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  543. }
  544. protoReq.Name, err = runtime.String(val)
  545. if err != nil {
  546. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  547. }
  548. msg, err := server.CreateMemoComment(ctx, &protoReq)
  549. return msg, metadata, err
  550. }
  551. func request_MemoService_ListMemoComments_0(ctx context.Context, marshaler runtime.Marshaler, client MemoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  552. var (
  553. protoReq ListMemoCommentsRequest
  554. metadata runtime.ServerMetadata
  555. err error
  556. )
  557. val, ok := pathParams["name"]
  558. if !ok {
  559. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  560. }
  561. protoReq.Name, err = runtime.String(val)
  562. if err != nil {
  563. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  564. }
  565. msg, err := client.ListMemoComments(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  566. return msg, metadata, err
  567. }
  568. func local_request_MemoService_ListMemoComments_0(ctx context.Context, marshaler runtime.Marshaler, server MemoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  569. var (
  570. protoReq ListMemoCommentsRequest
  571. metadata runtime.ServerMetadata
  572. err error
  573. )
  574. val, ok := pathParams["name"]
  575. if !ok {
  576. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  577. }
  578. protoReq.Name, err = runtime.String(val)
  579. if err != nil {
  580. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  581. }
  582. msg, err := server.ListMemoComments(ctx, &protoReq)
  583. return msg, metadata, err
  584. }
  585. func request_MemoService_ListMemoReactions_0(ctx context.Context, marshaler runtime.Marshaler, client MemoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  586. var (
  587. protoReq ListMemoReactionsRequest
  588. metadata runtime.ServerMetadata
  589. err error
  590. )
  591. val, ok := pathParams["name"]
  592. if !ok {
  593. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  594. }
  595. protoReq.Name, err = runtime.String(val)
  596. if err != nil {
  597. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  598. }
  599. msg, err := client.ListMemoReactions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  600. return msg, metadata, err
  601. }
  602. func local_request_MemoService_ListMemoReactions_0(ctx context.Context, marshaler runtime.Marshaler, server MemoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  603. var (
  604. protoReq ListMemoReactionsRequest
  605. metadata runtime.ServerMetadata
  606. err error
  607. )
  608. val, ok := pathParams["name"]
  609. if !ok {
  610. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  611. }
  612. protoReq.Name, err = runtime.String(val)
  613. if err != nil {
  614. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  615. }
  616. msg, err := server.ListMemoReactions(ctx, &protoReq)
  617. return msg, metadata, err
  618. }
  619. func request_MemoService_UpsertMemoReaction_0(ctx context.Context, marshaler runtime.Marshaler, client MemoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  620. var (
  621. protoReq UpsertMemoReactionRequest
  622. metadata runtime.ServerMetadata
  623. err error
  624. )
  625. if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
  626. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  627. }
  628. val, ok := pathParams["name"]
  629. if !ok {
  630. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  631. }
  632. protoReq.Name, err = runtime.String(val)
  633. if err != nil {
  634. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  635. }
  636. msg, err := client.UpsertMemoReaction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  637. return msg, metadata, err
  638. }
  639. func local_request_MemoService_UpsertMemoReaction_0(ctx context.Context, marshaler runtime.Marshaler, server MemoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  640. var (
  641. protoReq UpsertMemoReactionRequest
  642. metadata runtime.ServerMetadata
  643. err error
  644. )
  645. if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
  646. return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
  647. }
  648. val, ok := pathParams["name"]
  649. if !ok {
  650. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")
  651. }
  652. protoReq.Name, err = runtime.String(val)
  653. if err != nil {
  654. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err)
  655. }
  656. msg, err := server.UpsertMemoReaction(ctx, &protoReq)
  657. return msg, metadata, err
  658. }
  659. func request_MemoService_DeleteMemoReaction_0(ctx context.Context, marshaler runtime.Marshaler, client MemoServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  660. var (
  661. protoReq DeleteMemoReactionRequest
  662. metadata runtime.ServerMetadata
  663. err error
  664. )
  665. val, ok := pathParams["id"]
  666. if !ok {
  667. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
  668. }
  669. protoReq.Id, err = runtime.Int32(val)
  670. if err != nil {
  671. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
  672. }
  673. msg, err := client.DeleteMemoReaction(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
  674. return msg, metadata, err
  675. }
  676. func local_request_MemoService_DeleteMemoReaction_0(ctx context.Context, marshaler runtime.Marshaler, server MemoServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
  677. var (
  678. protoReq DeleteMemoReactionRequest
  679. metadata runtime.ServerMetadata
  680. err error
  681. )
  682. val, ok := pathParams["id"]
  683. if !ok {
  684. return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")
  685. }
  686. protoReq.Id, err = runtime.Int32(val)
  687. if err != nil {
  688. return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err)
  689. }
  690. msg, err := server.DeleteMemoReaction(ctx, &protoReq)
  691. return msg, metadata, err
  692. }
  693. // RegisterMemoServiceHandlerServer registers the http handlers for service MemoService to "mux".
  694. // UnaryRPC :call MemoServiceServer directly.
  695. // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
  696. // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterMemoServiceHandlerFromEndpoint instead.
  697. // GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
  698. func RegisterMemoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MemoServiceServer) error {
  699. mux.Handle(http.MethodPost, pattern_MemoService_CreateMemo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  700. ctx, cancel := context.WithCancel(req.Context())
  701. defer cancel()
  702. var stream runtime.ServerTransportStream
  703. ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  704. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  705. annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/memos.api.v1.MemoService/CreateMemo", runtime.WithHTTPPathPattern("/api/v1/memos"))
  706. if err != nil {
  707. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  708. return
  709. }
  710. resp, md, err := local_request_MemoService_CreateMemo_0(annotatedContext, inboundMarshaler, server, req, pathParams)
  711. md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  712. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  713. if err != nil {
  714. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  715. return
  716. }
  717. forward_MemoService_CreateMemo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  718. })
  719. mux.Handle(http.MethodGet, pattern_MemoService_ListMemos_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  720. ctx, cancel := context.WithCancel(req.Context())
  721. defer cancel()
  722. var stream runtime.ServerTransportStream
  723. ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  724. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  725. annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/memos.api.v1.MemoService/ListMemos", runtime.WithHTTPPathPattern("/api/v1/memos"))
  726. if err != nil {
  727. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  728. return
  729. }
  730. resp, md, err := local_request_MemoService_ListMemos_0(annotatedContext, inboundMarshaler, server, req, pathParams)
  731. md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  732. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  733. if err != nil {
  734. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  735. return
  736. }
  737. forward_MemoService_ListMemos_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  738. })
  739. mux.Handle(http.MethodGet, pattern_MemoService_GetMemo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  740. ctx, cancel := context.WithCancel(req.Context())
  741. defer cancel()
  742. var stream runtime.ServerTransportStream
  743. ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  744. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  745. annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/memos.api.v1.MemoService/GetMemo", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}"))
  746. if err != nil {
  747. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  748. return
  749. }
  750. resp, md, err := local_request_MemoService_GetMemo_0(annotatedContext, inboundMarshaler, server, req, pathParams)
  751. md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  752. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  753. if err != nil {
  754. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  755. return
  756. }
  757. forward_MemoService_GetMemo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  758. })
  759. mux.Handle(http.MethodGet, pattern_MemoService_GetMemoByUid_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  760. ctx, cancel := context.WithCancel(req.Context())
  761. defer cancel()
  762. var stream runtime.ServerTransportStream
  763. ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  764. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  765. annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/memos.api.v1.MemoService/GetMemoByUid", runtime.WithHTTPPathPattern("/api/v1/memos:by-uid/{uid}"))
  766. if err != nil {
  767. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  768. return
  769. }
  770. resp, md, err := local_request_MemoService_GetMemoByUid_0(annotatedContext, inboundMarshaler, server, req, pathParams)
  771. md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  772. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  773. if err != nil {
  774. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  775. return
  776. }
  777. forward_MemoService_GetMemoByUid_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  778. })
  779. mux.Handle(http.MethodPatch, pattern_MemoService_UpdateMemo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  780. ctx, cancel := context.WithCancel(req.Context())
  781. defer cancel()
  782. var stream runtime.ServerTransportStream
  783. ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  784. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  785. annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/memos.api.v1.MemoService/UpdateMemo", runtime.WithHTTPPathPattern("/api/v1/{memo.name=memos/*}"))
  786. if err != nil {
  787. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  788. return
  789. }
  790. resp, md, err := local_request_MemoService_UpdateMemo_0(annotatedContext, inboundMarshaler, server, req, pathParams)
  791. md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  792. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  793. if err != nil {
  794. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  795. return
  796. }
  797. forward_MemoService_UpdateMemo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  798. })
  799. mux.Handle(http.MethodDelete, pattern_MemoService_DeleteMemo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  800. ctx, cancel := context.WithCancel(req.Context())
  801. defer cancel()
  802. var stream runtime.ServerTransportStream
  803. ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  804. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  805. annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/memos.api.v1.MemoService/DeleteMemo", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}"))
  806. if err != nil {
  807. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  808. return
  809. }
  810. resp, md, err := local_request_MemoService_DeleteMemo_0(annotatedContext, inboundMarshaler, server, req, pathParams)
  811. md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  812. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  813. if err != nil {
  814. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  815. return
  816. }
  817. forward_MemoService_DeleteMemo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  818. })
  819. mux.Handle(http.MethodPatch, pattern_MemoService_RenameMemoTag_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  820. ctx, cancel := context.WithCancel(req.Context())
  821. defer cancel()
  822. var stream runtime.ServerTransportStream
  823. ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  824. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  825. annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/memos.api.v1.MemoService/RenameMemoTag", runtime.WithHTTPPathPattern("/api/v1/{parent=memos/*}/tags:rename"))
  826. if err != nil {
  827. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  828. return
  829. }
  830. resp, md, err := local_request_MemoService_RenameMemoTag_0(annotatedContext, inboundMarshaler, server, req, pathParams)
  831. md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  832. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  833. if err != nil {
  834. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  835. return
  836. }
  837. forward_MemoService_RenameMemoTag_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  838. })
  839. mux.Handle(http.MethodDelete, pattern_MemoService_DeleteMemoTag_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  840. ctx, cancel := context.WithCancel(req.Context())
  841. defer cancel()
  842. var stream runtime.ServerTransportStream
  843. ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  844. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  845. annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/memos.api.v1.MemoService/DeleteMemoTag", runtime.WithHTTPPathPattern("/api/v1/{parent=memos/*}/tags/{tag}"))
  846. if err != nil {
  847. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  848. return
  849. }
  850. resp, md, err := local_request_MemoService_DeleteMemoTag_0(annotatedContext, inboundMarshaler, server, req, pathParams)
  851. md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  852. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  853. if err != nil {
  854. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  855. return
  856. }
  857. forward_MemoService_DeleteMemoTag_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  858. })
  859. mux.Handle(http.MethodPatch, pattern_MemoService_SetMemoResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  860. ctx, cancel := context.WithCancel(req.Context())
  861. defer cancel()
  862. var stream runtime.ServerTransportStream
  863. ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  864. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  865. annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/memos.api.v1.MemoService/SetMemoResources", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}/resources"))
  866. if err != nil {
  867. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  868. return
  869. }
  870. resp, md, err := local_request_MemoService_SetMemoResources_0(annotatedContext, inboundMarshaler, server, req, pathParams)
  871. md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  872. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  873. if err != nil {
  874. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  875. return
  876. }
  877. forward_MemoService_SetMemoResources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  878. })
  879. mux.Handle(http.MethodGet, pattern_MemoService_ListMemoResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  880. ctx, cancel := context.WithCancel(req.Context())
  881. defer cancel()
  882. var stream runtime.ServerTransportStream
  883. ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  884. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  885. annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/memos.api.v1.MemoService/ListMemoResources", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}/resources"))
  886. if err != nil {
  887. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  888. return
  889. }
  890. resp, md, err := local_request_MemoService_ListMemoResources_0(annotatedContext, inboundMarshaler, server, req, pathParams)
  891. md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  892. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  893. if err != nil {
  894. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  895. return
  896. }
  897. forward_MemoService_ListMemoResources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  898. })
  899. mux.Handle(http.MethodPatch, pattern_MemoService_SetMemoRelations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  900. ctx, cancel := context.WithCancel(req.Context())
  901. defer cancel()
  902. var stream runtime.ServerTransportStream
  903. ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  904. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  905. annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/memos.api.v1.MemoService/SetMemoRelations", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}/relations"))
  906. if err != nil {
  907. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  908. return
  909. }
  910. resp, md, err := local_request_MemoService_SetMemoRelations_0(annotatedContext, inboundMarshaler, server, req, pathParams)
  911. md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  912. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  913. if err != nil {
  914. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  915. return
  916. }
  917. forward_MemoService_SetMemoRelations_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  918. })
  919. mux.Handle(http.MethodGet, pattern_MemoService_ListMemoRelations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  920. ctx, cancel := context.WithCancel(req.Context())
  921. defer cancel()
  922. var stream runtime.ServerTransportStream
  923. ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  924. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  925. annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/memos.api.v1.MemoService/ListMemoRelations", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}/relations"))
  926. if err != nil {
  927. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  928. return
  929. }
  930. resp, md, err := local_request_MemoService_ListMemoRelations_0(annotatedContext, inboundMarshaler, server, req, pathParams)
  931. md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  932. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  933. if err != nil {
  934. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  935. return
  936. }
  937. forward_MemoService_ListMemoRelations_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  938. })
  939. mux.Handle(http.MethodPost, pattern_MemoService_CreateMemoComment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  940. ctx, cancel := context.WithCancel(req.Context())
  941. defer cancel()
  942. var stream runtime.ServerTransportStream
  943. ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  944. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  945. annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/memos.api.v1.MemoService/CreateMemoComment", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}/comments"))
  946. if err != nil {
  947. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  948. return
  949. }
  950. resp, md, err := local_request_MemoService_CreateMemoComment_0(annotatedContext, inboundMarshaler, server, req, pathParams)
  951. md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  952. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  953. if err != nil {
  954. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  955. return
  956. }
  957. forward_MemoService_CreateMemoComment_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  958. })
  959. mux.Handle(http.MethodGet, pattern_MemoService_ListMemoComments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  960. ctx, cancel := context.WithCancel(req.Context())
  961. defer cancel()
  962. var stream runtime.ServerTransportStream
  963. ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  964. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  965. annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/memos.api.v1.MemoService/ListMemoComments", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}/comments"))
  966. if err != nil {
  967. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  968. return
  969. }
  970. resp, md, err := local_request_MemoService_ListMemoComments_0(annotatedContext, inboundMarshaler, server, req, pathParams)
  971. md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  972. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  973. if err != nil {
  974. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  975. return
  976. }
  977. forward_MemoService_ListMemoComments_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  978. })
  979. mux.Handle(http.MethodGet, pattern_MemoService_ListMemoReactions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  980. ctx, cancel := context.WithCancel(req.Context())
  981. defer cancel()
  982. var stream runtime.ServerTransportStream
  983. ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  984. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  985. annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/memos.api.v1.MemoService/ListMemoReactions", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}/reactions"))
  986. if err != nil {
  987. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  988. return
  989. }
  990. resp, md, err := local_request_MemoService_ListMemoReactions_0(annotatedContext, inboundMarshaler, server, req, pathParams)
  991. md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  992. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  993. if err != nil {
  994. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  995. return
  996. }
  997. forward_MemoService_ListMemoReactions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  998. })
  999. mux.Handle(http.MethodPost, pattern_MemoService_UpsertMemoReaction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1000. ctx, cancel := context.WithCancel(req.Context())
  1001. defer cancel()
  1002. var stream runtime.ServerTransportStream
  1003. ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  1004. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1005. annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/memos.api.v1.MemoService/UpsertMemoReaction", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}/reactions"))
  1006. if err != nil {
  1007. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1008. return
  1009. }
  1010. resp, md, err := local_request_MemoService_UpsertMemoReaction_0(annotatedContext, inboundMarshaler, server, req, pathParams)
  1011. md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  1012. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1013. if err != nil {
  1014. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1015. return
  1016. }
  1017. forward_MemoService_UpsertMemoReaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1018. })
  1019. mux.Handle(http.MethodDelete, pattern_MemoService_DeleteMemoReaction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1020. ctx, cancel := context.WithCancel(req.Context())
  1021. defer cancel()
  1022. var stream runtime.ServerTransportStream
  1023. ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
  1024. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1025. annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/memos.api.v1.MemoService/DeleteMemoReaction", runtime.WithHTTPPathPattern("/api/v1/reactions/{id}"))
  1026. if err != nil {
  1027. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1028. return
  1029. }
  1030. resp, md, err := local_request_MemoService_DeleteMemoReaction_0(annotatedContext, inboundMarshaler, server, req, pathParams)
  1031. md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
  1032. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1033. if err != nil {
  1034. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1035. return
  1036. }
  1037. forward_MemoService_DeleteMemoReaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1038. })
  1039. return nil
  1040. }
  1041. // RegisterMemoServiceHandlerFromEndpoint is same as RegisterMemoServiceHandler but
  1042. // automatically dials to "endpoint" and closes the connection when "ctx" gets done.
  1043. func RegisterMemoServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
  1044. conn, err := grpc.NewClient(endpoint, opts...)
  1045. if err != nil {
  1046. return err
  1047. }
  1048. defer func() {
  1049. if err != nil {
  1050. if cerr := conn.Close(); cerr != nil {
  1051. grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)
  1052. }
  1053. return
  1054. }
  1055. go func() {
  1056. <-ctx.Done()
  1057. if cerr := conn.Close(); cerr != nil {
  1058. grpclog.Errorf("Failed to close conn to %s: %v", endpoint, cerr)
  1059. }
  1060. }()
  1061. }()
  1062. return RegisterMemoServiceHandler(ctx, mux, conn)
  1063. }
  1064. // RegisterMemoServiceHandler registers the http handlers for service MemoService to "mux".
  1065. // The handlers forward requests to the grpc endpoint over "conn".
  1066. func RegisterMemoServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
  1067. return RegisterMemoServiceHandlerClient(ctx, mux, NewMemoServiceClient(conn))
  1068. }
  1069. // RegisterMemoServiceHandlerClient registers the http handlers for service MemoService
  1070. // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MemoServiceClient".
  1071. // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MemoServiceClient"
  1072. // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
  1073. // "MemoServiceClient" to call the correct interceptors. This client ignores the HTTP middlewares.
  1074. func RegisterMemoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MemoServiceClient) error {
  1075. mux.Handle(http.MethodPost, pattern_MemoService_CreateMemo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1076. ctx, cancel := context.WithCancel(req.Context())
  1077. defer cancel()
  1078. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1079. annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/memos.api.v1.MemoService/CreateMemo", runtime.WithHTTPPathPattern("/api/v1/memos"))
  1080. if err != nil {
  1081. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1082. return
  1083. }
  1084. resp, md, err := request_MemoService_CreateMemo_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1085. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1086. if err != nil {
  1087. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1088. return
  1089. }
  1090. forward_MemoService_CreateMemo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1091. })
  1092. mux.Handle(http.MethodGet, pattern_MemoService_ListMemos_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1093. ctx, cancel := context.WithCancel(req.Context())
  1094. defer cancel()
  1095. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1096. annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/memos.api.v1.MemoService/ListMemos", runtime.WithHTTPPathPattern("/api/v1/memos"))
  1097. if err != nil {
  1098. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1099. return
  1100. }
  1101. resp, md, err := request_MemoService_ListMemos_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1102. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1103. if err != nil {
  1104. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1105. return
  1106. }
  1107. forward_MemoService_ListMemos_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1108. })
  1109. mux.Handle(http.MethodGet, pattern_MemoService_GetMemo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1110. ctx, cancel := context.WithCancel(req.Context())
  1111. defer cancel()
  1112. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1113. annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/memos.api.v1.MemoService/GetMemo", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}"))
  1114. if err != nil {
  1115. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1116. return
  1117. }
  1118. resp, md, err := request_MemoService_GetMemo_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1119. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1120. if err != nil {
  1121. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1122. return
  1123. }
  1124. forward_MemoService_GetMemo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1125. })
  1126. mux.Handle(http.MethodGet, pattern_MemoService_GetMemoByUid_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1127. ctx, cancel := context.WithCancel(req.Context())
  1128. defer cancel()
  1129. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1130. annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/memos.api.v1.MemoService/GetMemoByUid", runtime.WithHTTPPathPattern("/api/v1/memos:by-uid/{uid}"))
  1131. if err != nil {
  1132. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1133. return
  1134. }
  1135. resp, md, err := request_MemoService_GetMemoByUid_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1136. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1137. if err != nil {
  1138. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1139. return
  1140. }
  1141. forward_MemoService_GetMemoByUid_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1142. })
  1143. mux.Handle(http.MethodPatch, pattern_MemoService_UpdateMemo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1144. ctx, cancel := context.WithCancel(req.Context())
  1145. defer cancel()
  1146. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1147. annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/memos.api.v1.MemoService/UpdateMemo", runtime.WithHTTPPathPattern("/api/v1/{memo.name=memos/*}"))
  1148. if err != nil {
  1149. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1150. return
  1151. }
  1152. resp, md, err := request_MemoService_UpdateMemo_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1153. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1154. if err != nil {
  1155. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1156. return
  1157. }
  1158. forward_MemoService_UpdateMemo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1159. })
  1160. mux.Handle(http.MethodDelete, pattern_MemoService_DeleteMemo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1161. ctx, cancel := context.WithCancel(req.Context())
  1162. defer cancel()
  1163. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1164. annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/memos.api.v1.MemoService/DeleteMemo", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}"))
  1165. if err != nil {
  1166. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1167. return
  1168. }
  1169. resp, md, err := request_MemoService_DeleteMemo_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1170. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1171. if err != nil {
  1172. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1173. return
  1174. }
  1175. forward_MemoService_DeleteMemo_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1176. })
  1177. mux.Handle(http.MethodPatch, pattern_MemoService_RenameMemoTag_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1178. ctx, cancel := context.WithCancel(req.Context())
  1179. defer cancel()
  1180. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1181. annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/memos.api.v1.MemoService/RenameMemoTag", runtime.WithHTTPPathPattern("/api/v1/{parent=memos/*}/tags:rename"))
  1182. if err != nil {
  1183. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1184. return
  1185. }
  1186. resp, md, err := request_MemoService_RenameMemoTag_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1187. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1188. if err != nil {
  1189. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1190. return
  1191. }
  1192. forward_MemoService_RenameMemoTag_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1193. })
  1194. mux.Handle(http.MethodDelete, pattern_MemoService_DeleteMemoTag_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1195. ctx, cancel := context.WithCancel(req.Context())
  1196. defer cancel()
  1197. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1198. annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/memos.api.v1.MemoService/DeleteMemoTag", runtime.WithHTTPPathPattern("/api/v1/{parent=memos/*}/tags/{tag}"))
  1199. if err != nil {
  1200. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1201. return
  1202. }
  1203. resp, md, err := request_MemoService_DeleteMemoTag_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1204. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1205. if err != nil {
  1206. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1207. return
  1208. }
  1209. forward_MemoService_DeleteMemoTag_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1210. })
  1211. mux.Handle(http.MethodPatch, pattern_MemoService_SetMemoResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1212. ctx, cancel := context.WithCancel(req.Context())
  1213. defer cancel()
  1214. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1215. annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/memos.api.v1.MemoService/SetMemoResources", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}/resources"))
  1216. if err != nil {
  1217. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1218. return
  1219. }
  1220. resp, md, err := request_MemoService_SetMemoResources_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1221. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1222. if err != nil {
  1223. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1224. return
  1225. }
  1226. forward_MemoService_SetMemoResources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1227. })
  1228. mux.Handle(http.MethodGet, pattern_MemoService_ListMemoResources_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1229. ctx, cancel := context.WithCancel(req.Context())
  1230. defer cancel()
  1231. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1232. annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/memos.api.v1.MemoService/ListMemoResources", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}/resources"))
  1233. if err != nil {
  1234. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1235. return
  1236. }
  1237. resp, md, err := request_MemoService_ListMemoResources_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1238. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1239. if err != nil {
  1240. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1241. return
  1242. }
  1243. forward_MemoService_ListMemoResources_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1244. })
  1245. mux.Handle(http.MethodPatch, pattern_MemoService_SetMemoRelations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1246. ctx, cancel := context.WithCancel(req.Context())
  1247. defer cancel()
  1248. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1249. annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/memos.api.v1.MemoService/SetMemoRelations", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}/relations"))
  1250. if err != nil {
  1251. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1252. return
  1253. }
  1254. resp, md, err := request_MemoService_SetMemoRelations_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1255. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1256. if err != nil {
  1257. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1258. return
  1259. }
  1260. forward_MemoService_SetMemoRelations_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1261. })
  1262. mux.Handle(http.MethodGet, pattern_MemoService_ListMemoRelations_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1263. ctx, cancel := context.WithCancel(req.Context())
  1264. defer cancel()
  1265. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1266. annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/memos.api.v1.MemoService/ListMemoRelations", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}/relations"))
  1267. if err != nil {
  1268. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1269. return
  1270. }
  1271. resp, md, err := request_MemoService_ListMemoRelations_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1272. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1273. if err != nil {
  1274. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1275. return
  1276. }
  1277. forward_MemoService_ListMemoRelations_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1278. })
  1279. mux.Handle(http.MethodPost, pattern_MemoService_CreateMemoComment_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1280. ctx, cancel := context.WithCancel(req.Context())
  1281. defer cancel()
  1282. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1283. annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/memos.api.v1.MemoService/CreateMemoComment", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}/comments"))
  1284. if err != nil {
  1285. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1286. return
  1287. }
  1288. resp, md, err := request_MemoService_CreateMemoComment_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1289. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1290. if err != nil {
  1291. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1292. return
  1293. }
  1294. forward_MemoService_CreateMemoComment_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1295. })
  1296. mux.Handle(http.MethodGet, pattern_MemoService_ListMemoComments_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1297. ctx, cancel := context.WithCancel(req.Context())
  1298. defer cancel()
  1299. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1300. annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/memos.api.v1.MemoService/ListMemoComments", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}/comments"))
  1301. if err != nil {
  1302. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1303. return
  1304. }
  1305. resp, md, err := request_MemoService_ListMemoComments_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1306. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1307. if err != nil {
  1308. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1309. return
  1310. }
  1311. forward_MemoService_ListMemoComments_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1312. })
  1313. mux.Handle(http.MethodGet, pattern_MemoService_ListMemoReactions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1314. ctx, cancel := context.WithCancel(req.Context())
  1315. defer cancel()
  1316. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1317. annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/memos.api.v1.MemoService/ListMemoReactions", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}/reactions"))
  1318. if err != nil {
  1319. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1320. return
  1321. }
  1322. resp, md, err := request_MemoService_ListMemoReactions_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1323. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1324. if err != nil {
  1325. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1326. return
  1327. }
  1328. forward_MemoService_ListMemoReactions_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1329. })
  1330. mux.Handle(http.MethodPost, pattern_MemoService_UpsertMemoReaction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1331. ctx, cancel := context.WithCancel(req.Context())
  1332. defer cancel()
  1333. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1334. annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/memos.api.v1.MemoService/UpsertMemoReaction", runtime.WithHTTPPathPattern("/api/v1/{name=memos/*}/reactions"))
  1335. if err != nil {
  1336. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1337. return
  1338. }
  1339. resp, md, err := request_MemoService_UpsertMemoReaction_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1340. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1341. if err != nil {
  1342. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1343. return
  1344. }
  1345. forward_MemoService_UpsertMemoReaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1346. })
  1347. mux.Handle(http.MethodDelete, pattern_MemoService_DeleteMemoReaction_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1348. ctx, cancel := context.WithCancel(req.Context())
  1349. defer cancel()
  1350. inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1351. annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/memos.api.v1.MemoService/DeleteMemoReaction", runtime.WithHTTPPathPattern("/api/v1/reactions/{id}"))
  1352. if err != nil {
  1353. runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1354. return
  1355. }
  1356. resp, md, err := request_MemoService_DeleteMemoReaction_0(annotatedContext, inboundMarshaler, client, req, pathParams)
  1357. annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
  1358. if err != nil {
  1359. runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
  1360. return
  1361. }
  1362. forward_MemoService_DeleteMemoReaction_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1363. })
  1364. return nil
  1365. }
  1366. var (
  1367. pattern_MemoService_CreateMemo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "memos"}, ""))
  1368. pattern_MemoService_ListMemos_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "memos"}, ""))
  1369. pattern_MemoService_GetMemo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 2, 5, 3}, []string{"api", "v1", "memos", "name"}, ""))
  1370. pattern_MemoService_GetMemoByUid_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "memos:by-uid", "uid"}, ""))
  1371. pattern_MemoService_UpdateMemo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 2, 5, 3}, []string{"api", "v1", "memos", "memo.name"}, ""))
  1372. pattern_MemoService_DeleteMemo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 2, 5, 3}, []string{"api", "v1", "memos", "name"}, ""))
  1373. pattern_MemoService_RenameMemoTag_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 2, 5, 3, 2, 4}, []string{"api", "v1", "memos", "parent", "tags"}, "rename"))
  1374. pattern_MemoService_DeleteMemoTag_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 2, 5, 3, 2, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "memos", "parent", "tags", "tag"}, ""))
  1375. pattern_MemoService_SetMemoResources_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 2, 5, 3, 2, 4}, []string{"api", "v1", "memos", "name", "resources"}, ""))
  1376. pattern_MemoService_ListMemoResources_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 2, 5, 3, 2, 4}, []string{"api", "v1", "memos", "name", "resources"}, ""))
  1377. pattern_MemoService_SetMemoRelations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 2, 5, 3, 2, 4}, []string{"api", "v1", "memos", "name", "relations"}, ""))
  1378. pattern_MemoService_ListMemoRelations_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 2, 5, 3, 2, 4}, []string{"api", "v1", "memos", "name", "relations"}, ""))
  1379. pattern_MemoService_CreateMemoComment_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 2, 5, 3, 2, 4}, []string{"api", "v1", "memos", "name", "comments"}, ""))
  1380. pattern_MemoService_ListMemoComments_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 2, 5, 3, 2, 4}, []string{"api", "v1", "memos", "name", "comments"}, ""))
  1381. pattern_MemoService_ListMemoReactions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 2, 5, 3, 2, 4}, []string{"api", "v1", "memos", "name", "reactions"}, ""))
  1382. pattern_MemoService_UpsertMemoReaction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 2, 5, 3, 2, 4}, []string{"api", "v1", "memos", "name", "reactions"}, ""))
  1383. pattern_MemoService_DeleteMemoReaction_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "reactions", "id"}, ""))
  1384. )
  1385. var (
  1386. forward_MemoService_CreateMemo_0 = runtime.ForwardResponseMessage
  1387. forward_MemoService_ListMemos_0 = runtime.ForwardResponseMessage
  1388. forward_MemoService_GetMemo_0 = runtime.ForwardResponseMessage
  1389. forward_MemoService_GetMemoByUid_0 = runtime.ForwardResponseMessage
  1390. forward_MemoService_UpdateMemo_0 = runtime.ForwardResponseMessage
  1391. forward_MemoService_DeleteMemo_0 = runtime.ForwardResponseMessage
  1392. forward_MemoService_RenameMemoTag_0 = runtime.ForwardResponseMessage
  1393. forward_MemoService_DeleteMemoTag_0 = runtime.ForwardResponseMessage
  1394. forward_MemoService_SetMemoResources_0 = runtime.ForwardResponseMessage
  1395. forward_MemoService_ListMemoResources_0 = runtime.ForwardResponseMessage
  1396. forward_MemoService_SetMemoRelations_0 = runtime.ForwardResponseMessage
  1397. forward_MemoService_ListMemoRelations_0 = runtime.ForwardResponseMessage
  1398. forward_MemoService_CreateMemoComment_0 = runtime.ForwardResponseMessage
  1399. forward_MemoService_ListMemoComments_0 = runtime.ForwardResponseMessage
  1400. forward_MemoService_ListMemoReactions_0 = runtime.ForwardResponseMessage
  1401. forward_MemoService_UpsertMemoReaction_0 = runtime.ForwardResponseMessage
  1402. forward_MemoService_DeleteMemoReaction_0 = runtime.ForwardResponseMessage
  1403. )