-
Notifications
You must be signed in to change notification settings - Fork 243
/
Copy pathloveMsg.d.ts
183 lines (167 loc) · 3.46 KB
/
loveMsg.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
// 定义天气返回值类型 https://www.tianapi.com/apiview/72
interface IAlarmlistItemProps {
/** 预警省份 */
province: string
/** 预警城市 */
city: string
/** 预警级别 */
level: string
/** 预警类型 */
type: string
/** 预警内容 */
content: string
/** 预警时间 */
time: string
}
interface IWeatherResponseProps {
/** 2021-12-18 */
date: string
/** 星期六 */
week: string
/** 蚌埠 */
area: string
/** 晴 */
weather: string
/** 西南风 */
wind: string
/** 3-4级 */
windsc: string
/** 湿度:35% */
humidity: string
/** 降雨量 */
pcpn: string
/** 当前温度 4 */
real: string
/** 最高温度 8 */
highest: string
/** 最低温度 -2 */
lowest: string
/** 生活指数提示 */
tips: string
/** 天气预警列表(七天无此字段) */
alarmlist: IAlarmlistItemProps[]
}
interface IVerseProps {
/** 长安白日照春空,绿杨结烟垂袅风。 */
content: string
/** 阳春歌 */
origin: string
/** 李白 */
author: string
/** 古诗文-天气-太阳 */
category: string
/** 天行数据接口 名称 */
source: string
}
// 每日简报
interface DailyBriefing {
mtime: string
title: string
digest: string
source: string
url: string
imgsrc: string
}
// 今日头条
interface TodayHeadlines {
ctime: string
title: string
description: string
picUrl: string
url: string
source: string
}
// 最美宋词
interface IVerseProps {
/** 长安白日照春空,绿杨结烟垂袅风。 */
content: string
/** 阳春歌 */
origin: string
/** 李白 */
author: string
/** 古诗文-天气-太阳 */
category: string
/** 天行数据接口 名称 */
source: string
}
// 每日一句好英语
interface ResEnglishProps {
content: string
note: string
imgurl: string
date: string
}
// 韩寒主编的ONE一个杂志,本接口返回每日一句
interface OneMagazines {
word: string
wordfrom: string
imgurl: string
note: string
}
// 故事大全
interface StorybookProps {
title: string
content: string
}
// 网易云热评
interface NetEaseCloudProps {
source: string
content: string
}
// 获取农历信息
interface ResLunarDateProps {
lunar_festival: string
festival: string
lubarmonth: string
lunarday: string
jieqi: string
/* 宜 */
fitness: string
/* 忌 */
taboo: string
/* 天干地支:戊戌·乙丑·庚戌 */
tiangandizhiyear: string
tiangandizhimonth: string
tiangandizhiday: string
}
// 土味情话
interface SayloveProps {
content: string
}
// 励志古言
interface InspirationalWordProps {
saying: string
transl: string
source: string
}
// 雷人笑话
interface JokeProps {
title: string
content: string
}
// 一言
interface OneWordProps {
hitokoto: string
from: string
from_who: string
creator: string
}
/**
* 模板
*/
// goodMorning
type TextCardTemplateProps = IWeatherResponseProps & {
lunarInfo: ResLunarDateProps
oneWord?: OneWordProps | null
// randomLove: string | null
}
// goodEvening
type TextTemplateProps = {
sayLove: SayloveProps | null
caiHongpi: SayloveProps | null
oneWord: OneWordProps | null
songLyrics: IVerseProps | null
oneMagazines: OneMagazines | null
netEaseCloud: NetEaseCloudProps | null
dayEnglish: ResEnglishProps | null
}