@@ -99,7 +99,7 @@ func main() {
99
99
// 返回住宿信息列表
100
100
e .GET ("/accommodations" , func (c echo.Context ) error {
101
101
fileId := "6c6GKvX83hRCVdG8"
102
- opt := shimo_openapi.Opts {"工作表1 " , 278 , "R" , "(" , time .Minute * 5 }
102
+ opt := shimo_openapi.Opts {"main " , 278 , "R" , "(" , time .Minute * 5 }
103
103
message , err := shimoC .GetFileWithOpts (fileId , opt )
104
104
if err != nil {
105
105
Log .Printf ("failed to get document: %v" , err )
@@ -111,7 +111,7 @@ func main() {
111
111
// 返回心理咨询机构列表
112
112
e .GET ("/platforms/psychological" , func (c echo.Context ) error {
113
113
fileId := "Dpy6Q668cj3Xx8Rq"
114
- opt := shimo_openapi.Opts {"上线版本 " , 19 , "M" , "\n " , time .Minute * 30 }
114
+ opt := shimo_openapi.Opts {"main " , 19 , "M" , "\n " , time .Minute * 30 }
115
115
message , err := shimoC .GetFileWithOpts (fileId , opt )
116
116
if err != nil {
117
117
Log .Printf ("failed to get document: %v" , err )
@@ -123,7 +123,7 @@ func main() {
123
123
// 返回线上医疗平台列表
124
124
e .GET ("/platforms/medical" , func (c echo.Context ) error {
125
125
fileId := "kDQJ6vWgWWwq8r8H"
126
- opt := shimo_openapi.Opts {"上线版本 " , 30 , "D" , " (" , time .Minute * 30 }
126
+ opt := shimo_openapi.Opts {"main " , 30 , "D" , " (" , time .Minute * 30 }
127
127
message , err := shimoC .GetFileWithOpts (fileId , opt )
128
128
if err != nil {
129
129
Log .Printf ("failed to get document: %v" , err )
@@ -135,7 +135,7 @@ func main() {
135
135
// 返回医院需求列表
136
136
e .GET ("/hospital/supplies" , func (c echo.Context ) error {
137
137
fileId := "zN32MwmPjmCLF0Av"
138
- opt := shimo_openapi.Opts {"已合成 " , 426 , "AP" , " " , time .Minute * 5 }
138
+ opt := shimo_openapi.Opts {"main " , 426 , "AP" , " " , time .Minute * 5 }
139
139
message , err := shimoC .GetFileWithOpts (fileId , opt )
140
140
if err != nil {
141
141
Log .Printf ("failed to get document: %v" , err )
@@ -147,7 +147,7 @@ func main() {
147
147
// 返回第二版的医院需求列表
148
148
e .GET ("/hospital/supplies/v2" , func (c echo.Context ) error {
149
149
fileId := "DqpyXVgXCwdvqrht"
150
- opt := shimo_openapi.Opts {"总表 " , 300 , "BR" , "----" , time .Minute * 30 }
150
+ opt := shimo_openapi.Opts {"main " , 300 , "BR" , "----" , time .Minute * 30 }
151
151
message , err := shimoC .GetFileWithOpts (fileId , opt )
152
152
if err != nil {
153
153
Log .Printf ("failed to get document: %v" , err )
@@ -159,7 +159,7 @@ func main() {
159
159
// 返回武汉在外人员住宿信息
160
160
e .GET ("/people/accommodations" , func (c echo.Context ) error {
161
161
fileId := "DR3OV8MN9yUxFnAB"
162
- opt := shimo_openapi.Opts {"工作表1 " , 934 , "L" , " " , time .Hour * 1 }
162
+ opt := shimo_openapi.Opts {"main " , 934 , "L" , " " , time .Hour * 1 }
163
163
message , err := shimoC .GetFileWithOpts (fileId , opt )
164
164
if err != nil {
165
165
Log .Printf ("failed to get document: %v" , err )
@@ -168,10 +168,10 @@ func main() {
168
168
return c .JSONBlob (http .StatusOK , message )
169
169
})
170
170
171
- // 返回零散信息
171
+ // 返回信息看板
172
172
e .GET ("/wiki/stream" , func (c echo.Context ) error {
173
173
fileId := "XRkgJOMRW0CrFbqM"
174
- opt := shimo_openapi.Opts {"实时 " , 100 , "H" , " " , time .Minute * 30 }
174
+ opt := shimo_openapi.Opts {"main " , 100 , "H" , " " , time .Minute * 30 }
175
175
message , err := shimoC .GetFileWithOpts (fileId , opt )
176
176
if err != nil {
177
177
Log .Printf ("failed to get document: %v" , err )
0 commit comments