|
@@ -1,169 +1,169 @@
|
|
module.exports = {
|
|
module.exports = {
|
|
create: {
|
|
create: {
|
|
requestBody: [
|
|
requestBody: [
|
|
- 'create_number',
|
|
|
|
- 'create_date',
|
|
|
|
- 'success_number',
|
|
|
|
- 'success_date',
|
|
|
|
- 'inventor',
|
|
|
|
- 'agent',
|
|
|
|
- 'agent_personal',
|
|
|
|
- 'abstract',
|
|
|
|
- 'address',
|
|
|
|
- 'name',
|
|
|
|
- 'apply_personal',
|
|
|
|
- 'term',
|
|
|
|
- 'type',
|
|
|
|
- 'img_url',
|
|
|
|
- 'nationality',
|
|
|
|
- 'ipc_type',
|
|
|
|
- 'onlegal_status',
|
|
|
|
- 'legal_status',
|
|
|
|
- 'law_date',
|
|
|
|
- 'on_obligee',
|
|
|
|
- 'apply_address',
|
|
|
|
- 'apply_other',
|
|
|
|
- 'law_num',
|
|
|
|
- 'first_opendate',
|
|
|
|
- 'empower_date',
|
|
|
|
- 'lose_date',
|
|
|
|
- 'examine_date',
|
|
|
|
- 'invention_design',
|
|
|
|
- 'incopat_link',
|
|
|
|
- 'first_ask',
|
|
|
|
- 'first_apply',
|
|
|
|
- 'apply_city',
|
|
|
|
- 'business_code',
|
|
|
|
- 'business_address',
|
|
|
|
- 'first_inventor',
|
|
|
|
- 'shared_value',
|
|
|
|
- 'techol_stable',
|
|
|
|
- 'techol_advanced',
|
|
|
|
- 'pct_apply',
|
|
|
|
- 'pct_publish',
|
|
|
|
- 'status',
|
|
|
|
- 'trans_status',
|
|
|
|
- 'user_id',
|
|
|
|
|
|
+ "create_number",
|
|
|
|
+ "create_date",
|
|
|
|
+ "success_number",
|
|
|
|
+ "success_date",
|
|
|
|
+ "inventor",
|
|
|
|
+ "agent",
|
|
|
|
+ "agent_personal",
|
|
|
|
+ "abstract",
|
|
|
|
+ "address",
|
|
|
|
+ "name",
|
|
|
|
+ "apply_personal",
|
|
|
|
+ "term",
|
|
|
|
+ "type",
|
|
|
|
+ "img_url",
|
|
|
|
+ "nationality",
|
|
|
|
+ "ipc_type",
|
|
|
|
+ "onlegal_status",
|
|
|
|
+ "legal_status",
|
|
|
|
+ "law_date",
|
|
|
|
+ "on_obligee",
|
|
|
|
+ "apply_address",
|
|
|
|
+ "apply_other",
|
|
|
|
+ "law_num",
|
|
|
|
+ "first_opendate",
|
|
|
|
+ "empower_date",
|
|
|
|
+ "lose_date",
|
|
|
|
+ "examine_date",
|
|
|
|
+ "invention_design",
|
|
|
|
+ "incopat_link",
|
|
|
|
+ "first_ask",
|
|
|
|
+ "first_apply",
|
|
|
|
+ "apply_city",
|
|
|
|
+ "business_code",
|
|
|
|
+ "business_address",
|
|
|
|
+ "first_inventor",
|
|
|
|
+ "shared_value",
|
|
|
|
+ "techol_stable",
|
|
|
|
+ "techol_advanced",
|
|
|
|
+ "pct_apply",
|
|
|
|
+ "pct_publish",
|
|
|
|
+ "status",
|
|
|
|
+ "trans_status",
|
|
|
|
+ "user_id",
|
|
],
|
|
],
|
|
},
|
|
},
|
|
destroy: {
|
|
destroy: {
|
|
- params: ['!id'],
|
|
|
|
- service: 'delete',
|
|
|
|
|
|
+ params: ["!id"],
|
|
|
|
+ service: "delete",
|
|
},
|
|
},
|
|
update: {
|
|
update: {
|
|
- params: ['!id'],
|
|
|
|
|
|
+ params: ["!id"],
|
|
requestBody: [
|
|
requestBody: [
|
|
- 'create_number',
|
|
|
|
- 'create_date',
|
|
|
|
- 'success_number',
|
|
|
|
- 'success_date',
|
|
|
|
- 'inventor',
|
|
|
|
- 'agent',
|
|
|
|
- 'agent_personal',
|
|
|
|
- 'abstract',
|
|
|
|
- 'address',
|
|
|
|
- 'name',
|
|
|
|
- 'apply_personal',
|
|
|
|
- 'term',
|
|
|
|
- 'type',
|
|
|
|
- 'img_url',
|
|
|
|
- 'nationality',
|
|
|
|
- 'ipc_type',
|
|
|
|
- 'onlegal_status',
|
|
|
|
- 'legal_status',
|
|
|
|
- 'law_date',
|
|
|
|
- 'on_obligee',
|
|
|
|
- 'apply_address',
|
|
|
|
- 'apply_other',
|
|
|
|
- 'law_num',
|
|
|
|
- 'first_opendate',
|
|
|
|
- 'empower_date',
|
|
|
|
- 'lose_date',
|
|
|
|
- 'examine_date',
|
|
|
|
- 'invention_design',
|
|
|
|
- 'incopat_link',
|
|
|
|
- 'first_ask',
|
|
|
|
- 'first_apply',
|
|
|
|
- 'apply_city',
|
|
|
|
- 'business_code',
|
|
|
|
- 'business_address',
|
|
|
|
- 'first_inventor',
|
|
|
|
- 'shared_value',
|
|
|
|
- 'techol_stable',
|
|
|
|
- 'techol_advanced',
|
|
|
|
- 'pct_apply',
|
|
|
|
- 'pct_publish',
|
|
|
|
- 'status',
|
|
|
|
- 'trans_status',
|
|
|
|
- 'user_id',
|
|
|
|
|
|
+ "create_number",
|
|
|
|
+ "create_date",
|
|
|
|
+ "success_number",
|
|
|
|
+ "success_date",
|
|
|
|
+ "inventor",
|
|
|
|
+ "agent",
|
|
|
|
+ "agent_personal",
|
|
|
|
+ "abstract",
|
|
|
|
+ "address",
|
|
|
|
+ "name",
|
|
|
|
+ "apply_personal",
|
|
|
|
+ "term",
|
|
|
|
+ "type",
|
|
|
|
+ "img_url",
|
|
|
|
+ "nationality",
|
|
|
|
+ "ipc_type",
|
|
|
|
+ "onlegal_status",
|
|
|
|
+ "legal_status",
|
|
|
|
+ "law_date",
|
|
|
|
+ "on_obligee",
|
|
|
|
+ "apply_address",
|
|
|
|
+ "apply_other",
|
|
|
|
+ "law_num",
|
|
|
|
+ "first_opendate",
|
|
|
|
+ "empower_date",
|
|
|
|
+ "lose_date",
|
|
|
|
+ "examine_date",
|
|
|
|
+ "invention_design",
|
|
|
|
+ "incopat_link",
|
|
|
|
+ "first_ask",
|
|
|
|
+ "first_apply",
|
|
|
|
+ "apply_city",
|
|
|
|
+ "business_code",
|
|
|
|
+ "business_address",
|
|
|
|
+ "first_inventor",
|
|
|
|
+ "shared_value",
|
|
|
|
+ "techol_stable",
|
|
|
|
+ "techol_advanced",
|
|
|
|
+ "pct_apply",
|
|
|
|
+ "pct_publish",
|
|
|
|
+ "status",
|
|
|
|
+ "trans_status",
|
|
|
|
+ "user_id",
|
|
],
|
|
],
|
|
},
|
|
},
|
|
show: {
|
|
show: {
|
|
parameters: {
|
|
parameters: {
|
|
- params: ['!id'],
|
|
|
|
|
|
+ params: ["!id"],
|
|
},
|
|
},
|
|
- service: 'fetch',
|
|
|
|
|
|
+ service: "fetch",
|
|
},
|
|
},
|
|
index: {
|
|
index: {
|
|
parameters: {
|
|
parameters: {
|
|
query: {
|
|
query: {
|
|
- create_number: 'create_number',
|
|
|
|
- create_date: 'create_date',
|
|
|
|
- success_number: 'success_number',
|
|
|
|
- success_date: 'success_date',
|
|
|
|
- inventor: '%inventor%',
|
|
|
|
- agent: '%agent%',
|
|
|
|
- agent_personal: '%agent_personal%',
|
|
|
|
- abstract: '%abstract%',
|
|
|
|
- address: '%address%',
|
|
|
|
- name: '%name%',
|
|
|
|
- apply_personal: '%apply_personal%',
|
|
|
|
- term: 'term',
|
|
|
|
- type: 'type',
|
|
|
|
- nationality: '%nationality%',
|
|
|
|
- ipc_type: '%ipc_type%',
|
|
|
|
- onlegal_status: '%onlegal_status%',
|
|
|
|
- legal_status: '%legal_status%',
|
|
|
|
- law_date: 'law_date',
|
|
|
|
- on_obligee: '%on_obligee%',
|
|
|
|
- apply_address: '%apply_address%',
|
|
|
|
- apply_other: '%apply_other%',
|
|
|
|
- law_num: '%law_num%',
|
|
|
|
- first_opendate: 'first_opendate',
|
|
|
|
- empower_date: 'empower_date',
|
|
|
|
- lose_date: 'lose_date',
|
|
|
|
- examine_date: 'examine_date',
|
|
|
|
- invention_design: '%invention_design%',
|
|
|
|
- incopat_link: '%incopat_link%',
|
|
|
|
- first_ask: '%first_ask%',
|
|
|
|
- first_apply: '%first_apply%',
|
|
|
|
- apply_city: '%apply_city%',
|
|
|
|
- business_code: '%business_code%',
|
|
|
|
- business_address: '%business_address%',
|
|
|
|
- first_inventor: '%first_inventor%',
|
|
|
|
- shared_value: '%shared_value%',
|
|
|
|
- techol_stable: '%techol_stable%',
|
|
|
|
- techol_advanced: '%techol_advanced%',
|
|
|
|
- pct_apply: '%pct_apply%',
|
|
|
|
- pct_publish: '%pct_publish%',
|
|
|
|
- status: 'status',
|
|
|
|
- trans_status: 'trans_status',
|
|
|
|
- 'create_date@start': 'create_date@start',
|
|
|
|
- 'create_date@end': 'create_date@end',
|
|
|
|
- 'success_date@start': 'success_date@start',
|
|
|
|
- 'success_date@end': 'success_date@end',
|
|
|
|
- 'empower_date@start': 'empower_date@start',
|
|
|
|
- 'empower_date@end': 'empower_date@end',
|
|
|
|
- key_word: 'key_word',
|
|
|
|
- single_inventor: 'single_inventor',
|
|
|
|
- code: 'code',
|
|
|
|
- user_id: 'user_id',
|
|
|
|
|
|
+ create_number: "create_number",
|
|
|
|
+ create_date: "create_date",
|
|
|
|
+ success_number: "success_number",
|
|
|
|
+ success_date: "success_date",
|
|
|
|
+ inventor: "%inventor%",
|
|
|
|
+ agent: "%agent%",
|
|
|
|
+ agent_personal: "%agent_personal%",
|
|
|
|
+ abstract: "%abstract%",
|
|
|
|
+ address: "%address%",
|
|
|
|
+ name: "%name%",
|
|
|
|
+ apply_personal: "%apply_personal%",
|
|
|
|
+ term: "term",
|
|
|
|
+ type: "type",
|
|
|
|
+ nationality: "%nationality%",
|
|
|
|
+ ipc_type: "%ipc_type%",
|
|
|
|
+ onlegal_status: "%onlegal_status%",
|
|
|
|
+ legal_status: "%legal_status%",
|
|
|
|
+ law_date: "law_date",
|
|
|
|
+ on_obligee: "%on_obligee%",
|
|
|
|
+ apply_address: "%apply_address%",
|
|
|
|
+ apply_other: "%apply_other%",
|
|
|
|
+ law_num: "%law_num%",
|
|
|
|
+ first_opendate: "first_opendate",
|
|
|
|
+ empower_date: "empower_date",
|
|
|
|
+ lose_date: "lose_date",
|
|
|
|
+ examine_date: "examine_date",
|
|
|
|
+ invention_design: "%invention_design%",
|
|
|
|
+ incopat_link: "%incopat_link%",
|
|
|
|
+ first_ask: "%first_ask%",
|
|
|
|
+ first_apply: "%first_apply%",
|
|
|
|
+ apply_city: "%apply_city%",
|
|
|
|
+ business_code: "%business_code%",
|
|
|
|
+ business_address: "%business_address%",
|
|
|
|
+ first_inventor: "%first_inventor%",
|
|
|
|
+ shared_value: "%shared_value%",
|
|
|
|
+ techol_stable: "%techol_stable%",
|
|
|
|
+ techol_advanced: "%techol_advanced%",
|
|
|
|
+ pct_apply: "%pct_apply%",
|
|
|
|
+ pct_publish: "%pct_publish%",
|
|
|
|
+ status: "status",
|
|
|
|
+ trans_status: "trans_status",
|
|
|
|
+ "create_date@start": "create_date@start",
|
|
|
|
+ "create_date@end": "create_date@end",
|
|
|
|
+ "success_date@start": "success_date@start",
|
|
|
|
+ "success_date@end": "success_date@end",
|
|
|
|
+ "empower_date@start": "empower_date@start",
|
|
|
|
+ "empower_date@end": "empower_date@end",
|
|
|
|
+ key_word: "key_word",
|
|
|
|
+ single_inventor: "single_inventor",
|
|
|
|
+ code: "code",
|
|
|
|
+ user_id: "user_id",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
- service: 'query',
|
|
|
|
|
|
+ service: "query",
|
|
options: {
|
|
options: {
|
|
- query: ['skip', 'limit'],
|
|
|
|
- sort: ['create_date'],
|
|
|
|
|
|
+ query: ["skip", "limit"],
|
|
|
|
+ sort: ["create_date"],
|
|
desc: true,
|
|
desc: true,
|
|
count: true,
|
|
count: true,
|
|
projection: {
|
|
projection: {
|
|
@@ -175,18 +175,20 @@ module.exports = {
|
|
term: 1,
|
|
term: 1,
|
|
type: 1,
|
|
type: 1,
|
|
onlegal_status: 1,
|
|
onlegal_status: 1,
|
|
|
|
+ status: 1,
|
|
|
|
+ trans_status: 1,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
toImport: {
|
|
toImport: {
|
|
- requestBody: ['uri', 'code'],
|
|
|
|
- service: 'toImport',
|
|
|
|
|
|
+ requestBody: ["uri", "code"],
|
|
|
|
+ service: "toImport",
|
|
},
|
|
},
|
|
toExport: {
|
|
toExport: {
|
|
- requestBody: ['user', 'query'],
|
|
|
|
- service: 'toExport',
|
|
|
|
|
|
+ requestBody: ["user", "query"],
|
|
|
|
+ service: "toExport",
|
|
},
|
|
},
|
|
updateUser: {
|
|
updateUser: {
|
|
- requestBody: ['patentData', 'user_id'],
|
|
|
|
|
|
+ requestBody: ["patentData", "user_id"],
|
|
},
|
|
},
|
|
};
|
|
};
|