Merge branch 'master' into search
This commit is contained in:
commit
f9474917af
13
src/api/area.js
Normal file
13
src/api/area.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import { localAxios } from "@/utils/http-commons";
|
||||||
|
|
||||||
|
const local = localAxios;
|
||||||
|
|
||||||
|
function getSido(success, fail) {
|
||||||
|
local.get(`/area/sido`).then(success).catch(fail);
|
||||||
|
}
|
||||||
|
|
||||||
|
function getGugun(sidoCode, success, fail) {
|
||||||
|
local.get(`/area/sido?sidoCode=${sidoCode}`).then(success).catch(fail);
|
||||||
|
}
|
||||||
|
|
||||||
|
export { getSido, getGugun };
|
15
src/api/attraction.js
Normal file
15
src/api/attraction.js
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { localAxios } from "@/utils/http-commons";
|
||||||
|
|
||||||
|
const local = localAxios;
|
||||||
|
|
||||||
|
function getArticles(contentTypeId, sidoCode, gugunCode, title, success, fail) {
|
||||||
|
//list
|
||||||
|
local
|
||||||
|
.get(
|
||||||
|
`/attraction/search?contentTypeId=${contentTypeId}&sidoCode=${sidoCode}&gugunCode=${gugunCode}&title=${title}`
|
||||||
|
)
|
||||||
|
.then(success)
|
||||||
|
.catch(fail);
|
||||||
|
}
|
||||||
|
|
||||||
|
export { getArticles };
|
Loading…
Reference in New Issue
Block a user