@@ -117,7 +117,7 @@ public IHttpActionResult Create(int siteId, int channelId)
117
117
118
118
return Ok ( new
119
119
{
120
- Value = contentInfo
120
+ Value = contentInfo . ToDictionary ( )
121
121
} ) ;
122
122
}
123
123
catch ( Exception ex )
@@ -212,7 +212,7 @@ public IHttpActionResult Update(int siteId, int channelId, int id)
212
212
213
213
return Ok ( new
214
214
{
215
- Value = contentInfo
215
+ Value = contentInfo . ToDictionary ( )
216
216
} ) ;
217
217
}
218
218
catch ( Exception ex )
@@ -267,7 +267,7 @@ public IHttpActionResult Delete(int siteId, int channelId, int id)
267
267
268
268
return Ok ( new
269
269
{
270
- Value = contentInfo
270
+ Value = contentInfo . ToDictionary ( )
271
271
} ) ;
272
272
}
273
273
catch ( Exception ex )
@@ -316,7 +316,7 @@ public IHttpActionResult Get(int siteId, int channelId, int id)
316
316
317
317
return Ok ( new
318
318
{
319
- Value = contentInfo
319
+ Value = contentInfo . ToDictionary ( )
320
320
} ) ;
321
321
}
322
322
catch ( Exception ex )
@@ -366,11 +366,11 @@ public QueryResult GetContents([FromBody] QueryRequest request)
366
366
var totalCount = DataProvider . ContentDao . GetTotalCount ( tableName , query ) ;
367
367
var channelContentIds = DataProvider . ContentDao . GetChannelContentIdList ( tableName , query ) ;
368
368
369
- var contents = new List < ContentInfo > ( ) ;
369
+ var contents = new List < Dictionary < string , object > > ( ) ;
370
370
foreach ( var channelContentId in channelContentIds )
371
371
{
372
372
var content = ContentManager . GetContentInfo ( site , channelContentId . ChannelId , channelContentId . Id ) ;
373
- contents . Add ( content ) ;
373
+ contents . Add ( content . ToDictionary ( ) ) ;
374
374
}
375
375
376
376
return new QueryResult
@@ -394,7 +394,7 @@ public CheckResult CheckContents([FromBody] CheckRequest request)
394
394
var site = SiteManager . GetSiteInfo ( request . SiteId ) ;
395
395
if ( site == null ) return Request . BadRequest < CheckResult > ( "无法确定内容对应的站点" ) ;
396
396
397
- var contents = new List < ContentInfo > ( ) ;
397
+ var contents = new List < Dictionary < string , object > > ( ) ;
398
398
foreach ( var channelContentId in request . Contents )
399
399
{
400
400
var channel = ChannelManager . GetChannelInfo ( request . SiteId , channelContentId . ChannelId ) ;
@@ -410,7 +410,7 @@ public CheckResult CheckContents([FromBody] CheckRequest request)
410
410
411
411
DataProvider . ContentDao . Update ( site , channel , content ) ;
412
412
413
- contents . Add ( content ) ;
413
+ contents . Add ( content . ToDictionary ( ) ) ;
414
414
415
415
var contentCheck = new ContentCheckInfo
416
416
{
0 commit comments