From 0a1e684e449ff17146615f73d40911a66589d70d Mon Sep 17 00:00:00 2001 From: RogerWork Date: Tue, 2 Jan 2024 10:24:32 +0800 Subject: [PATCH] =?UTF-8?q?V1.0=E7=89=88=E6=9C=AC=E5=9F=BA=E6=9C=AC?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/download_film_info.html | 304 ++++++++++++++++++ public/static/get_cinema_info.html | 304 ++++++++++++++++++ public/static/get_overtime_ticket_status.html | 304 ++++++++++++++++++ public/static/get_screen_info.html | 304 ++++++++++++++++++ public/static/report_film_schedule.html | 304 ++++++++++++++++++ public/static/report_ticket.html | 304 ++++++++++++++++++ public/static/upload_screen_seat_info.html | 304 ++++++++++++++++++ public/static/valid_error.html | 304 ++++++++++++++++++ src/apis/mock.js | 24 +- src/components/HelloWorld.vue | 11 +- src/components/mock/api_block.vue | 39 +-- src/layout/components/PageAside.vue | 2 +- src/router/index.js | 5 + src/views/mock/index.vue | 88 ++++- 14 files changed, 2563 insertions(+), 38 deletions(-) create mode 100644 public/static/download_film_info.html create mode 100644 public/static/get_cinema_info.html create mode 100644 public/static/get_overtime_ticket_status.html create mode 100644 public/static/get_screen_info.html create mode 100644 public/static/report_film_schedule.html create mode 100644 public/static/report_ticket.html create mode 100644 public/static/upload_screen_seat_info.html create mode 100644 public/static/valid_error.html diff --git a/public/static/download_film_info.html b/public/static/download_film_info.html new file mode 100644 index 0000000..d623db9 --- /dev/null +++ b/public/static/download_film_info.html @@ -0,0 +1,304 @@ + + + + +1、影片信息下载接口 + + +

1、影片信息下载接口

GET /data/downloadFilmInfo

请求参数

名称位置类型必选中文名说明
cinemaCode8string影院编码none
startPublishDatenonestring上映日期查询开始日期(包含开始日期)none
endPublishDatenonestring上映日期查结束日期(包含结束日期)none
pagenoneinteger分页页码none

返回示例

返回数据结构

状态码 200

名称类型字段名说明
codestringnonenone
statusstringnonenone
dataobjectnonenone
pageableobject分页信息none
totalPagesinteger总页码none
pageinteger当前页码none
sizeinteger每页条数none
filmList[object]nonenone
filmCodestring影片排次号由12位具有特定含义的数字字符组成,一组数字字符的组合所特指的影片,具有唯一性。
filmNamestring影片名称none
aliasNamestring别名none
versionstring发行版本参考‘发行版本’
languagestring影片语别none
durationinteger片长以分钟为单位
publishDatestring上映日期none
producerstring出品单位none
publisherstring发行商none
keyStarttimestring排片开始日期none
keyEndtimestring排片结束日期none
reshowFlagboolean是否复映none

发行版本

0、故事片观摩影片

1、故事片普通

2、故事片普通立体

3、故事片 IMAX

4、故事片 IMAX 立体

5、故事片胶片(进口)

6、故事片其他特种电影

7、故事片其他

8、故事片中国巨幕

9、故事片中国巨幕立体

a、动画片观摩影片

b、动画片普通

o、动画片普通立体

d、动画片 IMAX

e、动画片 IMAX 立体

f、动画片胶片(进口)

g、动画片其他特种电影

h、动画片其他

i、动画片中国巨幕

j、动画片中国巨幕立体

k、纪录片观摩影片

l、纪录片普通

m、纪录片普通立体

n、纪录片 IMAX

o、纪录片 IMAX 立体

p、纪录片胶片(进口)

q、纪录片其他特种电影

r、纪录片其他

s、纪录片中国巨幕

t、纪录片中国巨幕立体

u、科教片观摩影片

v、科教片普逋

w、科教片普通立体

x、科教片 IMAX

y、科教片 IMAX 立体

z、科教片胶片(进口)

A、科教片其他特种电影

B、科教片其他

C、科教片中国巨幕

D、科教片中国巨幕立体

 

+ + \ No newline at end of file diff --git a/public/static/get_cinema_info.html b/public/static/get_cinema_info.html new file mode 100644 index 0000000..7e46b40 --- /dev/null +++ b/public/static/get_cinema_info.html @@ -0,0 +1,304 @@ + + + + +2、影院信息下载接口 + + +

2、影院信息下载接口

GET /data/getCinemaInfo

请求参数

名称长度类型必选中文名描述
cinemaCode8string电影院编码none

返回示例

返回数据结构

状态码 200

名称类型描述说明
codestringnonenone
statusstringnonenone
dataobjectnonenone
cinemaCodestring电影院编码none
cinemaNamestring电影院名称none
oicialNamestring企业名称none
managerstring影院经理姓名none
managerTelstring影院经理电话none
faxstring传真号none
cinemaChainNamestring所属院线 
screensinteger影厅数量none
businessStatusString营业状态11:注销 12:营业 13:停业 14:测试 15:待审核
legalPersonstringnonenone
legalPersonTelstringnonenone
salesstringnonenone
salesTelstringnonenone
telephonenullnonenone
cityCodestringnonenone
cityNamestringnonenone
cinemaLevelinteger影院级别1:"市"2:"县"3:"乡
screenList[object]影厅列表none
screenCodestringnonenone
screenNamestringnonenone
seatCountintegernonenone
hallTypestringnonevip:VIP
showTypestring放映制式影厅放映类型:
N:标准 CG:中国巨幕 C:Cinity IG:IMAX 巨幕 D:杜比 X:X-LAND L:LED 4D:4D S:特种 O:其他
isRedboolean是否人民院线true:是 false:否
isArtboolean是否艺术院线true:是 false:否

 

+ + \ No newline at end of file diff --git a/public/static/get_overtime_ticket_status.html b/public/static/get_overtime_ticket_status.html new file mode 100644 index 0000000..87920ae --- /dev/null +++ b/public/static/get_overtime_ticket_status.html @@ -0,0 +1,304 @@ + + + + +1、超时票务受理情况查询接口 + + +

1、超时票务受理情况查询接口

GET /data/getOvertimeTicketStatus

请求参数

名称长度类型必选中文名说明
cinemaCode8string影院编码none
startSessionDatenonedate放映时间字段开始时间(包含开始日期)时间区间不超过一周
endSessionDatenonedate放映时间字段结束日期(包含结束日期)none
overtimeType3integer超时票务类型0:超时售票 1:超时退票
sessionCode16string场次编码none
filmCode12string影片编码none
statusnoneinteger审核结果0:不通过 1:通过 2:待审核

返回示例

返回数据结构

状态码 200

名称类型约束说明
codestringnonenone
statusstringnonenone
dataobjectnonenone
ticketList[object]nonenone
ticketNostringnone电影票编码
operationintegernone1售票 2退票
statusintegernone0不通过 1通过 2待审核 99待提交

 

+ + \ No newline at end of file diff --git a/public/static/get_screen_info.html b/public/static/get_screen_info.html new file mode 100644 index 0000000..dac2b7e --- /dev/null +++ b/public/static/get_screen_info.html @@ -0,0 +1,304 @@ + + + + +3、影厅信息下载接口 + + +

3、影厅信息下载接口

GET /data/getScreenInfo

请求参数

名称位置类型必选中文名说明
cinemaCode8string影院编码none

返回示例

返回数据结构

状态码 200

名称类型约束说明
codestringnonenone
statusstringnonenone
dataobjectnonenone
cinemaCodestring电影院编码none
screenList[object]影厅列表none
screenCodestring影厅编码字符串类型,固定16个字符长度
screenNamestring影厅名称none
seatCountinteger座位数量none
hallTypestring影厅类型vip:VIP
showTypestring放映制式影厅放映类型:N:标准 CG:中国巨幕 C:Cinity IG:IMAX 巨幕 D:杜比 X:X-LAND L:LED 4D:4D S:特种 O:其他
isRedbooleannone是否人民院线
isArtbooleannone是否艺术院线

 

+ + \ No newline at end of file diff --git a/public/static/report_film_schedule.html b/public/static/report_film_schedule.html new file mode 100644 index 0000000..711d7ca --- /dev/null +++ b/public/static/report_film_schedule.html @@ -0,0 +1,304 @@ + + + + +2、排片数据上报接口 + + +

2、排片数据上报接口

POST /report/reportFilmSchedule

请求示例

请求参数

名称长度类型必选中文名说明
cinemaCode8string影院编码none
sessionListnone[object]排片信息none
sessionCode16string场次编码none
screenCode16string影厅编码none
filmCode12string影片排次号none
sessionDatetimenonedatetime放映时间none
deletedFlagnoneboolean场次删除标记none

返回示例

+ + \ No newline at end of file diff --git a/public/static/report_ticket.html b/public/static/report_ticket.html new file mode 100644 index 0000000..6ae4021 --- /dev/null +++ b/public/static/report_ticket.html @@ -0,0 +1,304 @@ + + + + +1、票房数据上报接口 + + +

1、票房数据上报接口

POST /report/reportTicket

请求示例

请求参数

名称长度类型必选中文名说明
sendChannelCode8string数据报送方编码none
ticketListnone[object]电影票信息none
numberByDay8integer上报流水号none
parentChannelCode8string渠道上游缺省值:00000000
childChannelCode8string渠道下游缺省值:00000000
ticketNo15string电影票编码none
cinemaCode8string影院编码none
screenCode16string影厅编码none
seatCode20string座位编码17-18位:座位行号
19-20位:座位列号
filmCode12string影片编码none
sessionCode16string场次编码none
sessionDatetimenonestring放映时间none
ticketPrice2位小数float票价none
screenServiceFee2位小数float影厅服务费缺省值:0.00
netServiceFee2位小数float网络代售服务费缺省值:0.00
saleChannelCode8string销售方编码none
operation1integer操作类型1.售票(缺省)2.退票
operationDatetimenonedatetime操作时间none
signature96-98string数字签名见CA验证

本接口一次上报票影票数量不超过50条 numberByDay 字段取值范围为1-10485760 不需要补位,超过10485760后,重新从1开始。 对于补报,如果numberByDay未重置,则使用原来的numberByDay即可;如果numberByDay已重置,则需要则需要用新生成的numberByDay

返回示例

状态码 200

+ + \ No newline at end of file diff --git a/public/static/upload_screen_seat_info.html b/public/static/upload_screen_seat_info.html new file mode 100644 index 0000000..be771d3 --- /dev/null +++ b/public/static/upload_screen_seat_info.html @@ -0,0 +1,304 @@ + + + + +3、座位信息上报接口 + + +

3、座位信息上报接口

POST /report/uploadScreenSeatInfo

正确请求示例

请求参数

名称字段长度类型必选中文名说明
cinemaCode8string电影院编码none
screenCode16string影厅编码none
seatsLayoutnone[object]座位列表none
layoutVersion15string座位图版本名称座位图列表,一个影厅的座位图在不同时间段可以有多个版本
effectiveDatenonestring座位图生效日期none
regionsnone[object]场区一个影厅可以划分多个场区,一般用来标识不同楼层
regionCode4string场区编码none
regionName6string场区名称none
sectionsnone[object] 影厅可划分为不同分区,用于营销区别定价,如会员区
sectionCode8string分区编码none
sectionName8string分区名称none
seatListnone[object]座位列表none
seatCode20string座位编码座位编码,长度20位,其中17-18位:座位行号;19-20位:座位列号。
x2string座位X坐标座位图横坐标
y2string座位Y坐标座位图纵坐标
rowId2string座位行号行编号(票面使用)
columnId2string座位列号列编号(票面使用)
type2string座位类型N:普通座位W:残疾人座位Z:震动座位DL:两人左座位DR:两人右座位
status1string座位状态N:正常D:损坏
regionCode4string场区编码所属场区编码
sectionCode8string分区编码所属分区编码

返回示例

 

+ + \ No newline at end of file diff --git a/public/static/valid_error.html b/public/static/valid_error.html new file mode 100644 index 0000000..adf8bd8 --- /dev/null +++ b/public/static/valid_error.html @@ -0,0 +1,304 @@ + + + + +2、数据清洗错误查询接口 + + +

2、数据清洗错误查询接口

POST /query/validError

请求示例

请求参数

名称长度类型必选中文名说明
queries8objectnonenone
sessionDatetime8string场次时间none
ticketNo15string电影票编码none

返回示例

返回数据结构

状态码 200

名称类型必选约束说明
codestringTRUEnonenone
statusstringTRUEnonenone
dataobjectTRUEnonenone
businessDatestringTRUEnone营业日期
ticketNostringTRUEnone电影票编码
errorTypeintegerTRUEnone清洗错误类型
sendChannelCodestringTRUEnone数据报送方编码

清洗错误类型定义

类型说明
100数据报送方错误
200影院编码错误
201影厅编码错误
202网售商编码错误
203座位编码错误
204影片编码错误
205场次编码错误
300票价错误
400退票类型,查无此票
500超时退票
600超时售票
700超期退票
800影院停业上报受限
801影院营业上报受限
802影院注销上报错误
803影院停业上报错误

 

+ + \ No newline at end of file diff --git a/src/apis/mock.js b/src/apis/mock.js index 8311ff7..a5917bb 100644 --- a/src/apis/mock.js +++ b/src/apis/mock.js @@ -35,8 +35,30 @@ export const set_overtime_config = (params) => { }) } +export const set_error_code_config = (params) => { + return request({ + url: 'api/set_error_code_config', + method: 'get', + params: params + }) +} + +// export const get_valid_error_json = (params) => { +// const req_params = { +// error_code: params['errorCode'], +// } +// console.log(req_params) +// return request( +// { +// url: 'api/get_response_json', +// method: 'get', +// params: params +// } +// ) +// } + -export const start_mock = (params,data) => { +export const start_mock = (params, data) => { console.log(params) return request({ url: 'api/start_mock', diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue index 22b2052..86c7f26 100644 --- a/src/components/HelloWorld.vue +++ b/src/components/HelloWorld.vue @@ -1,20 +1,13 @@ diff --git a/src/components/mock/api_block.vue b/src/components/mock/api_block.vue index f3e9de0..8cad634 100644 --- a/src/components/mock/api_block.vue +++ b/src/components/mock/api_block.vue @@ -1,16 +1,8 @@ diff --git a/src/layout/components/PageAside.vue b/src/layout/components/PageAside.vue index f1b7309..e6e672b 100644 --- a/src/layout/components/PageAside.vue +++ b/src/layout/components/PageAside.vue @@ -14,7 +14,7 @@ const route = useRoute()