diff --git a/Server/YD_XinWei.Commons/Dto/Open/DeviceInfoDto.cs b/Server/YD_XinWei.Commons/Dto/Open/DeviceInfoDto.cs
new file mode 100644
index 0000000..4c2295a
--- /dev/null
+++ b/Server/YD_XinWei.Commons/Dto/Open/DeviceInfoDto.cs
@@ -0,0 +1,142 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace YD_XinWei.Commons.Dto.Open
+{
+ public class DeviceInfoDto
+ {
+ ///
+ /// Id
+ ///
+ public int? Id { get; set; }
+
+ ///
+ /// Type (1平板2跳绳 3中长跑 4短跑 5敏捷 6坐位体前屈 7仰卧起坐 8引体向上 9立定跳远 10实心球 11排球 12游泳 13手环 100一体机)
+ ///
+ public double? Type { get; set; }
+
+ ///
+ /// 设备型号
+ ///
+ public string DeviceType { get; set; }
+
+ ///
+ /// 设备序列号
+ ///
+ public string DeviceSerial { get; set; }
+
+ ///
+ /// 设备mac地址
+ ///
+ public string DeviceMac { get; set; }
+
+ ///
+ /// 设备imei地址
+ ///
+ public string DeviceImei { get; set; }
+
+ ///
+ /// AI摄像机IP地址,多个ip用,隔开
+ ///
+ public string CameraIp { get; set; }
+
+ ///
+ /// 抢跑ip(短跑)
+ ///
+ public string GunJumpingIp { get; set; }
+
+ ///
+ /// 是否是EAI100摄像头
+ ///
+ public bool? Eai100Flag { get; set; }
+
+ ///
+ /// 组织ID
+ ///
+ public int? OrgId { get; set; }
+
+ ///
+ /// 组织名称
+ ///
+ public string OrgName { get; set; }
+
+ ///
+ /// 用户ID
+ ///
+ public int? UserId { get; set; }
+
+ ///
+ /// 用户名称
+ ///
+ public string UserName { get; set; }
+
+ ///
+ /// 软件版本
+ ///
+ public string SoftwareVer { get; set; }
+
+ ///
+ /// 摄像头序列号、版本信息
+ ///
+ public string CameraInfo { get; set; }
+
+ ///
+ /// 硬件版本
+ ///
+ public string HardwareVer { get; set; }
+
+ ///
+ /// 应用时间
+ ///
+ public string DeployTime { get; set; }
+
+ ///
+ /// 最后登录时间
+ ///
+ public string LastLoginTime { get; set; }
+
+ ///
+ /// 备注
+ ///
+ public string Remark { get; set; }
+
+ ///
+ /// 授权状态(0无效 1有效)
+ ///
+ public int? State { get; set; }
+
+ ///
+ /// 状态(0无效 1有效)
+ ///
+ public int? Status { get; set; }
+
+ ///
+ /// 创建时间
+ ///
+ public string CreateTime { get; set; }
+
+ ///
+ /// 创建人
+ ///
+ public string CreateBy { get; set; }
+
+ ///
+ /// 修改时间
+ ///
+ public string UpdateTime { get; set; }
+
+ ///
+ /// 修改人
+ ///
+ public string UpdateBy { get; set; }
+
+ ///
+ /// 学校人脸的相似度(80-99之间的整数)
+ ///
+ public int? SimilarNumber { get; set; }
+ }
+
+}
diff --git a/Server/YD_XinWei.Commons/Dto/Open/ScoreRuleDto.cs b/Server/YD_XinWei.Commons/Dto/Open/ScoreRuleDto.cs
new file mode 100644
index 0000000..8109b73
--- /dev/null
+++ b/Server/YD_XinWei.Commons/Dto/Open/ScoreRuleDto.cs
@@ -0,0 +1,174 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace YD_XinWei.Commons.Dto.Open
+{
+ public class ScoreRuleDto
+ {
+ ///
+ /// 项目类型(1-跳绳,2-跑步)
+ ///
+ public int? ProjectKind { get; set; }
+
+ ///
+ /// 项目ID
+ ///
+ public int? ProjectId { get; set; }
+
+ ///
+ /// 项目名称
+ ///
+ public string ProjectName { get; set; }
+
+ ///
+ /// 评分标准类型(1-国家标准,2-地方标准,3-自定义标准)
+ ///
+ public int? MarkType { get; set; }
+
+ ///
+ /// 模式
+ ///
+ public int? ModelType { get; set; }
+
+ ///
+ /// 年级ID
+ ///
+ public int? GradeId { get; set; }
+
+ ///
+ /// 组织ID
+ ///
+ public int? OrgId { get; set; }
+
+ ///
+ /// 标准ID
+ ///
+ public int? ProjectRuleId { get; set; }
+
+ ///
+ /// 规则排序(1降序 2升序)
+ ///
+ public int? RuleType { get; set; }
+
+ ///
+ /// 评分规则列表
+ ///
+ public List Items { get; set; }
+
+ ///
+ /// 附加分规则
+ ///
+ public List Pluses { get; set; }
+
+ ///
+ /// 附加分规则范围
+ ///
+ public List ScoreScopes { get; set; }
+ }
+
+ ///
+ /// ScoreRuleItemDto 类表示单个评分规则项的信息。
+ ///
+ public class ScoreRuleItemDto
+ {
+ ///
+ /// ID
+ ///
+ public int? Id { get; set; }
+
+ ///
+ /// 性别(0未知1男2女)
+ ///
+ public int? Sex { get; set; }
+
+ ///
+ /// 级别名称
+ ///
+ public string Name { get; set; }
+
+ ///
+ /// 分数
+ ///
+ public double? Score { get; set; }
+
+ ///
+ /// 最大值
+ ///
+ public double? Max { get; set; }
+
+ ///
+ /// 最小值
+ ///
+ public double? Min { get; set; }
+ }
+
+ ///
+ /// ScoreRulePlusDto 类表示单个附加分规则项的信息。
+ ///
+ public class ScoreRulePlusDto
+ {
+ ///
+ /// ID
+ ///
+ public int? Id { get; set; }
+
+ ///
+ /// 性别(0未知1男2女)
+ ///
+ public int? Sex { get; set; }
+
+ ///
+ /// 分数
+ ///
+ public double? Score { get; set; }
+
+ ///
+ /// 最大值
+ ///
+ public double? Max { get; set; }
+
+ ///
+ /// 最小值
+ ///
+ public double? Min { get; set; }
+
+ ///
+ /// 满分数值
+ ///
+ public double? MaxScore { get; set; }
+ }
+
+ ///
+ /// ScoreScope 类表示附加分规则的范围信息。
+ ///
+ public class ScoreScope
+ {
+ ///
+ /// 性别(1男2女)
+ ///
+ public int? Gender { get; set; }
+
+ ///
+ /// 最大成绩
+ ///
+ public double? MaxCount { get; set; }
+
+ ///
+ /// 最大分数
+ ///
+ public double? MaxScore { get; set; }
+
+ ///
+ /// 最大附加成绩
+ ///
+ public double? MaxPlusCount { get; set; }
+
+ ///
+ /// 最大附加分数
+ ///
+ public double? MaxPlusScore { get; set; }
+ }
+}
diff --git a/Server/YD_XinWei.Commons/bin/Debug/net6.0/YD_XinWei.Commons.dll b/Server/YD_XinWei.Commons/bin/Debug/net6.0/YD_XinWei.Commons.dll
index f57ee31..1178e85 100644
Binary files a/Server/YD_XinWei.Commons/bin/Debug/net6.0/YD_XinWei.Commons.dll and b/Server/YD_XinWei.Commons/bin/Debug/net6.0/YD_XinWei.Commons.dll differ
diff --git a/Server/YD_XinWei.Commons/bin/Debug/net6.0/YD_XinWei.Commons.pdb b/Server/YD_XinWei.Commons/bin/Debug/net6.0/YD_XinWei.Commons.pdb
index 5b456c7..a1d8b21 100644
Binary files a/Server/YD_XinWei.Commons/bin/Debug/net6.0/YD_XinWei.Commons.pdb and b/Server/YD_XinWei.Commons/bin/Debug/net6.0/YD_XinWei.Commons.pdb differ
diff --git a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfo.cs b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfo.cs
index 04193e7..92c25a5 100644
--- a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfo.cs
+++ b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfo.cs
@@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("YD_XinWei.Commons")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+0fe6b9902074841df3483134524084275defee80")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+1c36de9ae00d951cbe0a6ae28dfdf85462590015")]
[assembly: System.Reflection.AssemblyProductAttribute("YD_XinWei.Commons")]
[assembly: System.Reflection.AssemblyTitleAttribute("YD_XinWei.Commons")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
diff --git a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfoInputs.cache b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfoInputs.cache
index 6200dff..050ecaf 100644
--- a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfoInputs.cache
+++ b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.AssemblyInfoInputs.cache
@@ -1 +1 @@
-05848327760aee62efe2eb50ea063d214c9b014ac40e23aa82e46c4c180418cf
+2026c8592f2e63760859291f951b2458bb9020b5df25ac0103844af8c2d15e63
diff --git a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.csproj.CoreCompileInputs.cache b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.csproj.CoreCompileInputs.cache
index 2149a9c..0674b81 100644
--- a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.csproj.CoreCompileInputs.cache
+++ b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.csproj.CoreCompileInputs.cache
@@ -1 +1 @@
-2f8580077efc240d28d071c5d67cca84980474465d3a9e219dd679ae90ead099
+2234f164660a5e08dc58515192ad8ac9b5061083036b5ca76e9e574a19157fbe
diff --git a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.dll b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.dll
index f57ee31..1178e85 100644
Binary files a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.dll and b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.dll differ
diff --git a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.pdb b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.pdb
index 5b456c7..a1d8b21 100644
Binary files a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.pdb and b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.pdb differ
diff --git a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.sourcelink.json b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.sourcelink.json
index 597bf2e..9b574b3 100644
--- a/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.sourcelink.json
+++ b/Server/YD_XinWei.Commons/obj/Debug/net6.0/YD_XinWei.Commons.sourcelink.json
@@ -1 +1 @@
-{"documents":{"C:\\Users\\HHST102\\Desktop\\Code\\YD_XinWei\\*":"https://dev.azure.com/tanglong10081/YD_XinWei/_apis/git/repositories/YD_XinWei/items?api-version=1.0&versionType=commit&version=3745c9b034aa32c859c2d39720b663ab8b57b93c&path=/*"}}
\ No newline at end of file
+{"documents":{"C:\\Users\\HHST102\\Desktop\\Code\\YD_XinWei\\*":"https://dev.azure.com/tanglong10081/YD_XinWei/_apis/git/repositories/YD_XinWei/items?api-version=1.0&versionType=commit&version=1c36de9ae00d951cbe0a6ae28dfdf85462590015&path=/*"}}
\ No newline at end of file
diff --git a/Server/YD_XinWei.Commons/obj/Debug/net6.0/ref/YD_XinWei.Commons.dll b/Server/YD_XinWei.Commons/obj/Debug/net6.0/ref/YD_XinWei.Commons.dll
index 37f38ee..8030b66 100644
Binary files a/Server/YD_XinWei.Commons/obj/Debug/net6.0/ref/YD_XinWei.Commons.dll and b/Server/YD_XinWei.Commons/obj/Debug/net6.0/ref/YD_XinWei.Commons.dll differ
diff --git a/Server/YD_XinWei.Commons/obj/Debug/net6.0/refint/YD_XinWei.Commons.dll b/Server/YD_XinWei.Commons/obj/Debug/net6.0/refint/YD_XinWei.Commons.dll
index 37f38ee..8030b66 100644
Binary files a/Server/YD_XinWei.Commons/obj/Debug/net6.0/refint/YD_XinWei.Commons.dll and b/Server/YD_XinWei.Commons/obj/Debug/net6.0/refint/YD_XinWei.Commons.dll differ
diff --git a/Server/YD_XinWei/AutoMappers/MappingProfile.cs b/Server/YD_XinWei/AutoMappers/MappingProfile.cs
index 2e39ee8..494b051 100644
--- a/Server/YD_XinWei/AutoMappers/MappingProfile.cs
+++ b/Server/YD_XinWei/AutoMappers/MappingProfile.cs
@@ -1,6 +1,8 @@
using AutoMapper;
+using VOL.Entity.DomainModels.XinWei;
using YD_XinWei.Api.SmartSportsEntitys;
using YD_XinWei.Commons.Dto.HomeWork;
+using YD_XinWei.Commons.Dto.Open;
namespace YD_XinWei.Api.AutoMappers
{
@@ -14,6 +16,8 @@ namespace YD_XinWei.Api.AutoMappers
// ...
//CreateMap();
+
+ CreateMap();
}
}
}
diff --git a/Server/YD_XinWei/Context/SmartSportsContext.cs b/Server/YD_XinWei/Context/SmartSportsContext.cs
index d6adcd1..1345c4b 100644
--- a/Server/YD_XinWei/Context/SmartSportsContext.cs
+++ b/Server/YD_XinWei/Context/SmartSportsContext.cs
@@ -1,5 +1,6 @@
using Microsoft.EntityFrameworkCore;
using VOL.Entity.DomainModels;
+using VOL.Entity.DomainModels.XinWei;
using YD_XinWei.Api.Entitys;
using YD_XinWei.Api.SmartSportsEntitys;
@@ -21,5 +22,7 @@ namespace YD_XinWei.Api.Context
public DbSet XW_ProjectMode { get; set; }
public DbSet XW_TestingProject { get; set; }
+ public DbSet XW_Device { get; set; }
+ public DbSet XW_SportsTestData { get; set; }
}
}
diff --git a/Server/YD_XinWei/Controllers/XinWeiController.cs b/Server/YD_XinWei/Controllers/XinWeiController.cs
index aeb5c74..34039b2 100644
--- a/Server/YD_XinWei/Controllers/XinWeiController.cs
+++ b/Server/YD_XinWei/Controllers/XinWeiController.cs
@@ -23,12 +23,24 @@ namespace YD_XinWei.Api.Controllers
_xinWeiService = xinWeiService;
}
+ ///
+ /// 获取设备信息
+ ///
+ ///
+ [HttpGet]
+ [Route("/basic/{apiVersion}/device/open/getDeviceInfo")]
+ public async Task GetDeviceInfo(string deviceSerial)
+ {
+ var res = await _xinWeiService.DeviceInfo(deviceSerial);
+ return res;
+ }
+
///
/// 获取项目模式列表
///
///
[HttpGet]
- [Route("sports/{apiVersion}/common/getSportsModelTypeList")]
+ [Route("/sports/{apiVersion}/common/getSportsModelTypeList")]
public async Task> GetSportsModelTypeList()
{
var res = await _xinWeiService.SportsModelTypeList();
@@ -40,7 +52,7 @@ namespace YD_XinWei.Api.Controllers
///
///
[HttpGet]
- [Route("sports/{apiVersion}/common/getOrgSportsProjectList")]
+ [Route("/sports/{apiVersion}/common/getOrgSportsProjectList")]
public async Task> GetOrgSportsProjectList(int orgId)
{
var res = await _xinWeiService.OrgSportsProjectList(orgId);
@@ -52,11 +64,24 @@ namespace YD_XinWei.Api.Controllers
///
///
[HttpGet]
- [Route("basic/basic/{apiVersion}/open/getMinimumOfStudentInfoList")]
+ [Route("/basic/basic/{apiVersion}/open/getMinimumOfStudentInfoList")]
public async Task> GetMinimumOfStudentInfoList(int orgId)
{
var res = await _xinWeiService.MinimumOfStudentInfoList(orgId);
return res;
}
+
+ ///
+ /// 获取人脸信息
+ ///
+ ///
+ ///
+ [HttpGet]
+ [Route("/basic/{apiVersion}/open/getFaceListOfDevicePage")]
+ public async Task GetFaceListOfDevicePage([FromQuery] FaceListOfDeviceDto dto)
+ {
+ var res = await _xinWeiService.FaceListOfDevicePage(dto);
+ return res;
+ }
}
}
diff --git a/Server/YD_XinWei/Services/Impl/XinWeiService.cs b/Server/YD_XinWei/Services/Impl/XinWeiService.cs
index 69c8ba9..8c8ef3f 100644
--- a/Server/YD_XinWei/Services/Impl/XinWeiService.cs
+++ b/Server/YD_XinWei/Services/Impl/XinWeiService.cs
@@ -1,6 +1,8 @@
using AutoMapper;
using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
+using System.Security.Cryptography;
+using VOL.Entity.DomainModels.XinWei;
using YD_XinWei.Api.Context;
using YD_XinWei.Api.Services.Interface;
using YD_XinWei.Api.SmartSportsEntitys;
@@ -9,11 +11,12 @@ using YD_XinWei.Commons.Dto.Common;
using YD_XinWei.Commons.Dto.HomeWork;
using YD_XinWei.Commons.Dto.Open;
using YD_XinWei.Commons.Dto.School;
+using static Microsoft.EntityFrameworkCore.DbLoggerCategory;
namespace YD_XinWei.Api.Services.Impl
{
///
- /// 服务
+ /// 服务实现
///
public class XinWeiService : IXinWeiService
{
@@ -31,6 +34,18 @@ namespace YD_XinWei.Api.Services.Impl
_mapper = mapper;
}
+ ///
+ /// 获取设备信息
+ ///
+ ///
+ ///
+ ///
+ public async Task DeviceInfo(string deviceSerial)
+ {
+ var deviceInfo = await _sportsContext.XW_Device.FirstAsync(x => x.DeviceSerial == deviceSerial);
+ var res = _mapper.Map(deviceInfo);
+ return res;
+ }
///
/// 项目模式
@@ -48,7 +63,6 @@ namespace YD_XinWei.Api.Services.Impl
return res;
}
-
///
/// 体育项目
///
@@ -100,5 +114,49 @@ namespace YD_XinWei.Api.Services.Impl
return res;
}
+
+ ///
+ /// 获取人脸信息
+ ///
+ ///
+ ///
+ public async Task FaceListOfDevicePage(FaceListOfDeviceDto dto)
+ {
+ var total = await _sportsContext.Student.CountAsync();
+
+ string schoolCode = await _sportsContext.School.Where(x => x.Id == dto.OrgId).Select(x => x.SchoolCode).FirstAsync();
+
+ var list = await _sportsContext.Student
+ .Where(x => x.SchoolCode == schoolCode)
+ .Select(s => new DeviceUserFaceVo()
+ {
+ FaceId = s.StudentNo,
+ FaceType = 1,
+ FaceUrl = s.Photo,
+ PersonId = s.IDCard,
+ UserId = s.Id
+ })
+ .Skip((dto.PageNo - 1) * dto.PageSize)
+ .Take(dto.PageSize)
+ .ToListAsync();
+
+ return new FaceListOfDevicePageDto()
+ {
+ Total = total,
+ PageNum = dto.PageNo,
+ Pages = dto.PageSize,
+ List = list
+ };
+ }
+
+ ///
+ /// 获取训练评分规则
+ ///
+ /// 学校Id
+ ///
+ public async Task> ScoreRules(int orgId)
+ {
+ throw new NotImplementedException();
+ }
}
}
diff --git a/Server/YD_XinWei/Services/Interface/IXinWeiService.cs b/Server/YD_XinWei/Services/Interface/IXinWeiService.cs
index f92e604..9896d79 100644
--- a/Server/YD_XinWei/Services/Interface/IXinWeiService.cs
+++ b/Server/YD_XinWei/Services/Interface/IXinWeiService.cs
@@ -10,8 +10,18 @@ using YD_XinWei.Commons.Dto.School;
namespace YD_XinWei.Api.Services.Interface
{
+ ///
+ /// 服务接口
+ ///
public interface IXinWeiService
{
+ ///
+ /// 获取设备信息
+ ///
+ ///
+ ///
+ Task DeviceInfo(string deviceSerial);
+
///
/// 项目模式
///
@@ -37,6 +47,13 @@ namespace YD_XinWei.Api.Services.Interface
///
///
///
- Task> FaceListOfDevicePage(FaceListOfDeviceDto dto);
+ Task FaceListOfDevicePage(FaceListOfDeviceDto dto);
+
+ ///
+ /// 获取训练评分规则
+ ///
+ /// 学校Id
+ ///
+ Task> ScoreRules(int orgId);
}
}
diff --git a/Server/YD_XinWei/SmartSportsEntitys/XW_CameraInfo.cs b/Server/YD_XinWei/SmartSportsEntitys/XW_CameraInfo.cs
deleted file mode 100644
index 54bcdd8..0000000
--- a/Server/YD_XinWei/SmartSportsEntitys/XW_CameraInfo.cs
+++ /dev/null
@@ -1,46 +0,0 @@
-using Microsoft.EntityFrameworkCore;
-using System;
-using System.Collections.Generic;
-using System.ComponentModel.DataAnnotations.Schema;
-using System.ComponentModel.DataAnnotations;
-using YD_XinWei.Api.Entitys;
-
-namespace VOL.Entity.DomainModels.XinWei
-{
- [Table("XW_CameraInfo")]
- public class XW_CameraInfo : EntityBase
- {
- ///
- /// 编号
- ///
- [Key]
- [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
- [Display(Description = "主键Id")]
- [Comment("编号")]
- public int Id { get; set; }
- ///
- /// 摄像头序列号
- ///
- [Display(Name = "SerialNumber")]
- [Comment("摄像头序列号")]
- public string? SerialNumber { get; set; }
-
- ///
- /// 摄像头版本信息
- ///
- [Display(Name = "Version")]
- [Comment("摄像头版本信息")]
- public string? Version { get; set; }
-
- ///
- /// 设备Id
- ///
-
- public int XW_DeviceId { get; set; }
-
- ///
- /// 导航属性
- ///
- public XW_Device XW_Device { get; set; }
- }
-}
diff --git a/Server/YD_XinWei/SmartSportsEntitys/XW_Device.cs b/Server/YD_XinWei/SmartSportsEntitys/XW_Device.cs
index b17f1ab..83d5736 100644
--- a/Server/YD_XinWei/SmartSportsEntitys/XW_Device.cs
+++ b/Server/YD_XinWei/SmartSportsEntitys/XW_Device.cs
@@ -7,8 +7,11 @@ using YD_XinWei.Api.Entitys;
namespace VOL.Entity.DomainModels.XinWei
{
+ ///
+ /// 设备表
+ ///
[Table("XW_Device")]
- public class XW_Device : EntityBase
+ public class XW_Device
{
///
/// 编号
@@ -188,12 +191,11 @@ namespace VOL.Entity.DomainModels.XinWei
[Comment("学校人脸的相似度")]
public int? SimilarNumber { get; set; }
-
///
/// 摄像头序列号、版本信息
///
[Display(Name = "摄像头序列号、版本信息")]
[Comment("摄像头序列号、版本信息")]
- public List CameraInfoList { get; set; } = new List();
+ public string CameraInfo { get; set; }
}
}
diff --git a/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Api.dll b/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Api.dll
index ba99c7c..00cb13a 100644
Binary files a/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Api.dll and b/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Api.dll differ
diff --git a/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Api.exe b/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Api.exe
index aa7c739..939d67e 100644
Binary files a/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Api.exe and b/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Api.exe differ
diff --git a/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Api.pdb b/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Api.pdb
index d836886..ff5f6d3 100644
Binary files a/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Api.pdb and b/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Api.pdb differ
diff --git a/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Api.xml b/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Api.xml
index 000fba0..2b3e1ec 100644
--- a/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Api.xml
+++ b/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Api.xml
@@ -69,6 +69,12 @@
芯未
+
+
+ 获取设备信息
+
+
+
获取项目模式列表
@@ -87,6 +93,13 @@
+
+
+ 获取人脸信息
+
+
+
+
数据库实体父类
@@ -229,7 +242,7 @@
- 服务
+ 服务实现
@@ -239,6 +252,14 @@
+
+
+ 获取设备信息
+
+
+
+
+
项目模式
@@ -259,6 +280,13 @@
学校Id
+
+
+ 获取人脸信息
+
+
+
+
获取班级列表
@@ -293,6 +321,18 @@
+
+
+ 服务接口
+
+
+
+
+ 获取设备信息
+
+
+
+
项目模式
@@ -313,6 +353,13 @@
学校Id
+
+
+ 获取人脸信息
+
+
+
+
帐号
@@ -880,29 +927,9 @@
修改时间
-
+
- 编号
-
-
-
-
- 摄像头序列号
-
-
-
-
- 摄像头版本信息
-
-
-
-
- 设备Id
-
-
-
-
- 导航属性
+ 设备表
@@ -1030,7 +1057,7 @@
学校人脸的相似度 (80-99 之间的整数)
-
+
摄像头序列号、版本信息
diff --git a/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Commons.dll b/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Commons.dll
index f57ee31..1178e85 100644
Binary files a/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Commons.dll and b/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Commons.dll differ
diff --git a/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Commons.pdb b/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Commons.pdb
index 5b456c7..a1d8b21 100644
Binary files a/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Commons.pdb and b/Server/YD_XinWei/bin/Debug/net6.0/YD_XinWei.Commons.pdb differ
diff --git a/Server/YD_XinWei/obj/Debug/net6.0/ApiEndpoints.json b/Server/YD_XinWei/obj/Debug/net6.0/ApiEndpoints.json
index 6dc30b4..fed4221 100644
--- a/Server/YD_XinWei/obj/Debug/net6.0/ApiEndpoints.json
+++ b/Server/YD_XinWei/obj/Debug/net6.0/ApiEndpoints.json
@@ -1,4 +1,76 @@
[
+ {
+ "ContainingType": "YD_XinWei.Api.Controllers.XinWeiController",
+ "Method": "GetDeviceInfo",
+ "RelativePath": "basic/{apiVersion}/device/open/getDeviceInfo",
+ "HttpMethod": "GET",
+ "IsController": true,
+ "Order": 0,
+ "Parameters": [
+ {
+ "Name": "deviceSerial",
+ "Type": "System.String",
+ "IsRequired": false
+ },
+ {
+ "Name": "apiVersion",
+ "Type": "",
+ "IsRequired": true
+ }
+ ],
+ "ReturnTypes": [
+ {
+ "Type": "YD_XinWei.Commons.Dto.Open.DeviceInfoDto",
+ "MediaTypes": [
+ "text/plain",
+ "application/json",
+ "text/json"
+ ],
+ "StatusCode": 200
+ }
+ ]
+ },
+ {
+ "ContainingType": "YD_XinWei.Api.Controllers.XinWeiController",
+ "Method": "GetFaceListOfDevicePage",
+ "RelativePath": "basic/{apiVersion}/open/getFaceListOfDevicePage",
+ "HttpMethod": "GET",
+ "IsController": true,
+ "Order": 0,
+ "Parameters": [
+ {
+ "Name": "OrgId",
+ "Type": "System.Int32",
+ "IsRequired": false
+ },
+ {
+ "Name": "PageNo",
+ "Type": "System.Int32",
+ "IsRequired": false
+ },
+ {
+ "Name": "PageSize",
+ "Type": "System.Int32",
+ "IsRequired": false
+ },
+ {
+ "Name": "apiVersion",
+ "Type": "",
+ "IsRequired": true
+ }
+ ],
+ "ReturnTypes": [
+ {
+ "Type": "YD_XinWei.Commons.Dto.Open.FaceListOfDevicePageDto",
+ "MediaTypes": [
+ "text/plain",
+ "application/json",
+ "text/json"
+ ],
+ "StatusCode": 200
+ }
+ ]
+ },
{
"ContainingType": "YD_XinWei.Api.Controllers.XinWeiController",
"Method": "GetMinimumOfStudentInfoList",
diff --git a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.AssemblyInfo.cs b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.AssemblyInfo.cs
index 6fbfd0e..793a416 100644
--- a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.AssemblyInfo.cs
+++ b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.AssemblyInfo.cs
@@ -14,7 +14,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("YD_XinWei.Api")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+3745c9b034aa32c859c2d39720b663ab8b57b93c")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+1c36de9ae00d951cbe0a6ae28dfdf85462590015")]
[assembly: System.Reflection.AssemblyProductAttribute("YD_XinWei.Api")]
[assembly: System.Reflection.AssemblyTitleAttribute("YD_XinWei.Api")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
diff --git a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.AssemblyInfoInputs.cache b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.AssemblyInfoInputs.cache
index 43600e5..9e28754 100644
--- a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.AssemblyInfoInputs.cache
+++ b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.AssemblyInfoInputs.cache
@@ -1 +1 @@
-2b4c09258c88cbdffc58fb2fcbfaad2605cbcdfe550d6b2ae72b6f3bdfefc6e5
+a4866615988ec3d94014186f3a083b49335ed583356c6a4f51cabda69fbc1294
diff --git a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.csproj.AssemblyReference.cache b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.csproj.AssemblyReference.cache
index fcac5f0..f8e08b9 100644
Binary files a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.csproj.AssemblyReference.cache and b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.csproj.AssemblyReference.cache differ
diff --git a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.csproj.CoreCompileInputs.cache b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.csproj.CoreCompileInputs.cache
index 839d6e5..5c5babd 100644
--- a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.csproj.CoreCompileInputs.cache
+++ b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.csproj.CoreCompileInputs.cache
@@ -1 +1 @@
-65ca0c03df4b5aeccfc799b9a69893d50e3091ab6d116ecdd06ab1499e662190
+0b885924c6cfa9a8470e64544c43de5a027bc2c8e1b105f9aa5492c4fc6edf75
diff --git a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.dll b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.dll
index ba99c7c..00cb13a 100644
Binary files a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.dll and b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.dll differ
diff --git a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.pdb b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.pdb
index d836886..ff5f6d3 100644
Binary files a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.pdb and b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.pdb differ
diff --git a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.sourcelink.json b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.sourcelink.json
index 597bf2e..9b574b3 100644
--- a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.sourcelink.json
+++ b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.sourcelink.json
@@ -1 +1 @@
-{"documents":{"C:\\Users\\HHST102\\Desktop\\Code\\YD_XinWei\\*":"https://dev.azure.com/tanglong10081/YD_XinWei/_apis/git/repositories/YD_XinWei/items?api-version=1.0&versionType=commit&version=3745c9b034aa32c859c2d39720b663ab8b57b93c&path=/*"}}
\ No newline at end of file
+{"documents":{"C:\\Users\\HHST102\\Desktop\\Code\\YD_XinWei\\*":"https://dev.azure.com/tanglong10081/YD_XinWei/_apis/git/repositories/YD_XinWei/items?api-version=1.0&versionType=commit&version=1c36de9ae00d951cbe0a6ae28dfdf85462590015&path=/*"}}
\ No newline at end of file
diff --git a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.xml b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.xml
index 000fba0..2b3e1ec 100644
--- a/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.xml
+++ b/Server/YD_XinWei/obj/Debug/net6.0/YD_XinWei.Api.xml
@@ -69,6 +69,12 @@
芯未
+
+
+ 获取设备信息
+
+
+
获取项目模式列表
@@ -87,6 +93,13 @@
+
+
+ 获取人脸信息
+
+
+
+
数据库实体父类
@@ -229,7 +242,7 @@
- 服务
+ 服务实现
@@ -239,6 +252,14 @@
+
+
+ 获取设备信息
+
+
+
+
+
项目模式
@@ -259,6 +280,13 @@
学校Id
+
+
+ 获取人脸信息
+
+
+
+
获取班级列表
@@ -293,6 +321,18 @@
+
+
+ 服务接口
+
+
+
+
+ 获取设备信息
+
+
+
+
项目模式
@@ -313,6 +353,13 @@
学校Id
+
+
+ 获取人脸信息
+
+
+
+
帐号
@@ -880,29 +927,9 @@
修改时间
-
+
- 编号
-
-
-
-
- 摄像头序列号
-
-
-
-
- 摄像头版本信息
-
-
-
-
- 设备Id
-
-
-
-
- 导航属性
+ 设备表
@@ -1030,7 +1057,7 @@
学校人脸的相似度 (80-99 之间的整数)
-
+
摄像头序列号、版本信息
diff --git a/Server/YD_XinWei/obj/Debug/net6.0/apphost.exe b/Server/YD_XinWei/obj/Debug/net6.0/apphost.exe
index aa7c739..939d67e 100644
Binary files a/Server/YD_XinWei/obj/Debug/net6.0/apphost.exe and b/Server/YD_XinWei/obj/Debug/net6.0/apphost.exe differ
diff --git a/Server/YD_XinWei/obj/Debug/net6.0/ref/YD_XinWei.Api.dll b/Server/YD_XinWei/obj/Debug/net6.0/ref/YD_XinWei.Api.dll
index 296c848..a9b072e 100644
Binary files a/Server/YD_XinWei/obj/Debug/net6.0/ref/YD_XinWei.Api.dll and b/Server/YD_XinWei/obj/Debug/net6.0/ref/YD_XinWei.Api.dll differ
diff --git a/Server/YD_XinWei/obj/Debug/net6.0/refint/YD_XinWei.Api.dll b/Server/YD_XinWei/obj/Debug/net6.0/refint/YD_XinWei.Api.dll
index 296c848..a9b072e 100644
Binary files a/Server/YD_XinWei/obj/Debug/net6.0/refint/YD_XinWei.Api.dll and b/Server/YD_XinWei/obj/Debug/net6.0/refint/YD_XinWei.Api.dll differ