.patentinfo.js 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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. pid: 'pid',
  162. },
  163. },
  164. service: 'query',
  165. options: {
  166. query: ['skip', 'limit'],
  167. sort: ['create_date'],
  168. desc: true,
  169. count: true,
  170. projection: {
  171. create_number: 1,
  172. create_date: 1,
  173. success_number: 1,
  174. success_date: 1,
  175. name: 1,
  176. term: 1,
  177. type: 1,
  178. onlegal_status: 1,
  179. status: 1,
  180. trans_status: 1,
  181. },
  182. },
  183. },
  184. toImport: {
  185. requestBody: ['uri', 'code'],
  186. service: 'toImport',
  187. },
  188. toExport: {
  189. requestBody: ['user', 'query'],
  190. service: 'toExport',
  191. },
  192. updateUser: {
  193. requestBody: ['patentData', 'user_id'],
  194. },
  195. deleteMany: {
  196. parameters: {
  197. query: {
  198. create_number: 'create_number',
  199. create_date: 'create_date',
  200. success_number: 'success_number',
  201. success_date: 'success_date',
  202. inventor: '%inventor%',
  203. agent: '%agent%',
  204. agent_personal: '%agent_personal%',
  205. abstract: '%abstract%',
  206. address: '%address%',
  207. name: '%name%',
  208. apply_personal: '%apply_personal%',
  209. term: 'term',
  210. type: 'type',
  211. nationality: '%nationality%',
  212. ipc_type: '%ipc_type%',
  213. onlegal_status: '%onlegal_status%',
  214. legal_status: '%legal_status%',
  215. law_date: 'law_date',
  216. on_obligee: '%on_obligee%',
  217. apply_address: '%apply_address%',
  218. apply_other: '%apply_other%',
  219. law_num: '%law_num%',
  220. first_opendate: 'first_opendate',
  221. empower_date: 'empower_date',
  222. lose_date: 'lose_date',
  223. examine_date: 'examine_date',
  224. invention_design: '%invention_design%',
  225. incopat_link: '%incopat_link%',
  226. first_ask: '%first_ask%',
  227. first_apply: '%first_apply%',
  228. apply_city: '%apply_city%',
  229. business_code: '%business_code%',
  230. business_address: '%business_address%',
  231. first_inventor: '%first_inventor%',
  232. shared_value: '%shared_value%',
  233. techol_stable: '%techol_stable%',
  234. techol_advanced: '%techol_advanced%',
  235. pct_apply: '%pct_apply%',
  236. pct_publish: '%pct_publish%',
  237. status: 'status',
  238. trans_status: 'trans_status',
  239. 'create_date@start': 'create_date@start',
  240. 'create_date@end': 'create_date@end',
  241. 'success_date@start': 'success_date@start',
  242. 'success_date@end': 'success_date@end',
  243. 'empower_date@start': 'empower_date@start',
  244. 'empower_date@end': 'empower_date@end',
  245. key_word: 'key_word',
  246. single_inventor: 'single_inventor',
  247. code: 'code',
  248. user_id: 'user_id',
  249. pid: 'pid',
  250. },
  251. },
  252. service: 'deleteMany',
  253. },
  254. };