docs: update README.md

[skip ci]
This commit is contained in:
NateScarlet 2019-07-17 00:15:25 +08:00 committed by GitHub
parent f2bde6659a
commit a9eb75f1f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,17 +12,20 @@
数据格式: 数据格式:
```JSON格式说明 ```TypeScript
{ interface Holidays {
year: Int, 年份 /** 完整年份, 整数。*/
papers: [String], 所用国务院文件网址列表 year: number;
days: [ /** 所用国务院文件网址列表 */
{ papers: string[];
name: String, 节日名称 days: {
date: String, ISO 8601 日期 /** 节日名称 */
isOffDay: Boolean, 是否为休息日 name: string;
} /** 日期, ISO 8601 格式 */
] date: string;
/** 是否为休息日 */
isOffDay: boolean;
}[]
} }
``` ```