feat : area.js upload
This commit is contained in:
parent
97be21d84b
commit
9656cec5cb
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 };
|
Loading…
Reference in New Issue
Block a user