.patentinfo.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. "create_number",
  5. "create_date",
  6. "success_number",
  7. "success_date",
  8. "inventor",
  9. "agent",
  10. "agent_personal",
  11. "abstract",
  12. "address",
  13. "name",
  14. "apply_personal",
  15. "term",
  16. "type",
  17. "img_url",
  18. "nationality",
  19. "ipc_type",
  20. "onlegal_status",
  21. "legal_status",
  22. "law_date",
  23. "on_obligee",
  24. "apply_address",
  25. "apply_other",
  26. "law_num",
  27. "first_opendate",
  28. "empower_date",
  29. "lose_date",
  30. "examine_date",
  31. "invention_design",
  32. "incopat_link",
  33. "first_ask",
  34. "first_apply",
  35. "apply_city",
  36. "business_code",
  37. "business_address",
  38. "first_inventor",
  39. "shared_value",
  40. "techol_stable",
  41. "techol_advanced",
  42. "pct_apply",
  43. "pct_publish",
  44. "status",
  45. "trans_status",
  46. "user_id",
  47. ],
  48. },
  49. destroy: {
  50. params: ["!id"],
  51. service: "delete",
  52. },
  53. update: {
  54. params: ["!id"],
  55. requestBody: [
  56. "create_number",
  57. "create_date",
  58. "success_number",
  59. "success_date",
  60. "inventor",
  61. "agent",
  62. "agent_personal",
  63. "abstract",
  64. "address",
  65. "name",
  66. "apply_personal",
  67. "term",
  68. "type",
  69. "img_url",
  70. "nationality",
  71. "ipc_type",
  72. "onlegal_status",
  73. "legal_status",
  74. "law_date",
  75. "on_obligee",
  76. "apply_address",
  77. "apply_other",
  78. "law_num",
  79. "first_opendate",
  80. "empower_date",
  81. "lose_date",
  82. "examine_date",
  83. "invention_design",
  84. "incopat_link",
  85. "first_ask",
  86. "first_apply",
  87. "apply_city",
  88. "business_code",
  89. "business_address",
  90. "first_inventor",
  91. "shared_value",
  92. "techol_stable",
  93. "techol_advanced",
  94. "pct_apply",
  95. "pct_publish",
  96. "status",
  97. "trans_status",
  98. "user_id",
  99. ],
  100. },
  101. show: {
  102. parameters: {
  103. params: ["!id"],
  104. },
  105. service: "fetch",
  106. },
  107. index: {
  108. parameters: {
  109. query: {
  110. create_number: "create_number",
  111. create_date: "create_date",
  112. success_number: "success_number",
  113. success_date: "success_date",
  114. inventor: "%inventor%",
  115. agent: "%agent%",
  116. agent_personal: "%agent_personal%",
  117. abstract: "%abstract%",
  118. address: "%address%",
  119. name: "%name%",
  120. apply_personal: "%apply_personal%",
  121. term: "term",
  122. type: "type",
  123. nationality: "%nationality%",
  124. ipc_type: "%ipc_type%",
  125. onlegal_status: "%onlegal_status%",
  126. legal_status: "%legal_status%",
  127. law_date: "law_date",
  128. on_obligee: "%on_obligee%",
  129. apply_address: "%apply_address%",
  130. apply_other: "%apply_other%",
  131. law_num: "%law_num%",
  132. first_opendate: "first_opendate",
  133. empower_date: "empower_date",
  134. lose_date: "lose_date",
  135. examine_date: "examine_date",
  136. invention_design: "%invention_design%",
  137. incopat_link: "%incopat_link%",
  138. first_ask: "%first_ask%",
  139. first_apply: "%first_apply%",
  140. apply_city: "%apply_city%",
  141. business_code: "%business_code%",
  142. business_address: "%business_address%",
  143. first_inventor: "%first_inventor%",
  144. shared_value: "%shared_value%",
  145. techol_stable: "%techol_stable%",
  146. techol_advanced: "%techol_advanced%",
  147. pct_apply: "%pct_apply%",
  148. pct_publish: "%pct_publish%",
  149. status: "status",
  150. trans_status: "trans_status",
  151. "create_date@start": "create_date@start",
  152. "create_date@end": "create_date@end",
  153. "success_date@start": "success_date@start",
  154. "success_date@end": "success_date@end",
  155. "empower_date@start": "empower_date@start",
  156. "empower_date@end": "empower_date@end",
  157. key_word: "key_word",
  158. single_inventor: "single_inventor",
  159. code: "code",
  160. user_id: "user_id",
  161. },
  162. },
  163. service: "query",
  164. options: {
  165. query: ["skip", "limit"],
  166. sort: ["create_date"],
  167. desc: true,
  168. count: true,
  169. projection: {
  170. create_number: 1,
  171. create_date: 1,
  172. success_number: 1,
  173. success_date: 1,
  174. name: 1,
  175. term: 1,
  176. type: 1,
  177. onlegal_status: 1,
  178. status: 1,
  179. trans_status: 1,
  180. },
  181. },
  182. },
  183. toImport: {
  184. requestBody: ["uri", "code"],
  185. service: "toImport",
  186. },
  187. toExport: {
  188. requestBody: ["user", "query"],
  189. service: "toExport",
  190. },
  191. updateUser: {
  192. requestBody: ["patentData", "user_id"],
  193. },
  194. };