@@ -20,7 +20,11 @@ namespace GxPress.Entity.tede2.Group
/// <value></value>
[DataColumn]
public int ParentId { get; set; }
-
+ /// <summary>
+ /// 是否可见
+ /// </summary>
+ /// <value></value>
+ [DataColumn]
+ public bool IsShow { get; set; }
}
@@ -539,5 +539,10 @@ namespace GxPress.Result.Media
/// Json内容
/// </summary>
public string Blocks { get; set; }
+ /// 类型
+ public int MediaType { get; set; }
@@ -656,7 +656,7 @@ namespace GxPress.Repository.Implement.Media
public async Task<SkillInfo> GetRandomDaySkillAsync()
{
var sql = $@"SELECT
- Id,Blocks
+ Id,Blocks,MediaType
FROM
tede_media where IsExercises=1 and MediaType={AllTypeConst.Article.GetHashCode()}
ORDER BY RAND() LIMIT 1";