添加项目文件。

This commit is contained in:
huzhiyun 2026-01-26 16:18:05 +08:00
commit 5d773ddbe3
475 changed files with 26179 additions and 0 deletions

63
.gitattributes vendored Normal file
View File

@ -0,0 +1,63 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto
###############################################################################
# Set default behavior for command prompt diff.
#
# This is need for earlier builds of msysgit that does not have it on by
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp
###############################################################################
# Set the merge driver for project and solution files
#
# Merging from the command prompt will add diff markers to the files if there
# are conflicts (Merging from VS is not affected by the settings below, in VS
# the diff markers are never inserted). Diff markers may cause the following
# file extensions to fail to load in VS. An alternative would be to treat
# these files as binary and thus will always conflict and require user
# intervention with every merge. To do so, just uncomment the entries below
###############################################################################
#*.sln merge=binary
#*.csproj merge=binary
#*.vbproj merge=binary
#*.vcxproj merge=binary
#*.vcproj merge=binary
#*.dbproj merge=binary
#*.fsproj merge=binary
#*.lsproj merge=binary
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary
###############################################################################
# behavior for image files
#
# image files are treated as binary by default.
###############################################################################
#*.jpg binary
#*.png binary
#*.gif binary
###############################################################################
# diff behavior for common document formats
#
# Convert binary document formats to text before diffing them. This feature
# is only available from the command line. Turn it on by uncommenting the
# entries below.
###############################################################################
#*.doc diff=astextplain
#*.DOC diff=astextplain
#*.docx diff=astextplain
#*.DOCX diff=astextplain
#*.dot diff=astextplain
#*.DOT diff=astextplain
#*.pdf diff=astextplain
#*.PDF diff=astextplain
#*.rtf diff=astextplain
#*.RTF diff=astextplain

35
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,35 @@
{
"version": "0.2.0",
"configurations": [
{
// 使 IntelliSense C#
//
// 访 https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
//
"program": "${workspaceFolder}/LearningOfficer.OA.Mobile.Api/bin/Debug/net8.0/LearningOfficer.OA.Mobile.Api.dll",
"args": [],
"cwd": "${workspaceFolder}/LearningOfficer.OA.Mobile.Api",
"stopAtEntry": false,
// ASP.NET Core Web : https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Views"
}
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
}
]
}

3
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"codingcopilot.enableCompletionLanguage": {}
}

41
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,41 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/LearningOfficer.OA.Mobile.Api/LearningOfficer.OA.Mobile.Api.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/LearningOfficer.OA.Mobile.Api/LearningOfficer.OA.Mobile.Api.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary;ForceNoAlign"
],
"problemMatcher": "$msCompile"
},
{
"label": "watch",
"command": "dotnet",
"type": "process",
"args": [
"watch",
"run",
"--project",
"${workspaceFolder}/LearningOfficer.OA.Mobile.Api/LearningOfficer.OA.Mobile.Api.csproj"
],
"problemMatcher": "$msCompile"
}
]
}

View File

@ -0,0 +1,49 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.13.35828.75 d17.13
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LearningOfficer.OA.Mobile.Api", "LearningOfficer.OA.Mobile.Api\LearningOfficer.OA.Mobile.Api.csproj", "{20E3876B-B978-4C77-AA18-3E8B1874B685}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LearningOfficer.OA.Core", "LearningOfficer.OA.Core\LearningOfficer.OA.Core.csproj", "{E805B196-4094-4A45-979D-AC908542B689}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LearningOfficer.OA.Common", "LearningOfficer.OA.Common\LearningOfficer.OA.Common.csproj", "{B40C9A23-AE9C-4AC1-9201-66B51AD0C939}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LearningOfficer.OA.Services", "LearningOfficer.OA.Services\LearningOfficer.OA.Services.csproj", "{0674EE67-0D0C-437D-A103-3BEF05BFF93F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LearningOfficer.OA.Infrastructure", "LearningOfficer.OA.Infrastructure\LearningOfficer.OA.Infrastructure.csproj", "{5716C765-0A66-44E8-ADC9-ED473267319F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{20E3876B-B978-4C77-AA18-3E8B1874B685}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{20E3876B-B978-4C77-AA18-3E8B1874B685}.Debug|Any CPU.Build.0 = Debug|Any CPU
{20E3876B-B978-4C77-AA18-3E8B1874B685}.Release|Any CPU.ActiveCfg = Release|Any CPU
{20E3876B-B978-4C77-AA18-3E8B1874B685}.Release|Any CPU.Build.0 = Release|Any CPU
{E805B196-4094-4A45-979D-AC908542B689}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E805B196-4094-4A45-979D-AC908542B689}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E805B196-4094-4A45-979D-AC908542B689}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E805B196-4094-4A45-979D-AC908542B689}.Release|Any CPU.Build.0 = Release|Any CPU
{B40C9A23-AE9C-4AC1-9201-66B51AD0C939}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B40C9A23-AE9C-4AC1-9201-66B51AD0C939}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B40C9A23-AE9C-4AC1-9201-66B51AD0C939}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B40C9A23-AE9C-4AC1-9201-66B51AD0C939}.Release|Any CPU.Build.0 = Release|Any CPU
{0674EE67-0D0C-437D-A103-3BEF05BFF93F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0674EE67-0D0C-437D-A103-3BEF05BFF93F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0674EE67-0D0C-437D-A103-3BEF05BFF93F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0674EE67-0D0C-437D-A103-3BEF05BFF93F}.Release|Any CPU.Build.0 = Release|Any CPU
{5716C765-0A66-44E8-ADC9-ED473267319F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5716C765-0A66-44E8-ADC9-ED473267319F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5716C765-0A66-44E8-ADC9-ED473267319F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5716C765-0A66-44E8-ADC9-ED473267319F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {29280FBC-F13A-47E9-89D2-D3CB1E2AC003}
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,10 @@
using Microsoft.Extensions.DependencyInjection;
namespace LearningOfficer.OA.Common.Attributes
{
[AttributeUsage(AttributeTargets.Class)]
public class InjectAttribute : Attribute
{
public ServiceLifetime Lifetime { get; set; } = ServiceLifetime.Scoped;
}
}

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Configs
{
/// <summary>
/// 蓝鲸智库配置文件
/// </summary>
public class BlueThinkConfig
{
public string Area { get; set; }
public string Signcode { get; set; }
public string PublicKey { get; set; }
public string PrivateKey { get; set; }
public long RootId { get; set; }
public string Url { get; set; }
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Configs
{
public class ConnectionStringsSettings
{
public string Redis { get; set; }
public string Db { get; set; }
public string UserCenterDb { get; set; }
}
}

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Configs
{
public class DataCollectionConfig
{
/// <summary>
/// 资料上传地址 头部
/// </summary>
public string UpDataFileUrl { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hangfire;
namespace LearningOfficer.OA.Common.Configs
{
public class HangFireSettings
{
public string ConnectionString { get; set; }
public int Db { get; set; } = 0;
public string cron { get; set; }
public static JobStorage hangfireStorage { get; set; }
}
}

View File

@ -0,0 +1,48 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Configs
{
public class ImConfig
{
public int SDKAppID { get; set; }
public string Key { get; set; }
public int ExpiredTime { get; set; }
/// <summary>
/// 头像默认地址
/// </summary>
public string DefaultAvater { get; set; }
/// <summary>
/// 管理员用户
/// </summary>
public string AdminUserId { get; set; }
/// <summary>
/// api头部地址
/// </summary>
public string ApiHeadUrl { get; set; }
/// <summary>
/// 视频通话状态
/// </summary>
public bool VideoCall { get; set; }
/// <summary>
/// 语音通话状态
/// </summary>
public bool VoiceCall { get; set; }
}
public class ImConfigResult
{
public int SDKAppID { get; set; }
/// <summary>
/// 视频通话状态
/// </summary>
public bool VideoCall { get; set; }
/// <summary>
/// 语音通话状态
/// </summary>
public bool VoiceCall { get; set; }
}
}

View File

@ -0,0 +1,36 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Configs
{
public class JwtSettings
{
/// <summary>
/// AccessToken密钥
/// </summary>
public string AccessSecret { get; set; } = string.Empty;
/// <summary>
/// 签发人
/// </summary>
public string Issuer { get; set; } = string.Empty;
/// <summary>
/// 受众
/// </summary>
public string Audience { get; set; } = string.Empty;
/// <summary>
/// AccessToken有效时长
/// </summary>
public int AccessExpiration { get; set; }
/// <summary>
/// RefreshExpiration有效时长
/// </summary>
public int RefreshExpiration { get; set; }
/// <summary>
/// 允许的时差
/// </summary>
public int ClockSkew { get; set; }
}
}

View File

@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Configs
{
public class MobileToH5Config
{
/// <summary>
/// H5解析地址(高中)
/// </summary>
public string HighSchoolUrl { get; set; }
/// <summary>
/// H5解析地址(初中)
/// </summary>
public string JuniorUrl { get; set; }
}
/// <summary>
/// 获取H5链接枚举
/// </summary>
public enum MobileToH5ConfigEnum
{
/// <summary>
/// 意见反馈地址
/// </summary>
feedback,
/// <summary>
/// 积分商城地址
/// </summary>
points,
/// <summary>
/// 金点子榜单
/// </summary>
ranking
}
}

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Configs
{
public class NacosConfig
{
/// <summary>
/// Nacos命名空间
/// </summary>
public string Namespace { get; set; }
}
}

View File

@ -0,0 +1,70 @@
namespace LearningOfficer.OA.Common.Configs
{
/// <summary>
/// RabbitMQ 配置
/// </summary>
public class RabbitMQConfig
{
/// <summary>
/// RabbitMQ 服务器地址
/// </summary>
public string HostName { get; set; }
/// <summary>
/// 端口号
/// </summary>
public int Port { get; set; }
/// <summary>
/// 用户名
/// </summary>
public string UserName { get; set; }
/// <summary>
/// 密码
/// </summary>
public string Password { get; set; }
/// <summary>
/// 虚拟主机
/// </summary>
public string VirtualHost { get; set; }
/// <summary>
/// im推送mq配置
/// </summary>
public BaseMqBusinessConfig imMq { get; set; }
}
/// <summary>
/// 对应业务的mq配置
/// </summary>
public class BaseMqBusinessConfig
{
/// <summary>
/// 队列名称
/// </summary>
public string QueueName { get; set; }
/// <summary>
/// 交换机名称
/// </summary>
public string ExchangeName { get; set; }
/// <summary>
/// 路由键
/// </summary>
public string RoutingKey { get; set; }
/// <summary>
/// 是否启用消息持久化
/// </summary>
public bool Durable { get; set; } = true;
/// <summary>
/// 是否自动删除队列
/// </summary>
public bool AutoDelete { get; set; } = false;
/// <summary>
/// 预取计数
/// </summary>
public ushort PrefetchCount { get; set; }
}
}

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Configs
{
public class UpAppVersionConfig
{
/// <summary>
/// IOS链接
/// </summary>
public string IOSUrl { get; set; }
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.ALiYun
{
public class CodeMsg
{
public int Code { get; set; }
public string Data { get; set; }
public string Reson { get; set; }
}
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.ALiYun
{
public class OSSConfigResult
{
public string AccessKeyId { get; set; }
public string AccessKeySecret { get; set; }
public string Endpoint { get; set; }
public string BucketName { get; set; }
public long Size { get; set; }
}
}

View File

@ -0,0 +1,105 @@
using LearningOfficer.OA.Common.Enums;
using LearningOfficer.OA.Common.Request;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Admin
{
public class AdminAddDto
{
/// <summary>
/// 备 注:账号
/// 默认值:
///</summary>
public string Account { get; set; } = null!;
/// <summary>
/// 备 注:密码
/// 默认值:
///</summary>
public string? Pwd { get; set; }
/// <summary>
/// 备 注:管理员名称
/// 默认值:
///</summary>
public string Name { get; set; } = null!;
/// <summary>
/// 备 注:云校id
/// </summary>
public long CloudSchoolId { get; set; }
/// <summary>
/// 备 注:管理员角色
/// </summary>
public SysRoleEnum RoleEnum { get; set; }
}
public class AdminUpdateDto : AdminAddDto
{
/// <summary>
/// 备 注:管理员id
/// 默认值:
///</summary>
public long Id { get; set; }
}
/// <summary>
/// 管理员修改密码Dto
/// </summary>
public class AdminUpdatePasswordDto
{
public long Id { get; set; }
public string NewPassword { get; set; }
}
public class AdminSearchDto : PageRequest
{
/// <summary>
/// 备 注:账号
/// 默认值:
///</summary>
public string? Account { get; set; }
/// <summary>
/// 备 注:管理员名称
/// 默认值:
///</summary>
public string? Name { get; set; }
}
public class AdminViewDto
{
public long Id { get; set; }
/// <summary>
/// 备 注:账号
/// 默认值:
///</summary>
public string Account { get; set; } = null!;
/// <summary>
/// 备 注:管理员名称
/// 默认值:
///</summary>
public string Name { get; set; } = null!;
/// <summary>
/// 角色
/// </summary>
public SysRoleEnum RoleEnum { get; set; }
public long CloudSchoolId { get; set; }
public string CloudSchoolName { get; set; }
}
}

View File

@ -0,0 +1,55 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Banner
{
public class BannerAddDto
{
/// <summary>
/// 备 注:文件id
/// 默认值:
///</summary>
public long BannerFileId { get; set; }
/// <summary>
/// 备 注:banne名称
/// 默认值:
///</summary>
public string BannerName { get; set; }
}
public class BannerUpdateDto : BannerAddDto
{
public long Id { get; set; }
}
public class BannerViewDto
{
public long Id { get; set; }
/// <summary>
/// 备 注:文件id
/// 默认值:
///</summary>
public long BannerFileId { get; set; }
/// <summary>
/// 备 注:banne名称
/// 默认值:
///</summary>
public string BannerName { get; set; }
/// <summary>
/// 备 注:文件地址
/// </summary>
public string BannerFileUrl { get; set; }
/// <summary>
/// 文件名称
/// </summary>
public string BannerFileName { get; set; }
}
}

View File

@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Banner
{
public class BannerResult
{
/// <summary>
/// id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 备 注:文件id
/// 默认值:
///</summary>
public long BannerFileId { get; set; }
/// <summary>
/// 备 注:banne名称
/// 默认值:
///</summary>
public string BannerName { get; set; }
/// <summary>
/// 备 注:文件地址
/// </summary>
public string BannerFileUrl { get; set; }
/// <summary>
/// 文件名称
/// </summary>
public string BannerFileName { get; set; }
/// <summary>
/// 文件大小
/// </summary>
public long? BannerFileSize { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.ClassSub
{
public class ClassSubRequest
{
/// <summary>
/// 班级id
/// </summary>
public long Class_id { get; set; } = 0;
/// <summary>
/// 科目id
/// </summary>
public long Sub_id { get; set; } = 0;
}
}

View File

@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.ClassSub
{
/// <summary>
/// 工作台-班级科目绑定表
/// </summary>
public class ClassSubResult
{
public long? Id { get; set; } = 0;
/// <summary>
/// 班级名称
/// </summary>
public string ClassName { get; set; } = null!;
/// <summary>
/// 科目名称
/// </summary>
public string SubName { get; set; } = null!;
/// <summary>
/// 班级Id
/// </summary>
public long ClassId { get; set; } = 0;
/// <summary>
/// 科目Id
/// </summary>
public long SubId { get; set; } = 0;
}
}

View File

@ -0,0 +1,64 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.ClassTask
{
/// <summary>
/// 指标任务完成情况
/// </summary>
public class CheckListTaskTypeResult
{
/// <summary>
/// 备 注:年份
/// 默认值:
///</summary>
public int Year { get; set; }
/// <summary>
/// 备 注:月份
/// 默认值:
///</summary>
public int Month { get; set; }
/// <summary>
/// 备 注:指标任务类型
/// 默认值:
///</summary>
public int TypeEnum { get; set; }
/// <summary>
/// 备 注:任务指标数
/// 默认值:
///</summary>
public int CheckCount { get; set; }
/// <summary>
/// 备 注:任务已完成数
/// 默认值:
///</summary>
public int TaskCountEnd { get; set; }
/// <summary>
/// 备 注:任务逾期数
/// 默认值:
///</summary>
public int TaskCountOverdue { get; set; }
/// <summary>
/// 备 注:用户id
/// 默认值:
///</summary>
public long TaskUserId { get; set; }
}
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LearningOfficer.OA.Common.Dtos.OA.WorkProcess;
namespace LearningOfficer.OA.Common.Dtos.ClassTask
{
public class ClassManageTaskListResult
{
/// <summary>
/// 通用工作指标清单列表
/// </summary>
public List<Task_checklistResult> taskChecklistUser { get; set; }
}
}

View File

@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.ClassTask
{
public class ClassManager_Task_checklistRequest
{
/// <summary>
/// 新增为null
/// </summary>
public long? Id { get; set; }
/// <summary>
/// 备 注:任务类型id
/// 默认值:
///</summary>
public long Task_type_enum { get; set; }
/// <summary>
/// 备 注:任务指标数
/// 默认值:
///</summary>
public int Target_number { get; set; }
/// <summary>
/// 备 注:班级/通用任务类型 1班级2通用
/// 默认值:
///</summary>
public int Task_type { get; set; }
}
}

View File

@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.ClassTask
{
/// <summary>
/// 班级工作任务指标清单
/// </summary>
public class ClassesTaskChecklistResult
{
public long Id { get; set; }
/// <summary>
/// 备 注:班级任务类型枚举值
/// 默认值:
///</summary>
public long TaskTypeEnum { get; set; }
/// <summary>
/// 备 注:任务类型名称
/// </summary>
public string TaskTypeEnumName { get; set; } = null!;
/// <summary>
/// 备 注:班级id
/// 默认值:
///</summary>
public long ClassesId { get; set; }
/// <summary>
/// 备 注:任务达标数
/// 默认值:
///</summary>
public int TargetNumber { get; set; }
/// <summary>
/// 备 注:班级/通用任务类型 1班级2通用
/// 默认值:
///</summary>
public int TaskType { get; set; }
}
}

View File

@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.ClassTask
{
/// <summary>
/// 通用工作任务指标清单
/// </summary>
public class ClassesTaskChecklistUserResult
{
public long Id { get; set; }
/// <summary>
/// 备 注:任务类型枚举值
/// 默认值:
///</summary>
public long TaskTypeEnum { get; set; }
/// <summary>
/// 备 注:任务类型名称
/// </summary>
public string TaskTypeEnumName { get; set; }
/// <summary>
/// 备 注:任务接受人id
/// 默认值:
///</summary>
public long TaskUserId { get; set; }
/// <summary>
/// 备 注:任务达标数
/// 默认值:
///</summary>
public int TargetNumber { get; set; }
/// <summary>
/// 备 注:班级/通用任务类型 1班级2通用
/// 默认值:
///</summary>
public int TaskType { get; set; }
}
}

View File

@ -0,0 +1,102 @@
using LearningOfficer.OA.Common.Dtos.Classes;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.ClassTask
{
/// <summary>
/// 任务列表
/// </summary>
public class ClassesTaskListResult
{
public long Id { get; set; }
/// <summary>
/// 备 注:任务状态 0未开始 1进行中 2已结束 3问题待处理仅用于双师跟课 4:已逾期
/// 默认值:
///</summary>
public int Status { get; set; }
/// <summary>
/// 班级基本信息
/// </summary>
public List<ClassesInfoResult>? classesInfoResults { get; set; }
/// <summary>
/// 备 注:是否长期性工作
/// 默认值:
///</summary>
public ulong IsLongwork { get; set; }
/// <summary>
/// 备 注:参数表 枚举值,任务类型
/// 默认值:
///</summary>
public int TaskTypeEnum { get; set; }
/// <summary>
/// 备 注:任务标题后缀,用于展示
/// 默认值:
///</summary>
public string TaskTitleSuffix { get; set; } = null!;
/// <summary>
/// 备 注:开始日期
/// 默认值:
///</summary>
public DateTime? StartDate { get; set; }
/// <summary>
/// 备 注:开始时间
/// 默认值:
///</summary>
public DateTime StartTime { get; set; }
/// <summary>
/// 备 注:结束日期
/// 默认值:
///</summary>
public DateTime? EndDate { get; set; }
/// <summary>
/// 备 注:结束时间
/// 默认值:
///</summary>
public DateTime EndTime { get; set; }
/// <summary>
/// 备 注:任务指标类型-1班级2通用 班级时classes_id不为空通用时执行人id不为空
/// 默认值:
///</summary>
public int TaskIndexType { get; set; }
/// <summary>
/// 备 注:是否是布置任务。0否默认1是
/// 默认值:
///</summary>
public int? IsSuperiorTask { get; set; }
/// <summary>
/// 备 注:任务执行人id
/// </summary>
public long? TaskUserId { get; set; }
/// <summary>
/// 备 注:创建人id
/// 默认值:
///</summary>
public long CreaterUid { get; set; }
}
}

View File

@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.ClassTask
{
/// <summary>
/// 首页班级任务清单列表
/// </summary>
public class Index_ClassesTaskCheckList
{
/// <summary>
/// 任务类型枚举
/// </summary>
public long Task_Type_Enum { get; set; } = 0;
/// <summary>
/// 任务类型枚举-名称
/// </summary>
public string Task_Type_Name { get; set; }
/// <summary>
/// 已创建任务数量
/// </summary>
public int CreateTaskCount { get; set; } = 0;
/// <summary>
/// 已完成任务数量
/// </summary>
public int OkTaskCount { get; set; } = 0;
/// <summary>
/// 应完成任务数量
/// </summary>
public int ShouldTaskCount { get; set; } = 0;
}
}

View File

@ -0,0 +1,35 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.ClassTask
{
/// <summary>
/// 通用首页任务清单用户信息
/// </summary>
public class Index_ClassesTaskCheckList_User
{
/// <summary>
/// 任务类型枚举
/// </summary>
public long Task_Type_Enum { get; set; } = 0;
/// <summary>
/// 任务类型枚举-名称
/// </summary>
public string Task_Type_Name { get; set; }
/// <summary>
/// 已创建任务数量
/// </summary>
public int CreateTaskCount { get; set; } = 0;
/// <summary>
/// 已完成任务数量
/// </summary>
public int OkTaskCount { get; set; } = 0;
/// <summary>
/// 应完成任务数量
/// </summary>
public int ShouldTaskCount { get; set; } = 0;
}
}

View File

@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.ClassTask
{
public class TaskLoginfoResult
{
/// <summary>
/// 任务id
/// </summary>
public long TaskId { get; set; }
/// <summary>
/// 备 注:子任务id
/// 默认值:
///</summary>
public long SunTaskId { get; set; }
/// <summary>
/// 备 注:操作日期
/// 默认值:
///</summary>
public DateTime AddDate { get; set; }
/// <summary>
/// 备 注:操作类型。1新增2推进3完成任务
/// 默认值:
///</summary>
public int LogType { get; set; }
/// <summary>
/// 当天操作记录数量
/// </summary>
public int LogCount { get; set; }
}
}

View File

@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
namespace LearningOfficer.OA.Common.Dtos.ClassTask
{
public class Task_checklistRequest
{
/// <summary>
/// 新增为null编辑时传Id
/// </summary>
public long? Id { get; set; }
/// <summary>
/// 备 注:任务类型id
/// 默认值:
///</summary>
public long Task_type_enum { get; set; }
/// <summary>
/// 备 注:任务指标数
/// 默认值:
///</summary>
public int Target_number { get; set; }
/// <summary>
/// 备 注:班级/通用任务类型 1班级2通用
/// 默认值:
///</summary>
public int Task_type { get; set; }
}
}

View File

@ -0,0 +1,47 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.ClassTask
{
public class Teacher_behavior_questionRequest
{
/// <summary>
/// 观察记录id
/// </summary>
public long TBId { get; set; }
/// <summary>
/// 预习安排问题参数id多个用英文逗号分割
/// </summary>
public string? PreviewId { get; set; }
/// <summary>
/// 预习安排-预习方式问题参数id多个用英文逗号分割
/// </summary>
public string? PreviewTypeId { get; set; }
/// <summary>
/// 预习安排-检查方式: 1课前检查2课间检查3全面检查4未检查
/// </summary>
public int? Inspect_type_enum { get; set; }
/// <summary>
/// 预习安排-预习效果参数id
/// </summary>
public int? Preview_result_enum { get; set; }
/// <summary>
/// 备 注:课堂配合参数id多个用英文逗号分割
/// 默认值:
///</summary>
public string? Cooperation_id { get; set; }
/// <summary>
/// 备 注:课堂配合-巡视频率1好2中3低
/// 默认值:
///</summary>
public int? Cooperation_inspection_enum { get; set; }
/// <summary>
/// 备 注:课后观察参数id多个用英文逗号分割
/// 默认值:
///</summary>
public string? After_class_id { get; set; }
}
}

View File

@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.ClassTask
{
/// <summary>
/// 工作完成情况
/// </summary>
public class WorkCompletionResult
{
/// <summary>
/// 用户id
/// </summary>
public long UserId { get; set; }
/// <summary>
/// 所属月份
/// </summary>
public string WorkDate { get; set; }
/// <summary>
/// 完成率
/// </summary>
public double CompletionRate { get; set; }
/// <summary>
/// 任务完成情况列表
/// </summary>
public List<CheckListTaskTypeResult> TaskCompletionInfos { get; set; }
}
}

View File

@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UserCenter.Model.Enum;
namespace LearningOfficer.OA.Common.Dtos.ClassTeacher
{
/// <summary>
/// 班级教师添加或更新数据传输对象
/// </summary>
public class ClassTeacherAddOrUpdateDto
{
/// <summary>
/// 新增时不需要传Id更新时需要传Id
/// </summary>
public long Id { get; set; }
public long ClassId { get; set; }
public string TeacherName { get; set; }
/// <summary>
/// 0=班主任,>1=科任教师
/// </summary>
public int SubId { get; set; }
}
}

View File

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.ClassTeacher
{
public class ClassTeacherRequest
{
/// <summary>
/// 班级Id
/// </summary>
public long ClassId { get; set; }
/// <summary>
/// 教师名称
/// </summary>
public string TeacherName { get; set; } = null!;
/// <summary>
/// 科目Id0时为班主任此id从班级里面的科目读取
/// </summary>
public long SubId { get; set; } = 0;
}
}

View File

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.ClassTeacher
{
/// <summary>
/// 工作台-班级教师
/// </summary>
public class ClassTeacherResult
{
/// <summary>
/// 教师id
/// </summary>
public long TeacherId { get; set; }
/// <summary>
/// 教师名称
/// </summary>
public string TeacherName { get; set; } = null!;
/// <summary>
/// 科目Id
/// </summary>
public long SubId { get; set; } = 0;
/// <summary>
/// 科目名称
/// </summary>
public string SubName { get; set; } = null!;
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Classes
{
public class AddOrUpdateLearningOfficeDto
{
public long UserId { get; set; }
public long ClassesId { get; set; }
public long SchoolId { get; set; }
}
}

View File

@ -0,0 +1,75 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LearningOfficer.OA.Common.Enums;
using UserCenter.Model.Enum;
namespace LearningOfficer.OA.Common.Dtos.Classes
{
public class ClassDataListResult
{
public long Id { get; set; }
/// <summary>
/// 备 注:名称
/// 默认值:
///</summary>
public string ClassName { get; set; } = null!;
/// <summary>
/// 备 注:学校编号
/// 默认值:
///</summary>
public long SchoolId { get; set; }
/// <summary>
/// 学校名称
/// </summary>
public string SchoolName { get; set; }
/// <summary>
/// 备 注:年级
/// 默认值:
///</summary>
public string GradeLevel { get; set; } = null!;
/// <summary>
/// 备 注:所属届
/// 默认值:
///</summary>
public int GraduationYear { get; set; }
/// <summary>
/// 备 注:添加时间
/// 默认值:
///</summary>
public DateTime CreateTime { get; set; } = DateTime.Now;
/// <summary>
/// 备 注:创建者部门Id
/// 默认值:
///</summary>
public long? CreatePositionId { get; set; } = 0;
/// <summary>
/// 备 注:删除状态
/// 默认值:
///</summary>
public bool DeleteState { get; set; }
/// <summary>
/// 备 注:班级类型
/// 默认值:
///</summary>
public ClassTypeEnum Type { get; set; } = ClassTypeEnum.;
/// <summary>
/// 备 注:教学层级 1普通本科 2重点本科 默认0未设置
/// 默认值:
///</summary>
public Enums.TeachingLevelEnum TeachingLevel { get; set; }
}
}

View File

@ -0,0 +1,66 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Classes
{
public class ClassDetailResult
{
public long Id { get; set; }
/// <summary>
/// 班级名称
/// </summary>
public string Name { get; set; } = null!;
/// <summary>
/// 备 注:年级
/// 默认值:
///</summary>
public string GradeLevel { get; set; }
/// <summary>
/// 备 注:学生人数
/// 默认值:
///</summary>
public int StudentCount { get; set; }
/// <summary>
/// 备 注:所属届
/// 默认值:
///</summary>
public int GraduationYear { get; set; }
/// <summary>
/// 学校ID
/// </summary>
public long SchoolId { get; set; }
/// <summary>
/// 学校名称
/// </summary>
public string SchoolName { get; set; }
/// <summary>
/// 选修课指标1
/// </summary>
public int? Elective1 { get; set; }
/// <summary>
/// 选修课指标1名称
/// </summary>
public string? Elective1Name { get; set; }
/// <summary>
/// 选修课指标2
/// </summary>
public int? Elective2 { get; set; }
/// <summary>
/// 选修课指标2名称
/// </summary>
public string? Elective2Name { get; set; }
/// <summary>
/// 选修课指标3
/// </summary>
public int? Elective3 { get; set; }
/// <summary>
/// 选修课指标3名称
/// </summary>
public string? Elective3Name { get; set; }
}
}

View File

@ -0,0 +1,113 @@
using LearningOfficer.OA.Common.Enums;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using UserCenter.Model.Common;
namespace LearningOfficer.OA.Common.Dtos.Classes
{
public class ClassAddDto
{
/// <summary>
/// 备 注:名称
/// 默认值:
///</summary>
public string ClassName { get; set; } = null!;
/// <summary>
/// 备 注:学校id
/// 默认值:
///</summary>
public long SchoolId { get; set; }
///// <summary>
///// 备 注:年级
///// 默认值:
/////</summary>
//public string Grade { get; set; } = null!;
/// <summary>
/// 备 注:届
/// 默认值:
///</summary>
public int GraduationYear { get; set; }
/// <summary>
/// 备 注:学段: 初、高
/// 默认值:
///</summary>
public string GradeLevel { get; set; } = null!;
/// <summary>
/// 备 注:教学层级 1普通本科 2重点本科
/// 默认值:
///</summary>
public TeachingLevelEnum TeachingLevel { get; set; }
///// <summary>
///// 获取年级信息
///// </summary>
//[JsonIgnore]
//public GradeModel GradeInfo
//{
// get
// {
// return GradeHelper.GetStudentGradeBaseByGrade(Grade);
// }
//}
}
public class ClassesUpdateDto
{
/// <summary>
/// 备 注:班级Id
/// 默认值:
///</summary>
public long Id { get; set; }
/// <summary>
/// 备 注:名称
/// 默认值:
///</summary>
public string ClassName { get; set; } = null!;
/// <summary>
/// 备 注:届
/// 默认值:
///</summary>
public int GraduationYear { get; set; }
/// <summary>
/// 备 注:学段: 初、高
/// 默认值:
///</summary>
public string GradeLevel { get; set; } = null!;
///// <summary>
///// 备 注:年级
///// 默认值:
/////</summary>
//public string Grade { get; set; } = null!;
///// <summary>
///// 获取年级信息
///// </summary>
//[JsonIgnore]
//public GradeModel GradeInfo
//{
// get
// {
// return GradeHelper.GetStudentGradeBaseByGrade(Grade);
// }
//}
public TeachingLevelEnum TeachingLevel { get; set; }
}
}

View File

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Classes
{
public class ClassStudentViewDto
{
public long Id { get; set; }
public string RealName { get; set; }
}
public class ClassStudentUpdateDto
{
public long Id { get; set; }
public string RealName { get; set; }
}
public class ClassStudentAddDto
{
public string RealName { get; set; }
}
}

View File

@ -0,0 +1,16 @@
using LearningOfficer.OA.Common.Request;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Classes
{
public class ClassStudentSearchDto : PageRequest
{
public long ClassesId { get; set; }
public string? StudentName { get; set; }
}
}

View File

@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Classes
{
public class ClassesAndFollowResult
{
public long Id { get; set; }
/// <summary>
/// 班级id
/// </summary>
public string Name { get; set; } = null!;
/// <summary>
/// 备 注:年级
/// 默认值:
///</summary>
public string GradeLevel { get; set; }
/// <summary>
/// 备 注:所属届
/// 默认值:
///</summary>
public int GraduationYear { get; set; }
/// <summary>
/// 学习官名称
/// </summary>
public string FollowName { get; set; } = null!;
/// <summary>
/// 学习官id
/// </summary>
public long FollowId { get; set; }
}
}

View File

@ -0,0 +1,67 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Classes
{
public class ClassesResult
{
public long Id { get; set; }
/// <summary>
/// 班级名称
/// </summary>
public string Name { get; set; } = null!;
/// <summary>
/// 备 注:年级
/// 默认值:
///</summary>
public string GradeLevel { get; set; }
/// <summary>
/// 备 注:所属届
/// 默认值:
///</summary>
public int GraduationYear { get; set; }
/// <summary>
/// 备 注:学校id
/// 默认值:
///</summary>
public long SchoolId { get; set; }
/// <summary>
/// 学校名称
/// </summary>
public string SchoolName
{
get; set;
}
}
/// <summary>
/// 备 注:班级信息返回实体
/// </summary>
public class ClassesInfoResult
{
/// <summary>
/// 备 注:班级id(班级任务)
/// 默认值:
///</summary>
public long? ClassesId { get; set; }
/// <summary>
/// 备 注:班级名称
/// </summary>
public string ClassesName { get; set; } = null!;
/// <summary>
/// 备 注:年级
/// 默认值:
///</summary>
public string? GradeLevel { get; set; }
/// <summary>
/// 备 注:所属届
/// 默认值:
///</summary>
public int? GraduationYear { get; set; }
}
}

View File

@ -0,0 +1,38 @@
using LearningOfficer.OA.Common.Enums;
using LearningOfficer.OA.Common.Request;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Classes
{
public class ClassesSearchDto : PageRequest
{
/// <summary>
/// 学校id
/// </summary>
public long SchoolId { get; set; }
/// <summary>
/// 班级名称
/// </summary>
public string? ClassName { get; set; }
/// <summary>
/// 班级层次
/// </summary>
public TeachingLevelEnum? TeachingLevel { get; set; }
/// <summary>
/// 年级
/// </summary>
public string GradeLevel { get; set; }
/// <summary>
/// 毕业届
/// </summary>
public int GradeYear { get; set; }
}
}

View File

@ -0,0 +1,83 @@
using LearningOfficer.OA.Common.Enums;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UserCenter.Model.Common;
namespace LearningOfficer.OA.Common.Dtos.Classes
{
public class ClassesViewDto
{
public long Id { get; set; }
/// <summary>
/// 备 注:名称
/// 默认值:
///</summary>
public string ClassName { get; set; } = null!;
/// <summary>
/// 备 注:年级
/// 默认值:
///</summary>
public string GradeLevel { get; set; } = null!;
/// <summary>
/// 备 注:所属届
/// 默认值:
///</summary>
public int GraduationYear { get; set; }
/// <summary>
/// 学校Id
/// </summary>
public long SchoolId { get; set; }
/// <summary>
/// 学校名称
/// </summary>
public string SchoolName { get; set; }
/// <summary>
/// 教学层级 1普通本科 2重点本科
/// </summary>
public TeachingLevelEnum TeachingLevel { get; set; }
/// <summary>
/// 学习官组长Id
/// </summary>
public long LearningOfficeLeaderId { get; set; }
/// <summary>
/// 学习官组长名称
/// </summary>
public string LearningOfficeLeaderName { get; set; }
/// <summary>
/// 学习官Id
/// </summary>
public long LearningOfficeId { get; set; }
/// <summary>
/// 学习官名称
/// </summary>
public string LearningOfficeName { get; set; }
/// <summary>
/// 当前所属年级
/// </summary>
public string GradeString
{
get
{
return GradeHelper.GetGrade(GradeLevel, GraduationYear);
}
}
}
}

View File

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UserCenter.Model.Common;
namespace LearningOfficer.OA.Common.Dtos.Classes
{
public class SchoolGradeModel : GradeModel
{
/// <summary>
/// 年级显示名称
/// </summary>
public string GradeDisplayName
{
get
{
return GradeHelper.GetGrade(GradeLevel, GradeYear);
}
}
}
}

View File

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Classes
{
public class TransferClassRequest
{
/// <summary>
/// 学生id
/// </summary>
public long UserId { get; set; }
/// <summary>
/// 原班级id
/// </summary>
public long OldClassId { get; set; }
/// <summary>
/// 班级id(目标班级id)
/// </summary>
public long ToClassId { get; set; }
}
}

View File

@ -0,0 +1,30 @@
using LearningOfficer.OA.Common.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Classes
{
/// <summary>
/// 未绑定的班级搜索参数
/// </summary>
public class UnboundManageClassSearchDto
{
/// <summary>
/// 学校id
/// </summary>
public long SchoolId { get; set; }
/// <summary>
/// 年级
/// </summary>
public string GradeLevel { get; set; }
/// <summary>
/// 毕业届
/// </summary>
public int GradeYear { get; set; }
}
}

View File

@ -0,0 +1,59 @@
using LearningOfficer.OA.Common.Dtos.School;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.CloudSchool
{
public class CloudSchoolAddDto
{
/// <summary>
/// 备 注:云校名称
/// 默认值:
///</summary>
public string Name { get; set; } = null!;
/// <summary>
/// 备 注:启用状态
/// 默认值:
///</summary>
public bool Enable { get; set; }
///// <summary>
///// 学校集合
///// </summary>
//public List<long> SchoolIds { get; set; }
}
public class CloudSchoolUpdateDto : CloudSchoolAddDto
{
public long Id { get; set; }
}
public class CloudSchoolViewDto
{
public long Id { get; set; }
/// <summary>
/// 备 注:云校名称
/// 默认值:
///</summary>
public string Name { get; set; } = null!;
/// <summary>
/// 备 注:启用状态
/// 默认值:
///</summary>
public bool Enable { get; set; }
/// <summary>
/// 关联学习官部长名称
/// </summary>
public string MinisterName { get; set; }
public List<SchoolViewDto> Schools { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.CloudSchool
{
public class CloudSchoolResult
{
/// <summary>
/// 云校名称
/// </summary>
public string CloudName { get; set; }
/// <summary>
/// 云校ID
/// </summary>
public long CloudId { get; set; }
}
}

View File

@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Comment
{
public class CommentInfoRequest
{
/// <summary>
/// 备 注:所属类型1工作任务、2日报、3周报、4月报
/// 默认值:
///</summary>
public int ComType { get; set; }
/// <summary>
/// 备 注:任务/总结 id
/// 默认值:
///</summary>
public long SourceId { get; set; }
/// <summary>
/// 备 注:评论内容
/// 默认值:
///</summary>
public string ComContent { get; set; } = null!;
/// <summary>
/// 备 注:父级id子评论默认0为一级评论回复的评论则传对应评论id
/// 默认值:
///</summary>
public long PId { get; set; }
/// <summary>
/// 备 注:根id一级为0一级下面的所有评论均传第一级评论的id
/// 默认值:
///</summary>
public long RootId { get; set; }
}
}

View File

@ -0,0 +1,86 @@
using LearningOfficer.OA.Common.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Comment
{
public class CommentInfoResult
{
public long Id { get; set; }
/// <summary>
/// 备 注:所属类型1工作任务、2日报、3周报、4月报
/// 默认值:
///</summary>
public int ComType { get; set; }
/// <summary>
/// 备 注:任务/总结 id
/// 默认值:
///</summary>
public long SourceId { get; set; }
/// <summary>
/// 备 注:评论人姓名
/// 默认值:
///</summary>
public string AddUsername { get; set; } = null!;
/// <summary>
/// 备 注:评论人
/// 默认值:
///</summary>
public long AddUserid { get; set; }
/// <summary>
/// 备 注:评论时间
/// 默认值:
///</summary>
public DateTime AddTime { get; set; }
/// <summary>
/// 备 注:评论内容
/// 默认值:
///</summary>
public string ComContent { get; set; } = null!;
/// <summary>
/// 备 注:父级id子评论默认0为一级评论
/// 默认值:
///</summary>
public long PId { get; set; }
/// <summary>
/// 备 注:根id0
/// 默认值:
///</summary>
public long RootId { get; set; }
/// <summary>
/// 根下评论数量
/// </summary>
public int ChildrenCount { get; set; } = 0;
/// <summary>
/// 评论人头像
/// </summary>
public string? HeadImage { get; set; }
/// <summary>
/// 评论人角色枚举 1000总部长 1001部长 1002组长 1003学习官
/// </summary>
public SysRoleEnum RoleEnum { get; set; }
/// <summary>
/// 回复人名称
/// </summary>
public string ReplyUserName { get; set; }
}
}

View File

@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Curriculum
{
public class CurriculumHeadtimeRequest
{
/// <summary>
/// 备 注:第几节
/// 默认值:
///</summary>
public int WhichSection { get; set; }
/// <summary>
/// 周类型0普通课表1单周2双周
/// </summary>
public int WeekType { get; set; }
/// <summary>
/// 备 注:开始时间
/// 默认值:
///</summary>
public DateTime StartTime { get; set; }
/// <summary>
/// 备 注:结束时间
/// 默认值:
///</summary>
public DateTime EndTime { get; set; }
/// <summary>
/// 备 注:班级id
/// 默认值:
///</summary>
public long Classid { get; set; }
}
}

View File

@ -0,0 +1,47 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Curriculum
{
public class CurriculumHeadtimeResult
{
public long Id { get; set; }
/// <summary>
/// 备 注:第几节
/// 默认值:
///</summary>
public int WhichSection { get; set; }
/// <summary>
/// 周类型0普通课表1单周2双周
/// </summary>
public int WeekType { get; set; }
/// <summary>
/// 备 注:开始时间
/// 默认值:
///</summary>
public DateTime StartTime { get; set; }
/// <summary>
/// 备 注:结束时间
/// 默认值:
///</summary>
public DateTime EndTime { get; set; }
/// <summary>
/// 备 注:班级id
/// 默认值:
///</summary>
public long Classid { get; set; }
}
}

View File

@ -0,0 +1,113 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Curriculum
{
public class CurriculumInfoDetailRequest
{
/// <summary>
/// 修改传入Id新增传null或不传
/// </summary>
public long? Id { get; set; }
/// <summary>
/// 备 注:班级id
/// 默认值:
///</summary>
public long ClassId { get; set; }
/// <summary>
/// 备 注:周几(1-7对应周一到周日)
/// 默认值:
///</summary>
public int WeekCount { get; set; }
/// <summary>
/// 备 注:第几节
/// 默认值:
///</summary>
public int SectionCount { get; set; }
/// <summary>
/// 备 注:开始时间
/// 默认值:
///</summary>
public DateTime StartTime { get; set; }
/// <summary>
/// 备 注:结束时间
/// 默认值:
///</summary>
public DateTime EndTime { get; set; }
/// <summary>
/// 备 注:该班级科目教师表id
/// 默认值:
///</summary>
public long SubTeacherId { get; set; }
/// <summary>
/// 备 注:模板id
/// 默认值:
///</summary>
public long ModelId { get; set; }
}
public class UpdateCurriculumInfoDetail
{
/// <summary>
/// 生效模式1马上生效2下周一生效
/// </summary>
public int EffectiveMode { get; set; }
///// <summary>
///// 要修改的明细
///// </summary>
//public List<CurriculumInfoDetailInfo>? Details { get; set; }
/// <summary>
/// 要添加的明细
/// </summary>
public List<CurriculumInfoDetailRequest>? AddDetails { get; set; }
///// <summary>
/////要删除的id集合可空
///// </summary>
//public List<long>? DeleteIds { get; set; }
}
public class CurriculumInfoDetailInfo
{
/// <summary>
/// 修改传入Id新增传null或不传
/// </summary>
public long? Id { get; set; }
/// <summary>
/// 备 注:班级id
/// 默认值:
///</summary>
public long ClassId { get; set; }
/// <summary>
/// 备 注:模板id
/// 默认值:
///</summary>
public long ModelId { get; set; }
/// <summary>
/// 备 注:该班级科目教师表id
/// 默认值:
///</summary>
public long SubTeacherId { get; set; }
}
}

View File

@ -0,0 +1,97 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Curriculum
{
/// <summary>
/// 课程模板的课程详情
/// </summary>
public class CurriculumInfoDetailResult
{
public long Id { get; set; }
/// <summary>
/// 备 注:班级id
/// 默认值:
///</summary>
public long ClassId { get; set; }
/// <summary>
/// 备 注:周几(1-7对应周一到周日)
/// 默认值:
///</summary>
public int WeekCount { get; set; }
/// <summary>
/// 备 注:第几节
/// 默认值:
///</summary>
public int SectionCount { get; set; }
/// <summary>
/// 备 注:开始时间
/// 默认值:
///</summary>
public DateTime StartTime { get; set; }
/// <summary>
/// 备 注:结束时间
/// 默认值:
///</summary>
public DateTime EndTime { get; set; }
/// <summary>
/// 备 注:该班级科目教师表id
/// 默认值:
///</summary>
public long SubTeacherId { get; set; }
/// <summary>
/// 备 注:科目id
/// </summary>
public long? SubjectId { get; set; }
/// <summary>
/// 备 注:科目名称
/// </summary>
public string SubjectName { get; set; }
/// <summary>
/// 备 注:教师id
/// </summary>
public long? TeacherId { get; set; }
/// <summary>
/// 备 注:教师名称
/// </summary>
public string? TeacherName { get; set; }
/// <summary>
/// 备 注:批次id
/// 默认值:
///</summary>
public long BatchId { get; set; }
/// <summary>
/// 备 注:模板id
/// 默认值:
///</summary>
public long ModelId { get; set; }
/// <summary>
/// 备 注:周类型0普通课表-不分单双周1单周2双周
/// 默认值:
///</summary>
public int WeekType { get; set; }
}
}

View File

@ -0,0 +1,136 @@
using System.ComponentModel.DataAnnotations;
namespace LearningOfficer.OA.Common.Dtos.Curriculum
{
/// <summary>
/// 创建 CurriculumModel 的参数模型。
/// </summary>
public class CurriculumModelCreateDto
{
/// <summary>
/// 班级标识。
/// </summary>
public long ClassId { get; set; }
/// <summary>
/// 模板类型1单周-普通2单双周
/// </summary>
public int ModelType { get; set; }
/// <summary>
/// 模板周类型0普通1单周2双周
/// </summary>
public int WeekType { get; set; }
/// <summary>
/// 一共几节课默认0
/// </summary>
public int SectionAllCount { get; set; }
/// <summary>
/// 课程模板通用课时信息。
/// </summary>
public List<CurriculumHeadtimeRequest> curriculumHeadtimeRequest { get; set; }
/// <summary>
/// 课程模板特殊周安排。
/// </summary>
public List<CurriculumSpecialWeekRequest> curriculumSpecialWeekRequests { get; set; }
/// <summary>
/// 课程模板通用信息。
/// </summary>
public List<CurriculumModelInfoRequest> curriculumModelInfoCreateDtos { get; set; }
/// <summary>
/// 课程模板特殊课时间安排。
/// </summary>
public List<CurriculumModelSpecialRequest> curriculumModelSpecialCreateDtos { get; set; }
}
/// <summary>
/// 更新 CurriculumModel 的参数模型。
/// </summary>
public class CurriculumModelUpdateDto : CurriculumModelCreateDto
{
public long Id { get; set; }
}
/// <summary>
/// 课程模板课程信息。
/// </summary>
public class CurriculumModelInfoRequest
{
/// <summary>
/// 备 注:周几(1-7对应周一到周日)
/// 默认值:
///</summary>
public int WeekCount { get; set; }
/// <summary>
/// 备 注:第几节
/// 默认值:
///</summary>
public int SectionCount { get; set; }
/// <summary>
/// 备 注:通用开始时间
/// 默认值:
///</summary>
public DateTime StartTime { get; set; }
/// <summary>
/// 备 注:通用结束时间
/// 默认值:
///</summary>
public DateTime EndTime { get; set; }
/// <summary>
/// 备 注:模板周类型0普通课表-不分单双周1单周2双周
/// 默认值:
///</summary>
public int WeekType { get; set; }
}
/// <summary>
/// 课程模板特殊课时间安排。
/// </summary>
public class CurriculumModelSpecialRequest
{
/// <summary>
/// 备 注:周几
/// 默认值:
///</summary>
public int WeekCount { get; set; }
/// <summary>
/// 备 注:第几节
/// 默认值:
///</summary>
public int SectionCount { get; set; }
/// <summary>
/// 备 注:开始时间
/// 默认值:
///</summary>
public DateTime StartTime { get; set; }
/// <summary>
/// 备 注:结束时间
/// 默认值:
///</summary>
public DateTime EndTime { get; set; }
/// <summary>
/// 备 注:模板周类型0普通课表-不分单双周1单周2双周
/// 默认值:
///</summary>
public int WeekType { get; set; }
}
}

View File

@ -0,0 +1,200 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Curriculum
{
public class CurriculumModelDetailResult
{
/// <summary>
/// 课程模板基本信息
/// </summary>
public CurriculumModelResult curriculumModelResult { get; set; }
/// <summary>
/// 模板课配置信息
/// </summary>
public List<CurriculumModelInfoResult> curriculumModelInfoResults { get; set; }
/// <summary>
/// 模板课配置信息(特殊课时)
/// </summary>
public List<CurriculumModelInfoResult> curriculumModelSpecialResults { get; set; }
}
public class ClassCurriculumModelListResult
{
/// <summary>
/// 备 注:学校编号
/// 默认值:
///</summary>
public long SchoolId { get; set; }
/// <summary>
/// 学校名称
/// </summary>
public string SchoolName { get; set; }
/// <summary>
/// 备 注:班级id
/// 默认值:
///</summary>
public long ClassId { get; set; }
/// <summary>
/// 备 注:班级名称
/// </summary>
public string ClassName { get; set; }
/// <summary>
/// 备 注:届
/// 默认值:
///</summary>
public int GraduationYear { get; set; }
/// <summary>
/// 备 注:学段: 初、高
/// 默认值:
///</summary>
public string GradeLevel { get; set; } = null!;
/// <summary>
/// 课程模板信息
/// </summary>
public List<CurriculumModelResult> curriculumModelResults { get; set; }
}
/// <summary>
/// 课程模板基本信息。
/// </summary>
public class CurriculumModelResult
{
public long Id { get; set; }
/// <summary>
/// 备 注:模板类型1:单周普通周2单双周
/// 默认值:
///</summary>
public int ModelType { get; set; }
/// <summary>
/// 备 注:班级id
/// 默认值:
///</summary>
public long ClassId { get; set; }
/// <summary>
/// 备 注:班级名称
/// </summary>
public string ClassName { get; set; }
/// <summary>
/// 备 注:届
/// 默认值:
///</summary>
public int GraduationYear { get; set; }
/// <summary>
/// 备 注:学段: 初、高
/// 默认值:
///</summary>
public string GradeLevel { get; set; } = null!;
/// <summary>
/// 备 注:模板周类型0普通课表-不分单双周1单周2双周
/// ModelType=1时该字段值为0ModelType=2时该字段值为1或2
/// 默认值:
///</summary>
public int WeekType { get; set; }
/// <summary>
/// 备 注:批次id
/// 默认值:
///</summary>
public long BatchId { get; set; }
/// <summary>
/// 备 注:添加时间
/// 默认值:
///</summary>
public DateTime Addtime { get; set; }
/// <summary>
/// 一共几节课默认0
/// </summary>
public int SectionAllCount { get; set; }
/// <summary>
/// 备 注:定位周开始时间
/// 默认值:
///</summary>
public DateTime? PositionWeekStart { get; set; }
/// <summary>
/// 备 注:定位周结束时间
/// 默认值:
///</summary>
public DateTime? PostionWeekEnd { get; set; }
/// <summary>
/// 备 注:定位周类型model_type为2时有效1单周2双周
/// 默认值:
///</summary>
public int? PostionWeekType { get; set; }
}
/// <summary>
/// 模板课配置信息
/// </summary>
public class CurriculumModelInfoResult
{
public long Id { get; set; }
/// <summary>
/// 备 注:模板id
/// 默认值:
///</summary>
public long ModelId { get; set; }
/// <summary>
/// 备 注:周几(1-7对应周一到周日)
/// 默认值:
///</summary>
public int WeekCount { get; set; }
/// <summary>
/// 备 注:第几节
/// 默认值:
///</summary>
public int SectionCount { get; set; }
/// <summary>
/// 备 注:通用开始时间
/// 默认值:
///</summary>
public DateTime StartTime { get; set; }
/// <summary>
/// 备 注:通用结束时间
/// 默认值:
///</summary>
public DateTime EndTime { get; set; }
/// <summary>
/// 备 注:模板周类型0普通课表-不分单双周1单周2双周
/// 默认值:
///</summary>
public int WeekType { get; set; }
/// <summary>
/// 备 注:0正常 1删除
/// 默认值:
///</summary>
public int Isdel { get; set; }
}
}

View File

@ -0,0 +1,57 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Curriculum
{
/// <summary>
/// 课程定位结果。
/// </summary>
public class CurriculumPostionResult
{
public long Id { get; set; }
/// <summary>
/// 备 注:班级id
/// 默认值:
///</summary>
public long ClassId { get; set; }
/// <summary>
/// 备 注:定位周开始时间
/// 默认值:
///</summary>
public DateTime? PositionWeekStart { get; set; }
/// <summary>
/// 备 注:定位周结束时间
/// 默认值:
///</summary>
public DateTime? PostionWeekEnd { get; set; }
/// <summary>
/// 备 注:定位周类型0普通-不区分单双周1单周2双周
/// 默认值:
///</summary>
public int PostionWeekType { get; set; }
/// <summary>
/// 备 注:添加时间
/// 默认值:
///</summary>
public DateTime Addtime { get; set; }
/// <summary>
/// 备 注:添加人id
/// 默认值:
///</summary>
public long Userid { get; set; }
}
}

View File

@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Curriculum
{
public class CurriculumSpecialWeekRequest
{
/// <summary>
/// 备 注:班级id
/// 默认值:
///</summary>
public long Classid { get; set; }
/// <summary>
/// 周类型0普通课表1单周2双周
/// </summary>
public int WeekType { get; set; }
/// <summary>
/// 备 注:周几
/// 默认值:
///</summary>
public int WeekCount { get; set; }
}
}

View File

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Curriculum
{
public class CurriculumSpecialWeekResult
{
public long Id { get; set; }
/// <summary>
/// 备 注:班级id
/// 默认值:
///</summary>
public long Classid { get; set; }
/// <summary>
/// 周类型0普通课表1单周2双周
/// </summary>
public int WeekType { get; set; }
/// <summary>
/// 备 注:周几
/// 默认值:
///</summary>
public int WeekCount { get; set; }
}
}

View File

@ -0,0 +1,93 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Curriculum
{
/// <summary>
/// 课程模板科目教师信息。
/// </summary>
public class CurriculumSubTeacherRequest
{
/// <summary>
/// 备 注:班级id
/// 默认值:
///</summary>
public long ClassId { get; set; }
/// <summary>
/// 备 注:科目id
/// 默认值:
///</summary>
public long SubId { get; set; }
/// <summary>
/// 备 注:科目名称
/// 默认值:
///</summary>
public string SubName { get; set; } = null!;
/// <summary>
/// 备 注:教师id
/// 默认值:
///</summary>
public long TeacherId { get; set; }
/// <summary>
/// 备 注:教师名称
/// 默认值:
///</summary>
public string TeacherName { get; set; } = null!;
}
/// <summary>
/// 修改课程模板科目教师信息。
/// </summary>
public class UpdateCurriculumSubTeacherRequest
{
/// <summary>
/// 备 注:修改传id新增不传
/// </summary>
public long? Id { get; set; }
/// <summary>
/// 备 注:班级id
/// 默认值:
///</summary>
public long ClassId { get; set; }
/// <summary>
/// 备 注:科目id
/// 默认值:
///</summary>
public long SubId { get; set; }
/// <summary>
/// 备 注:科目名称
/// 默认值:
///</summary>
public string SubName { get; set; } = null!;
/// <summary>
/// 备 注:教师id
/// 默认值:
///</summary>
public long TeacherId { get; set; }
/// <summary>
/// 备 注:教师名称
/// 默认值:
///</summary>
public string TeacherName { get; set; } = null!;
}
}

View File

@ -0,0 +1,46 @@
using System.ComponentModel.DataAnnotations;
namespace LearningOfficer.OA.Common.Dtos.Curriculum
{
/// <summary>
/// 课程科目教师结果模型。
/// </summary>
public class CurriculumSubTeacherResult
{
public long Id { get; set; }
/// <summary>
/// 备 注:班级id
/// 默认值:
///</summary>
public int ClassId { get; set; }
/// <summary>
/// 备 注:科目id
/// 默认值:
///</summary>
public long SubId { get; set; }
/// <summary>
/// 备 注:科目名称
/// 默认值:
///</summary>
public string SubName { get; set; } = null!;
/// <summary>
/// 备 注:教师id
/// 默认值:
///</summary>
public long TeacherId { get; set; }
/// <summary>
/// 备 注:教师名称
/// 默认值:
///</summary>
public string TeacherName { get; set; } = null!;
}
}

View File

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Curriculum
{
public class CurriculumTimeTableMobilResult
{
/// <summary>
/// 最大节数
/// </summary>
public int MaxSectionCount { get; set; }
/// <summary>
/// 日期列表
/// </summary>
public List<string> Dates { get; set; }
/// <summary>
/// 具体课表信息
/// </summary>
public List<CurriculumTimetableResult> TimetableList { get; set; }
}
}

View File

@ -0,0 +1,79 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Curriculum
{
public class MobileCurriculumTimeTableUpdateRequest
{
/// <summary>
/// 新增为null修改传入Id
/// </summary>
public long ClassCourseId { get; set; }
/// <summary>
///科目
/// </summary>
public int SubId { get; set; }
}
public class CurriculumTimeTableUpdateRequest
{
/// <summary>
/// 新增为null修改传入Id
/// </summary>
public long? Id { get; set; }
/// <summary>
/// 备 注:该班级科目教师表id选科目
/// 默认值:
///</summary>
public long SubTeacherId { get; set; }
/// <summary>
/// 备 注:班级id
/// 默认值:
///</summary>
public long ClassId { get; set; }
/// <summary>
/// 备 注:日期
/// 默认值:
///</summary>
public DateTime Date { get; set; }
/// <summary>
/// 备 注:开始时间
/// 默认值:
///</summary>
public DateTime StartTime { get; set; }
/// <summary>
/// 备 注:结束时间
/// 默认值:
///</summary>
public DateTime EndTime { get; set; }
/// <summary>
/// 备 注:周几(1-7对应周一到周日)
/// 默认值:
///</summary>
public int WeekCount { get; set; }
/// <summary>
/// 备 注:第几节
/// 默认值:
///</summary>
public int SectionCount { get; set; }
}
}

View File

@ -0,0 +1,125 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Curriculum
{
public class CurriculumTimetableAndHeadResponse
{
/// <summary>
/// 课表时间段信息
/// </summary>
public List<CurriculumHeadtimeResult> curriculumHeadtimeResults { get; set; }
/// <summary>
/// 特殊周几
/// </summary>
public List<CurriculumSpecialWeekResult> curriculumSpecialWeekResults { get; set; }
/// <summary>
/// 具体课表信息
/// </summary>
public List<CurriculumTimetableResult> TimetableList { get; set; }
}
/// <summary>
/// 课表信息
/// </summary>
public class CurriculumTimetableResult
{
public long Id { get; set; }
/// <summary>
/// 备 注:班级id
/// 默认值:
///</summary>
public long ClassId { get; set; }
/// <summary>
/// 备 注:班级名称
/// </summary>
public string ClassName { get; set; }
/// <summary>
/// 备 注:届
/// 默认值:
///</summary>
public int GraduationYear { get; set; }
/// <summary>
/// 备 注:学段: 初、高
/// 默认值:
///</summary>
public string GradeLevel { get; set; } = null!;
/// <summary>
/// 备 注:日期
/// 默认值:
///</summary>
public DateTime Date { get; set; }
/// <summary>
/// 备 注:开始时间
/// 默认值:
///</summary>
public DateTime StartTime { get; set; }
/// <summary>
/// 备 注:结束时间
/// 默认值:
///</summary>
public DateTime EndTime { get; set; }
/// <summary>
/// 备 注:该班级科目教师表id
/// 默认值:
///</summary>
public long SubTeacherId { get; set; }
/// <summary>
/// 备 注:科目id
/// </summary>
public long? SubjectId { get; set; }
/// <summary>
/// 备 注:科目名称
/// </summary>
public string SubjectName { get; set; }
/// <summary>
/// 备 注:教师id
/// </summary>
public long? TeacherId { get; set; }
/// <summary>
/// 备 注:教师名称
/// </summary>
public string? TeacherName { get; set; }
/// <summary>
/// 备 注:云学校教师id
/// </summary>
public long? CloudSchoolTeacherId { get; set; }
/// <summary>
/// 备 注:云学校教师名称
/// </summary>
public string? CloudSchoolTeacherName { get; set; }
/// <summary>
/// 备 注:周几(1-7对应周一到周日)
/// 默认值:
///</summary>
public int WeekCount { get; set; }
/// <summary>
/// 备 注:第几节
/// 默认值:
///</summary>
public int SectionCount { get; set; }
}
}

View File

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Curriculum
{
public class ThrerModelDetailResult
{
/// <summary>
/// 课表时间段信息
/// </summary>
public List<CurriculumHeadtimeResult> curriculumHeadtimeResults { get; set; }
/// <summary>
/// 特殊周几
/// </summary>
public List<CurriculumSpecialWeekResult> curriculumSpecialWeekResults { get; set; }
/// <summary>
/// 模板课程信息
/// </summary>
public List<CurriculumInfoDetailResult> curriculumInfoDetails { get; set; }
}
}

View File

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Curriculum
{
public class WeekInfoResult
{
/// <summary>
/// 开始日期
/// </summary>
public DateTime StartDate { get; set; }
/// <summary>
/// 结束日期
/// </summary>
public DateTime EndDate { get; set; }
/// <summary>
/// 周类型0普通课表-不分单双周1单周2双周
/// </summary>
public int WeekType { get; set; }
}
}

View File

@ -0,0 +1,76 @@
using LearningOfficer.OA.Common.Enums;
using MiniExcelLibs.Attributes;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.FeedBack
{
public class AdminExportVM
{
/// <summary>
/// 备 注:建议类型(字典表-枚举值)
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "feedback_type")]
public long FeedbackType { get; set; }
/// <summary>
/// 备 注:提议时间
/// 默认值:
///</summary>
[ExcelColumnName("提议时间")]
[ExcelColumnWidth(20)]
public DateTime AddTime { get; set; }
/// <summary>
/// 建议类型中文
/// </summary>
[ExcelColumnName("提议类型")]
[ExcelColumnWidth(20)]
public string FeedbackTypeName { get; set; } = null!;
/// <summary>
/// 备 注:现状描述
/// 默认值:
///</summary>
[ExcelColumnName("现状描述")]
[ExcelColumnWidth(60)]
public string Remark { get; set; } = null!;
/// <summary>
/// 备 注:优化方案
/// 默认值:
///</summary>
[ExcelColumnWidth(60)]
[ExcelColumnName("优化方案")]
public string? OptimizationPlan { get; set; }
/// <summary>
/// 云校名称
/// </summary>
[ExcelColumnName("所在云校")]
public string CloudSchoolName { get; set; }
/// <summary>
/// 所在学校
/// </summary>
[ExcelColumnName("所在学校")]
public string SchoolName { get; set; }
/// <summary>
/// 提议人联系电话
/// </summary>
//[ExcelColumnName("提议人联系电话")]
public string AddUserPhone { get; set; }
/// <summary>
/// 提议人姓名
/// </summary>
[ExcelColumnName("提议人姓名")]
[ExcelColumnWidth(20)]
public string AddUserName { get; set; }
/// <summary>
/// 备 注:状态默认0未确认、1已采纳、2不采纳、3重复建议
/// 默认值:
///</summary>
[ExcelColumnName("状态")]
[ExcelColumnWidth(20)]
public FeedBackInfoStatusEnum Status { get; set; }
}
}

View File

@ -0,0 +1,49 @@
using LearningOfficer.OA.Common.Enums;
using LearningOfficer.OA.Common.Request;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.FeedBack
{
/// <summary>
/// 管理端分页dto
/// </summary>
public class AdminQueryPageDto : PageRequest
{
/// <summary>
/// 备 注:建议类型 传0或null表示所有
/// 默认值:
///</summary>
public long? FeedbackType { get; set; }
/// <summary>
/// 备 注:状态 默认null表示所有
/// 默认值:
///</summary>
public FeedBackInfoStatusEnum? Status { get; set; }
/// <summary>
/// 开始时间 默认null 表示所有
/// </summary>
public DateTime? BeginTime { get; set; }
/// <summary>
/// 结束时间 默认null表示所有
/// </summary>
public DateTime? EndTime { get; set; }
/// <summary>
/// 云校Id 默认null表示所有
/// </summary>
public long? CloudSchoolId { get; set; }
/// <summary>
/// 学校Id 默认null表示所有
/// </summary>
public long? SchoolId { get; set; }
/// <summary>
/// 提议人
/// </summary>
public string? AddUserName { get; set; }
}
}

View File

@ -0,0 +1,98 @@
using LearningOfficer.OA.Common.Enums;
using Masuit.Tools.Systems;
using MiniExcelLibs.Attributes;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.FeedBack
{
public class AdminQueryPageVM
{
/// <summary>
/// 主键
/// </summary>
[SugarColumn(ColumnName = "Id")]
public long Id { get; set; }
/// <summary>
/// 备 注:建议类型(字典表-枚举值)
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "feedback_type")]
public long FeedbackType { get; set; }
/// <summary>
/// 备 注:用户id
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "add_userid")]
public long AddUserid { get; set; }
/// <summary>
/// 备 注:提议时间
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "add_time")]
public DateTime AddTime { get; set; }
/// <summary>
/// 建议类型中文
/// </summary>
public string FeedbackTypeName { get; set; } = null!;
/// <summary>
/// 备 注:最后操作时间(如修改状态需要修改本时间)
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "adopt_time")]
public DateTime AdoptTime { get; set; }
/// <summary>
/// 备 注:现状描述
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "remark")]
public string Remark { get; set; } = null!;
/// <summary>
/// 云校名称
/// </summary>
public string CloudSchoolName { get; set; }
/// <summary>
/// 所在学校
/// </summary>
public string SchoolName { get; set; }
/// <summary>
/// 提议人联系电话
/// </summary>
public string AddUserPhone { get; set; }
/// <summary>
/// 提议人姓名
/// </summary>
public string AddUserName { get; set; }
/// <summary>
/// 备 注:状态默认0未确认、1已采纳、2不采纳、3重复建议
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "status")]
public FeedBackInfoStatusEnum Status { get; set; }
/// <summary>
/// 获得积分
/// </summary>
[SugarColumn(ColumnName = "Earn_points")]
public int EarnPoints { get; set; } = 0;
/// <summary>
/// 采纳状态中文 示例:已被采纳
/// </summary>
[SugarColumn(IsIgnore = true)]
public string StatusName
{
get
{
return Status.GetEnumDescription().Description;
}
}
}
}

View File

@ -0,0 +1,28 @@
using LearningOfficer.OA.Common.Enums;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.FeedBack
{
/// <summary>
/// 处理
/// </summary>
public class BatchEditStatusDto
{
/// <summary>
/// 备 注:处理状态默认0未确认、1已采纳、2不采纳、3重复建议
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "status")]
public FeedBackInfoStatusEnum Status { get; set; }
/// <summary>
/// 处理的数据Id
/// </summary>
public List<long> Ids { get; set; } = null!;
}
}

View File

@ -0,0 +1,42 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.FeedBack
{
/// <summary>
/// 提交建议
/// </summary>
public class FeedBackInfoAddDto
{
/// <summary>
/// 备 注:建议类型(字典表-枚举值)
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "feedback_type")]
public long FeedbackType { get; set; }
/// <summary>
/// 备 注:现状描述
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "remark")]
public string Remark { get; set; } = null!;
/// <summary>
/// 备 注:优化方案
/// 默认值:
///</summary>
[SugarColumn(ColumnName = "optimization_plan")]
public string OptimizationPlan { get; set; } = null!;
/// <summary>
/// 附件ID
/// </summary>
public List<long>? FileIds { get; set; }
}
}

View File

@ -0,0 +1,97 @@
using LearningOfficer.OA.Common.Dtos.SysFile;
using LearningOfficer.OA.Common.Enums;
using Masuit.Tools.Systems;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.FeedBack
{
public class GetFeedBackInfoSingleVM
{
/// <summary>
///
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
/// <summary>
/// 备 注:建议类型(字典表-枚举值)
/// 默认值:
///</summary>
public long FeedbackType { get; set; }
/// <summary>
/// 备 注:用户id
/// 默认值:
///</summary>
public long AddUserid { get; set; }
/// <summary>
/// 备 注:提议时间
/// 默认值:
///</summary>
public DateTime AddTime { get; set; }
/// <summary>
/// 备 注:现状描述
/// 默认值:
///</summary>
public string Remark { get; set; } = null!;
/// <summary>
/// 备 注:优化方案
/// 默认值:
///</summary>
public string OptimizationPlan { get; set; } = null!;
/// <summary>
/// 备 注:状态默认0未确认、1已采纳、2不采纳、3重复建议
/// 默认值:
///</summary>
public FeedBackInfoStatusEnum Status { get; set; }
/// <summary>
/// 获得积分
/// </summary>
public int EarnPoints { get; set; } = 0;
/// <summary>
/// 建议类型中文
/// </summary>
public string FeedbackTypeName { get; set; } = null!;
/// <summary>
/// 采纳状态中文 示例:已被采纳
/// </summary>
[SugarColumn(IsIgnore = true)]
public string StatusName
{
get
{
return Status.GetEnumDescription().Description;
}
}
/// <summary>
/// 文件信息
/// </summary>
public List<SysFileViewDto> files { get; set; }
/// <summary>
/// 所在云校
/// </summary>
public string CloudSchoolName { get; set; }
/// <summary>
/// 所在学校
/// </summary>
public string SchoolName { get; set; }
/// <summary>
/// 提议人联系电话
/// </summary>
public string AddUserPhone { get; set; }
/// <summary>
/// 提议人
/// </summary>
public string AddUserName { get; set; }
}
}

View File

@ -0,0 +1,14 @@
using LearningOfficer.OA.Common.Request;
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.FeedBack.H5
{
public class H5QueryPageDto:PageRequest
{
}
}

View File

@ -0,0 +1,57 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.FeedBack.H5
{
/// <summary>
/// 本月金点子
/// </summary>
public class H5ThisMonthFeedBackVM
{
/// <summary>
///
/// </summary>
public long Id { get; set; }
/// <summary>
/// 姓名
/// </summary>
public string RealName { get; set; }
/// <summary>
/// 用户Id
/// </summary>
public long UserId { get; set; }
/// <summary>
/// 云校名称
/// </summary>
public string CloudSchoolName { get; set; }
/// <summary>
/// 云校ID
/// </summary>
public long CloundSchoolId { get; set; }
/// <summary>
/// 备 注:建议类型(字典表-枚举值)
/// 默认值:
///</summary>
public long FeedbackType { get; set; }
/// <summary>
/// 建议类型中文
/// </summary>
public string FeedbackTypeName { get; set; } = null!;
/// <summary>
/// 备 注:优化方案
/// 默认值:
///</summary>
public string OptimizationPlan { get; set; } = null!;
/// <summary>
/// 备 注:头像
/// 默认值:
///</summary>
public string HeadImage { get; set; } = "";
}
}

View File

@ -0,0 +1,42 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.FeedBack.H5
{
public class H5TopIdeasRankingVM
{
/// <summary>
/// 姓名
/// </summary>
public string RealName { get; set; }
/// <summary>
/// 备 注:头像
/// 默认值:
///</summary>
public string HeadImage { get; set; } = "";
/// <summary>
/// 用户Id
/// </summary>
public long UserId { get; set; }
/// <summary>
/// 云校名称
/// </summary>
public string CloudSchoolName { get; set; }
/// <summary>
/// 云校ID
/// </summary>
public long CloundSchoolId { get; set; }
/// <summary>
/// 被采纳建议条数
/// </summary>
public int Count { get; set; }
/// <summary>
/// 最后一条建议的提交时间
/// </summary>
public DateTime LastAddTime { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.FeedBack
{
public class PreviousOrNextDto
{
/// <summary>
/// 当前详细id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 1上一条 2下一条
/// </summary>
public int Mark { get; set; }
}
}

View File

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Financial
{
/// <summary>
/// 添加班级使用经费记录
/// </summary>
public class FinancialClassRequest
{
/// <summary>
/// 班级id
/// </summary>
public long Class_Id { get; set; }
/// <summary>
/// 用途
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 元
/// </summary>
public decimal Money { get; set; }
/// <summary>
/// 使用时间
/// </summary>
public DateTime FinancialTime { get; set; }
}
}

View File

@ -0,0 +1,66 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Financial
{
public class FinancialClassSumResult
{
/// <summary>
/// 经费标准信息
/// </summary>
public FinancialIndicatorsResult financialIndicatorsResult { get; set; }
/// <summary>
/// 累计金额
/// </summary>
public decimal SumMoney { get; set; }
/// <summary>
/// 使用经费
/// </summary>
public List<FinancialClassResult> financialClassResults { get; set; }
}
public class FinancialIndicatorsResult {
/// <summary>
/// 备 注:开始时间
/// 默认值:
///</summary>
public DateTime StartTime { get; set; }
/// <summary>
/// 备 注:结束时间
/// 默认值:
///</summary>
public DateTime EndTime { get; set; }
/// <summary>
/// 备 注:本时段经费金额
/// 默认值:
///</summary>
public decimal Money { get; set; }
}
public class FinancialClassResult
{
/// <summary>
/// 经费使用记录Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 备 注:使用时间
/// 默认值:
///</summary>
public DateTime FinancialTime { get; set; }
/// <summary>
/// 用途
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 消费费用(元)
/// </summary>
public decimal Money { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Financial
{
public class FinancialIndicatorsCreateDto
{
public DateTime StartTime { get; set; }
public DateTime EndTime { get; set; }
public decimal Money { get; set; }
}
public class FinancialIndicatorsUpdateDto: FinancialIndicatorsCreateDto
{
public long Id { get; set; }
}
}

View File

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Index
{
public class RedPoint
{
/// <summary>
/// 工作台待办数量
/// </summary>
public int WorkBenchNonCount { get; set; }
/// <summary>
/// 资料收集待提交数量
/// </summary>
public int DataCollectionNonSubCount { get; set; }
/// <summary>
/// 收到的布置工作数量
/// </summary>
public int SuperiorCount { get; set; }
}
}

View File

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.LoginAdmin
{
public class LoginAdminDto
{
public string Account { get; set; }
public string Pwd { get; set; }
}
/// <summary>
/// 管理员登录返回结果
/// </summary>
public class LoginAdminDtoResult
{
public string Token { get; set; }
public string Name { get; set; }
}
}

View File

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.LoginMobile
{
public class LoginCodeRequest
{
/// <summary>
/// 电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 验证码
/// </summary>
public string Code { get; set; }
/// <summary>
/// 登录类型 1:Android2Ios3扫码4H5
/// </summary>
public int loginType { get; set; } = 1;
}
}

View File

@ -0,0 +1,17 @@
namespace LearningOfficer.OA.Common.Dtos.LoginMobile
{
/// <summary>
/// 登录手机Dto
/// </summary>
public class LoginMobileDto
{
/// <summary>
/// 手机号
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 验证码
/// </summary>
public string Code { get; set; }
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.LoginMobile
{
public class LoginRequest
{
/// <summary>
/// 用户名
/// </summary>
public string username { get; set; }
/// <summary>
/// 密码
/// </summary>
public string Pwd { get; set; }
}
}

View File

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.LoginMobile
{
public class LoginResetPwdRequest
{
/// <summary>
/// 电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 验证码
/// </summary>
public string Code { get; set; }
/// <summary>
/// 新密码
/// </summary>
public string Password { get; set; }
}
}

View File

@ -0,0 +1,56 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.LoginMobile
{
public class MobileTokenInfo
{
/// <summary>
/// 用户Id
/// </summary>
public string UserId { get; set; }
/// <summary>
/// 用户类型1高中2初中
/// </summary>
public string UserType { get; set; }
/// <summary>
/// 用户名称
/// </summary>
public string UserName { get; set; }
/// <summary>
/// 角色枚举值
/// </summary>
public string RoleEnum { get; set; }
/// <summary>
/// 账号名称
/// </summary>
public string Account { get; set; }
/// <summary>
/// Jwt_id
/// </summary>
public string Jwt_id { get; set; }
/// <summary>
/// 1:Android2:Ios
/// </summary>
public string loginType { get; set; } = "1";
/// <summary>
/// 角色名称
/// </summary>
public string Role_Name { get; set; }
/// <summary>
/// 电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 学校
/// </summary>
public string School_Name { get; set; }
/// <summary>
/// 云校id
/// </summary>
public string Cloud_id { get; set; }
}
}

View File

@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.LoginMobile
{
/// <summary>
/// 修改密码
/// </summary>
public class MyInfoResetPwdRequest
{
/// <summary>
/// 用户id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 原密码
/// </summary>
public string Password { get; set; }
/// <summary>
/// 新密码
/// </summary>
public string New_password { get; set; }
}
public class MyUpdateNewPwdRequest
{
/// <summary>
/// 验证码
/// </summary>
public string Code { get; set; }
/// <summary>
/// 新密码
/// </summary>
public string NewPassword { get; set; }
}
}

View File

@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.LoginMobile
{
/// <summary>
/// 换绑电话
/// </summary>
public class MyPhoneBindRequest
{
/// <summary>
/// 电话
/// </summary>
public string Phone { get; set; }
/// <summary>
/// 验证码
/// </summary>
public string Phone_Code { get; set; }
}
}

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.LoginMobile
{
public class RefreshTokenRequest
{
/// <summary>
/// 过期的token
/// </summary>
public string Token { get; set; }
}
}

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.LoginMobile
{
public class RegisterRequest
{
/// <summary>
/// 账号
/// </summary>
public string account { get; set; }
/// <summary>
/// 密码
/// </summary>
public string password { get; set; }
public string userName { get; set; }
}
}

View File

@ -0,0 +1,59 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LearningOfficer.OA.Common.Enums;
namespace LearningOfficer.OA.Common.Dtos.LoginMobile
{
public class UserResult
{
/// <summary>
/// 备 注:用户中心id
/// 默认值:
///</summary>
public long Id { get; set; }
/// <summary>
/// 用户类型1高中2初中
/// </summary>
public long UserType { get; set; }
/// <summary>
/// 备 注:姓名
/// 默认值:
///</summary>
public string RealName { get; set; } = null!;
/// <summary>
/// 备 注:账号
/// 默认值:
///</summary>
public string Account { get; set; } = null!;
/// <summary>
/// 角色枚举
/// </summary>
public SysRoleEnum RoleEnum { get; set; }
/// <summary>
/// 云校id
/// </summary>
public long? Cloud_id { get; set; }
/// <summary>
/// 角色名称
/// </summary>
public string? Role_Name { get; set; }
/// <summary>
/// 备 注:云校名称
/// 默认值:
///</summary>
public string? CloudName { get; set; }
/// <summary>
/// 备 注:手机号
/// 默认值:
///</summary>
public string? Phone { get; set; }
/// <summary>
/// 头像URL
/// </summary>
public string HeadImage { get; set; }
}
}

View File

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.LoginMobile
{
public class testAccountResult
{
/// <summary>
/// 账号
/// </summary>
public string username { get; set; }
/// <summary>
/// 密码
/// </summary>
public string Pwd { get; set; }
/// <summary>
/// 是否开启测试
/// </summary>
public bool isOpenTest { get; set; }
}
}

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.LoginMobile
{
public class userLoginRequest
{
/// <summary>
/// 电话
/// </summary>
public string Phone { get; set; }
}
}

View File

@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.LoginMobile
{
public class userLoginResult
{
/// <summary>
/// Token
/// </summary>
public string token { get; set; }
/// <summary>
/// 用户信息
/// </summary>
public UserResult userInfo { get; set; }
/// <summary>
/// UserSig
/// </summary>
public string UserSig { get; set; }
/// <summary>
/// 用户类型1高中用户、2初中用户
/// </summary>
public int userType { get; set; }
}
}

View File

@ -0,0 +1,130 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LearningOfficer.OA.Common.Dtos.Menus
{
public class MenuAddDto
{
/// <summary>
/// 备 注:菜单名称
/// 默认值:
///</summary>
public string Title { get; set; } = null!;
/// <summary>
/// 备 注:父级菜单id
/// 默认值:
///</summary>
public long ParentId { get; set; }
/// <summary>
/// 备 注:序号
/// 默认值:
///</summary>
public int Sort { get; set; }
/// <summary>
/// 备 注:路由路径
/// 默认值:
///</summary>
public string Path { get; set; } = null!;
/// <summary>
/// 备 注:菜单图标
/// 默认值:
///</summary>
public string Icon { get; set; } = null!;
/// 备 注:组件
/// 默认值:
///</summary>
public string Component { get; set; } = null!;
}
public class MenuUpdateDto : MenuAddDto
{
/// <summary>
/// 备 注:菜单id
/// 默认值:
///</summary>
public long Id { get; set; }
}
public class MenuFrontEndDto
{
public long Id { get; set; }
/// <summary>
/// 备 注:菜单名称
/// 默认值:
///</summary>
public string Title { get; set; } = null!;
/// <summary>
/// 备 注:父级菜单id
/// 默认值:
///</summary>
public long ParentId { get; set; }
/// <summary>
/// 备 注:序号
/// 默认值:
///</summary>
public int Sort { get; set; }
/// <summary>
/// 备 注:路由路径
/// 默认值:
///</summary>
public string Path { get; set; } = null!;
/// <summary>
/// 备 注:菜单图标
/// 默认值:
///</summary>
public string Icon { get; set; } = null!;
/// 备 注:组件
/// 默认值:
///</summary>
public string Component { get; set; } = null!;
public MenuMeta Meta
{
get
{
return new MenuMeta
{
Title = this.Title,
Icon = this.Icon
};
}
}
public List<MenuFrontEndDto> Children { get; set; }
}
public class MenuMeta
{
/// <summary>
/// 备 注:菜单名称
/// 默认值:
///</summary>
public string Title { get; set; } = null!;
public string Icon { get; set; }
}
}

Some files were not shown because too many files have changed in this diff Show More