From 7e98cb2d77de33db9e5190d8066bc788901f43c3 Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期一, 08 十一月 2021 15:37:07 +0800 Subject: [PATCH] [update] #todo 129741,將API規格開給前端 --- pamapi/src/doc/顧問API/推薦的顧問清單.txt | 19 ++++++ pamapi/src/doc/顧問API/客戶的顧問清單.txt | 19 ++++++ pamapi/src/doc/顧問API/顧問細節.txt | 28 +++++++++ pamapi/src/doc/登入API/客戶登入API (For OTP前測試用).txt | 16 +++++ pamapi/src/doc/顧問API/將顧問加入客戶的清單.txt | 8 ++ pamapi/src/doc/顧問API/快速篩選.txt | 42 ++++++++++++++ pamapi/src/doc/sql/20211108_w.sql | 12 ++++ 7 files changed, 144 insertions(+), 0 deletions(-) diff --git a/pamapi/src/doc/sql/20211108_w.sql b/pamapi/src/doc/sql/20211108_w.sql new file mode 100644 index 0000000..315eef3 --- /dev/null +++ b/pamapi/src/doc/sql/20211108_w.sql @@ -0,0 +1,12 @@ +CREATE TABLE public.custom_favorite_consultant ( + id serial4 NOT NULL, + consultant_id int8 NOT NULL, + custom_id int8 NOT NULL, + created_date timestamp NULL, + created_by varchar NULL, + last_modified_date timestamp NULL, + last_modified_by varchar NULL, + contact_status varchar NULL, + CONSTRAINT custom_consultant_list_pk PRIMARY KEY (id), + CONSTRAINT custom_consultant_list_fk FOREIGN KEY (consultant_id) REFERENCES public.consultant(id) +); diff --git "a/pamapi/src/doc/\347\231\273\345\205\245API/\345\256\242\346\210\266\347\231\273\345\205\245API \050For OTP\345\211\215\346\270\254\350\251\246\347\224\250\051.txt" "b/pamapi/src/doc/\347\231\273\345\205\245API/\345\256\242\346\210\266\347\231\273\345\205\245API \050For OTP\345\211\215\346\270\254\350\251\246\347\224\250\051.txt" new file mode 100644 index 0000000..e717aeb --- /dev/null +++ "b/pamapi/src/doc/\347\231\273\345\205\245API/\345\256\242\346\210\266\347\231\273\345\205\245API \050For OTP\345\211\215\346\270\254\350\251\246\347\224\250\051.txt" @@ -0,0 +1,16 @@ +甇乙PI����� OTP隤����� ���蝙�嚗OTP��摰敺府閬������� +http post: http://localhost:8080/api/authenticate + +request body: +{ + "username": "user", + "password": "user" +} + +response body: +{ + "id_token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ1c2VyIiwiYXV0aCI6IlJPTEVfVVNFUiIsImV4cCI6MTYzNjQyNTk5Mn0.RinPRcsVABRg0OzJ9scRPmkl89o7N9Rx6os838GIeWbm6AmZmhsMzJ2nO8Uqa1iXX-bXRm5O0XvyFXeEzOEfqA" +} + +���皜祈岫撣唾���ser�est +撣喳���璅� diff --git "a/pamapi/src/doc/\351\241\247\345\225\217API/\345\256\242\346\210\266\347\232\204\351\241\247\345\225\217\346\270\205\345\226\256.txt" "b/pamapi/src/doc/\351\241\247\345\225\217API/\345\256\242\346\210\266\347\232\204\351\241\247\345\225\217\346\270\205\345\226\256.txt" new file mode 100644 index 0000000..3824325 --- /dev/null +++ "b/pamapi/src/doc/\351\241\247\345\225\217API/\345\256\242\346\210\266\347\232\204\351\241\247\345\225\217\346\270\205\345\226\256.txt" @@ -0,0 +1,19 @@ +http get: http://localhost:8080/api/consultant/favorite + +response body: +[ + { + "agentNo": "12345", + "name": "皜祈岫��璆剖�", + "img": "", + "expertise": [ + "鞎∪����", + "鞈頧宏" + ], + "avgScore": 4.7, + "contactStatus": "picked", + "updateTime": "2021-11-02T06:46:13.723Z", + "seniority": "4撟�2���", + "new": false + } +] diff --git "a/pamapi/src/doc/\351\241\247\345\225\217API/\345\260\207\351\241\247\345\225\217\345\212\240\345\205\245\345\256\242\346\210\266\347\232\204\346\270\205\345\226\256.txt" "b/pamapi/src/doc/\351\241\247\345\225\217API/\345\260\207\351\241\247\345\225\217\345\212\240\345\205\245\345\256\242\346\210\266\347\232\204\346\270\205\345\226\256.txt" new file mode 100644 index 0000000..eb5a825 --- /dev/null +++ "b/pamapi/src/doc/\351\241\247\345\225\217API/\345\260\207\351\241\247\345\225\217\345\212\240\345\205\245\345\256\242\346\210\266\347\232\204\346\270\205\345\226\256.txt" @@ -0,0 +1,8 @@ +http post: http://localhost:8080/api/consultant/favorite + +request body: +{ + "agentNoList": ["12345"] +} + +response body: �嚗�ttp status 202 diff --git "a/pamapi/src/doc/\351\241\247\345\225\217API/\345\277\253\351\200\237\347\257\251\351\201\270.txt" "b/pamapi/src/doc/\351\241\247\345\225\217API/\345\277\253\351\200\237\347\257\251\351\201\270.txt" new file mode 100644 index 0000000..82148a2 --- /dev/null +++ "b/pamapi/src/doc/\351\241\247\345\225\217API/\345\277\253\351\200\237\347\257\251\351\201\270.txt" @@ -0,0 +1,42 @@ +http get: http://localhost:8080/api/consultant/fastQuery + +request body: +{ + "gender": "female", + "communicationStyle": "", + "avgScore": 4, + "status": "online" +} + +response body: +[ + { + "agentNo": "12345", + "name": "皜祈岫��璆剖�", + "img": "", + "expertise": [ + "鞎∪����", + "鞈頧宏" + ], + "avgScore": 4.7, + "contactStatus": null, + "updateTime": null, + "seniority": "4撟�2���", + "new": false + }, + { + "agentNo": "12346", + "name": "皜祈岫璆剖�", + "img": "", + "expertise": [ + "鞈頧宏", + "蝭�蝔�", + "璅暑��隡�" + ], + "avgScore": 3.8, + "contactStatus": null, + "updateTime": null, + "seniority": "2撟�3���", + "new": false + } +] diff --git "a/pamapi/src/doc/\351\241\247\345\225\217API/\346\216\250\350\226\246\347\232\204\351\241\247\345\225\217\346\270\205\345\226\256.txt" "b/pamapi/src/doc/\351\241\247\345\225\217API/\346\216\250\350\226\246\347\232\204\351\241\247\345\225\217\346\270\205\345\226\256.txt" new file mode 100644 index 0000000..c28811f --- /dev/null +++ "b/pamapi/src/doc/\351\241\247\345\225\217API/\346\216\250\350\226\246\347\232\204\351\241\247\345\225\217\346\270\205\345\226\256.txt" @@ -0,0 +1,19 @@ +http get: http://localhost:8080/api/consultant/recommend + +response body: +[ + { + "agentNo": "12345", + "name": "皜祈岫��璆剖�", + "img": "", + "expertise": [ + "鞎∪����", + "鞈頧宏" + ], + "avgScore": 4.7, + "contactStatus": null, + "updateTime": null, + "seniority": "4撟�2���", + "new": false + } +] diff --git "a/pamapi/src/doc/\351\241\247\345\225\217API/\351\241\247\345\225\217\347\264\260\347\257\200.txt" "b/pamapi/src/doc/\351\241\247\345\225\217API/\351\241\247\345\225\217\347\264\260\347\257\200.txt" new file mode 100644 index 0000000..d9b09c2 --- /dev/null +++ "b/pamapi/src/doc/\351\241\247\345\225\217API/\351\241\247\345\225\217\347\264\260\347\257\200.txt" @@ -0,0 +1,28 @@ +http get: http://localhost:8080/api/consultant/detail?agentNo={agentNo} + +response body: +{ + "name": "皜祈岫��璆剖�", + "agentNo": "12345", + "role": "靽蝬�鈭�", + "image": "", + "avgScore": 4.7, + "title": "撠����", + "phoneNumber": "0912345678", + "serveArea": "������", + "companyAddress": "����縑蝢拙�敹�頝臭�畾�1���", + "latestLoginTime": null, + "seniority": "4撟�2���", + "suitability": 0, + "evaluation": 0, + "expertises": [ + "鞎∪����", + "鞈頧宏" + ], + "concept": "憯賡頝臭���敺���策摰X靽∩遙����������憟賜�瘜��平隞乩�����蝘���鈭箇敹急����縑敹萄����旦�靽∴���末��平��犖�嚗������憿敹鈭箇����瘞貊���ˊ�鈭平��������", + "experiences": [ + "�憭扯瓷��頂", + "蝢��移蝞葦��" + ], + "awards": "��嚗�2020撟港摩璅�之��雿單平�� ����嚗犖頨思�璆剖�霅��馳�隞�霅�犖頨思�隞���犖霅�瓷�靽隞���犖霅" +} -- Gitblit v1.8.0