资源库
This commit is contained in:
parent
9126f352b4
commit
195c1d6d72
@ -46,6 +46,10 @@ namespace YD_WeChatApplet.Context
|
||||
public DbSet<Y_StadiumVisiting> StadiumVisiting { get; set; }
|
||||
public DbSet<Y_SchoolAccountApplication> SchoolAccountApplication { get; set; }
|
||||
public DbSet<Y_CurricularPurchaseRecord> CurricularPurchaseRecord { get; set; }
|
||||
|
||||
public DbSet<JS_Special> JS_Special { get; set; }
|
||||
public DbSet<JS_SpecialAction> JS_SpecialAction { get; set; }
|
||||
public DbSet<JS_SpecialLevel> JS_SpecialLevel { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -124,8 +124,8 @@ namespace YD_WeChatApplet.Api.Services.Impl
|
||||
/// <returns></returns>
|
||||
public async Task<List<SpecialDto>> SpecialLevelList()
|
||||
{
|
||||
var specials = await _sportsContext.Ai_Special.ToListAsync();
|
||||
var levels = await _sportsContext.Ai_SpecialLevel
|
||||
var specials = await _sportsContext.JS_Special.ToListAsync();
|
||||
var levels = await _sportsContext.JS_SpecialLevel
|
||||
.Where(s => specials.Select(x => x.Id).Contains(s.SpecialId))
|
||||
.Include(s => s.SpecialActionList)
|
||||
.ToListAsync();
|
||||
|
||||
73
WeChatApplet/SmartSportsEntitys/JS_Special.cs
Normal file
73
WeChatApplet/SmartSportsEntitys/JS_Special.cs
Normal file
@ -0,0 +1,73 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
namespace YD_WeChatApplet.Api.SmartSportsEntitys
|
||||
{
|
||||
[Table("JS_Special")]
|
||||
public class JS_Special
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[Display(Description = "主键Id")]
|
||||
[Comment("Id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 专项名称
|
||||
/// </summary>
|
||||
[Display(Name = "专项名称")]
|
||||
[Comment("专项名称")]
|
||||
[Column(TypeName = "nvarchar(100)")]
|
||||
public string SpecialName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图片地址
|
||||
/// </summary>
|
||||
[Display(Name = "图片地址")]
|
||||
[Comment("图片地址")]
|
||||
[Column(TypeName = "nvarchar(2000)")]
|
||||
public string ImageUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
[Display(Name = "创建人")]
|
||||
[Comment("创建人")]
|
||||
[Column(TypeName = "int")]
|
||||
public int? Creator { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[Display(Name = "创建时间")]
|
||||
[Comment("创建时间")]
|
||||
[Column(TypeName = "datetime")]
|
||||
[Editable(true)]
|
||||
public DateTime? CreateDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人
|
||||
/// </summary>
|
||||
[Display(Name = "修改人")]
|
||||
[Comment("修改人")]
|
||||
[Column(TypeName = "int")]
|
||||
public int? Modifier { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[Display(Name = "修改时间")]
|
||||
[Comment("修改时间")]
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime? ModifyDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 专项水平列表
|
||||
/// </summary>
|
||||
[Display(Name = "专项水平列表")]
|
||||
[Comment("专项水平列表")]
|
||||
public List<JS_SpecialLevel> SpecialLevelList { get; set; }
|
||||
}
|
||||
}
|
||||
113
WeChatApplet/SmartSportsEntitys/JS_SpecialAction.cs
Normal file
113
WeChatApplet/SmartSportsEntitys/JS_SpecialAction.cs
Normal file
@ -0,0 +1,113 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using YD_WeChatApplet.Commons.Enum;
|
||||
namespace YD_WeChatApplet.Api.SmartSportsEntitys
|
||||
{
|
||||
[Table("JS_SpecialAction")]
|
||||
public class JS_SpecialAction
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[Display(Description = "主键Id")]
|
||||
[Comment("Id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 专项水平Id
|
||||
/// </summary>
|
||||
[Display(Name = "专项水平Id")]
|
||||
[Comment("专项水平Id")]
|
||||
[Column(TypeName = "int")]
|
||||
public int SpecialLevelId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 动作名称
|
||||
/// </summary>
|
||||
[Display(Name = "动作名称")]
|
||||
[Comment("动作名称")]
|
||||
[Column(TypeName = "nvarchar(100)")]
|
||||
public string ActionName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 动作类型
|
||||
/// </summary>
|
||||
[Display(Name = "动作类型")]
|
||||
[Comment("动作类型")]
|
||||
[Column(TypeName = "nvarchar(100)")]
|
||||
public SpecialActionType ActionType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 动作示范-视频路径
|
||||
/// </summary>
|
||||
[Display(Name = "动作示范-视频路径")]
|
||||
[Comment("动作示范-视频路径")]
|
||||
[Column(TypeName = "nvarchar(2000)")]
|
||||
public string ActionVideoPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 要领讲解-视频路径
|
||||
/// </summary>
|
||||
[Display(Name = "要领讲解-视频路径")]
|
||||
[Comment("要领讲解-视频路径")]
|
||||
[Column(TypeName = "nvarchar(2000)")]
|
||||
public string ExplainVideoPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 练习方法-视频路径
|
||||
/// </summary>
|
||||
[Display(Name = "练习方法-视频路径")]
|
||||
[Comment("练习方法-视频路径")]
|
||||
[Column(TypeName = "nvarchar(2000)")]
|
||||
public string ExerciseVideoPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 达标标准-视频路径
|
||||
/// </summary>
|
||||
[Display(Name = "达标标准-视频路径")]
|
||||
[Comment("达标标准-视频路径")]
|
||||
[Column(TypeName = "nvarchar(2000)")]
|
||||
public string StandardVideoPath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
[Display(Name = "创建人")]
|
||||
[Comment("创建人")]
|
||||
[Column(TypeName = "int")]
|
||||
public int? Creator { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[Display(Name = "创建时间")]
|
||||
[Comment("创建时间")]
|
||||
[Column(TypeName = "datetime")]
|
||||
[Editable(true)]
|
||||
public DateTime? CreateDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人
|
||||
/// </summary>
|
||||
[Display(Name = "修改人")]
|
||||
[Comment("修改人")]
|
||||
[Column(TypeName = "int")]
|
||||
public int? Modifier { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[Display(Name = "修改时间")]
|
||||
[Comment("修改时间")]
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime? ModifyDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 专项水平表-导航属性
|
||||
/// </summary>
|
||||
[ForeignKey("SpecialLevelId")]
|
||||
public JS_SpecialLevel SpecialLevel { get; set; }
|
||||
}
|
||||
}
|
||||
95
WeChatApplet/SmartSportsEntitys/JS_SpecialLevel.cs
Normal file
95
WeChatApplet/SmartSportsEntitys/JS_SpecialLevel.cs
Normal file
@ -0,0 +1,95 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
namespace YD_WeChatApplet.Api.SmartSportsEntitys
|
||||
{
|
||||
[Table("JS_SpecialLevel")]
|
||||
public class JS_SpecialLevel
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[Display(Description = "主键Id")]
|
||||
[Comment("Id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 专项Id
|
||||
/// </summary>
|
||||
[Display(Name = "专项Id")]
|
||||
[Comment("专项Id")]
|
||||
[Column(TypeName = "int")]
|
||||
public int SpecialId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 水平名称
|
||||
/// </summary>
|
||||
[Display(Name = "水平名称")]
|
||||
[Comment("水平名称")]
|
||||
[Column(TypeName = "nvarchar(100)")]
|
||||
public string LevelName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开始年级
|
||||
/// </summary>
|
||||
[Display(Name = "开始年级")]
|
||||
[Comment("开始年级")]
|
||||
[Column(TypeName = "int")]
|
||||
public int StartGrade { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 结束年级
|
||||
/// </summary>
|
||||
[Display(Name = "结束年级")]
|
||||
[Comment("结束年级")]
|
||||
[Column(TypeName = "int")]
|
||||
public int EndGrade { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
[Display(Name = "创建人")]
|
||||
[Comment("创建人")]
|
||||
[Column(TypeName = "int")]
|
||||
public int? Creator { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[Display(Name = "创建时间")]
|
||||
[Comment("创建时间")]
|
||||
[Column(TypeName = "datetime")]
|
||||
[Editable(true)]
|
||||
public DateTime? CreateDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改人
|
||||
/// </summary>
|
||||
[Display(Name = "修改人")]
|
||||
[Comment("修改人")]
|
||||
[Column(TypeName = "int")]
|
||||
public int? Modifier { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 修改时间
|
||||
/// </summary>
|
||||
[Display(Name = "修改时间")]
|
||||
[Comment("修改时间")]
|
||||
[Column(TypeName = "datetime")]
|
||||
public DateTime? ModifyDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 专项-导航属性
|
||||
/// </summary>
|
||||
[ForeignKey("SpecialId")]
|
||||
public JS_Special Special { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 专项动作列表
|
||||
/// </summary>
|
||||
[Display(Name = "专项动作列表")]
|
||||
[Comment("专项动作列表")]
|
||||
public List<JS_SpecialAction> SpecialActionList { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user