Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
butter-studio
Commits
6493078a
Commit
6493078a
authored
Jul 26, 2021
by
Kim, Subin
Browse files
cinemaApi - 영화관람표 관련 내용 추가
parent
619844f9
Changes
1
Show whitespace changes
Inline
Side-by-side
client/src/apis/cinema.api.js
View file @
6493078a
import
axios
from
"
axios
"
;
import
{
baseUrl
}
from
"
../utils/baseUrl.js
"
;
import
{
baseUrl
}
from
"
../utils/baseUrl.js
"
;
const
getInfo
=
async
()
=>
{
const
{
data
}
=
await
axios
.
get
(
`
${
baseUrl
}
/api/cinema`
)
const
get
Cinema
Info
=
async
()
=>
{
const
{
data
}
=
await
axios
.
get
(
`
${
baseUrl
}
/api/
info/
cinema`
)
return
data
}
const
edit
=
async
(
cinemaInfo
)
=>
{
const
{
data
}
=
await
axios
.
put
(
`
${
baseUrl
}
/api/cinema`
,
cinemaInfo
)
const
editCinema
=
async
(
cinemaInfo
)
=>
{
const
{
data
}
=
await
axios
.
put
(
`
${
baseUrl
}
/api/info/cinema`
,
cinemaInfo
)
return
data
}
const
getTicketFee
=
async
()
=>
{
const
{
data
}
=
await
axios
.
get
(
`
${
baseUrl
}
/api/info/ticketfee`
)
return
data
}
const
getTicketFeeOne
=
async
(
theaterType
)
=>
{
const
{
data
}
=
await
axios
.
get
(
`
${
baseUrl
}
/api/info/ticketfee/
${
theaterType
}
`
)
return
data
}
const
editTicketFee
=
async
(
ticketFeeInfo
)
=>
{
const
{
data
}
=
await
axios
.
put
(
`
${
baseUrl
}
/api/info/ticketfee`
,
ticketFeeInfo
)
return
data
}
const
removeTicketFee
=
async
(
theaterType
)
=>
{
const
{
data
}
=
await
axios
.
delete
(
`
${
baseUrl
}
/api/info/ticketfee?theaterType=
${
theaterType
}
`
)
return
data
}
const
cinemaApi
=
{
getInfo
,
edit
getCinemaInfo
,
editCinema
,
getTicketFee
,
getTicketFeeOne
,
editTicketFee
,
removeTicketFee
}
export
default
cinemaApi
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment