master
editor 1 year ago
commit 0c79b8d3c9

@ -0,0 +1,72 @@
GRISSOMCMS后台内容管理系统
一、源码描述
GrissomCMS后台内容管理系统
环境VS2022 mysql5.7
二、功能介绍
.netframework的前后端分离架构的比较少见数据库访问是作者改装FluentData做的整体很有个人风格适合进阶学习~。
系统管理
1、基础用户
2、菜单管理
3、角色管理
4、用户管理
视频管理
三、注意事项
1、在项目web.config修改数据库连接字符串执行数据库脚本。
2、管理员账号与密码admin 51aspx 。
3、ctrl+F5运行即可。
作者: coderbest
如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/BackgroundContentManagement
------------------------------------------------------------------------------------------------
源码服务专家
官网: https://www.51aspx.com
讨论圈: https://club.51aspx.com/
平台声明:
1.51Aspx平台上提供下载的资源为免费、共享、商业三类源码,其中免费和共享源码仅供个人学习和研究使用,商业源码请在相应的授权许可条件下使用;
2.51Aspx平台对提供下载的软件及其它资源不拥有任何权利,其版权归属源码合法拥有者所有;
3.著作权人发现本网站载有侵害其合法权益的内容或作品,请与我们联系( 登录官网与客服反馈或发送邮件到support@51Aspx.com
4.51Aspx平台不保证提供的下载资源的准确性、安全性和完整性;
友情提示:
一般数据库文件默认在 DB_51Aspx 文件夹下
默认账号密码一般均为51Aspx
关于源码使用常见问题及解决方案,请参阅: https://www.51aspx.com/Help

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
IIS configuration sections.
For schema documentation, see
%IIS_BIN%\config\schema\IIS_schema.xml.
Please make a backup of this file before making any changes to it.
NOTE: The following environment variables are available to be used
within this file and are understood by the IIS Express.
%IIS_USER_HOME% - The IIS Express home directory for the user
%IIS_SITES_HOME% - The default home directory for sites

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{4C3E417B-58C2-4DAF-9106-187156203E4C}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Model</RootNamespace>
<AssemblyName>Model</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>

@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Model
{
public class BaseModel
{
}
}

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("WilsonModel")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("WilsonModel")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.data>
<DbProviderFactories>
<remove invariant="MySql.Data.MySqlClient"/>
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
</DbProviderFactories>
</system.data>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.data>
<DbProviderFactories>
<remove invariant="MySql.Data.MySqlClient"/>
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
</DbProviderFactories>
</system.data>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Model
{
public class MsgModel<T> where T : class
{
/// <summary>
/// 是否成功
/// </summary>
public bool Status { get; set; }
/// <summary>

@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Model
{
public class PK : Attribute
{
}
}

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Model
{
public class UniqueException : Exception
{
public UniqueException(string msg) : base(msg)
{
}
}
}

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Model
{
public partial class VideoComment
{
/// <summary>
/// 评论人名称
/// </summary>
public string _OwnerName { get; set; }
}
}

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Model
{
public partial class VideoCommentUpdown
{
/// <summary>
/// 顶、踩用户名
/// </summary>
public string _OwnerName { get; set; }
}
}

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Model
{
public partial class VideoMark
{
public string _OwnerName { get; set; }
}
}

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
namespace Model
{
/// <summary>
/// 基础用户
/// </summary>
public partial class BasOwner
{
/// <summary>
///
/// </summary>

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
namespace Model
{
/// <summary>
/// 系统菜单
/// </summary>
public partial class SysMenu
{
/// <summary>
/// 菜单编码
/// </summary>

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
namespace Model
{
/// <summary>
/// 菜单按钮
/// </summary>
public partial class SysMenuPoint
{
/// <summary>
/// 按钮编码
/// </summary>

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
namespace Model
{
/// <summary>
/// 角色
/// </summary>
public partial class SysRole
{
/// <summary>
///
/// </summary>

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
namespace Model
{
/// <summary>
/// 角色菜单
/// </summary>
public partial class SysRoleMenu
{
/// <summary>
/// 角色id
/// </summary>

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
namespace Model
{
/// <summary>
/// 角色菜单按钮
/// </summary>
public partial class SysRoleMenuPoint
{
/// <summary>
/// 角色id
/// </summary>

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
namespace Model
{
/// <summary>
/// 系统用户
/// </summary>
public partial class SysUser
{
/// <summary>
///
/// </summary>

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
namespace Model
{
/// <summary>
/// 用户角色
/// </summary>
public partial class SysUserRole
{
/// <summary>
/// 用户id
/// </summary>

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
namespace Model
{
/// <summary>
/// 视频评论
/// </summary>
public partial class VideoComment
{
/// <summary>
///
/// </summary>

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
namespace Model
{
/// <summary>
/// 视频顶/踩
/// </summary>
public partial class VideoCommentUpdown
{
/// <summary>
///
/// </summary>

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
namespace Model
{
/// <summary>
/// 视频
/// </summary>
public partial class VideoMain
{
/// <summary>
///
/// </summary>

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
namespace Model
{
/// <summary>
/// 评分
/// </summary>
public partial class VideoMark
{
/// <summary>
///
/// </summary>

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

@ -0,0 +1,9 @@
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\1-Model\obj\Debug\1-Model.csproj.AssemblyReference.cache
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\1-Model\obj\Debug\1-Model.csproj.CoreCompileInputs.cache
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\1-Model\bin\Debug\Model.dll.config
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\1-Model\bin\Debug\Model.dll
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\1-Model\bin\Debug\Model.pdb
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\1-Model\bin\Debug\MySql.Data.dll
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\1-Model\obj\Debug\1-Model.csproj.CopyComplete
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\1-Model\obj\Debug\Model.dll
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\1-Model\obj\Debug\Model.pdb

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MySql.Data" version="6.9.9" targetFramework="net40" />
</packages>

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{280559F7-F0EF-4F40-8EF8-4E8D86B4E70B}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Services</RootNamespace>
<AssemblyName>Services</AssemblyName>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using FluentData;
using System.Data.SqlClient;
using System.Data;
using EasyJsonToSql;
namespace Services
{

@ -0,0 +1,15 @@
using EasyJsonToSql;
using FluentData;
using Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Dynamic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Services

@ -0,0 +1,15 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("WilsonService")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("WilsonService")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

@ -0,0 +1,15 @@
using EasyJsonToSql;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Services
{
public class Trace
{
public static void WriteLine(FluentData.IDbCommand command, string sql = null, DbField[] paras = null)
{
var traceEnable = System.Configuration.ConfigurationManager.AppSettings["traceEnable"];
if (traceEnable != "true")

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<add name="DefaultConnection" connectionString="server=127.0.0.1;database=video;user=root;pwd=51aspx;Allow User Variables=True" providerName="MySql.Data.MySqlClient"/>
</connectionStrings>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="NPOI" publicKeyToken="0df73ec7942b34e1" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-2.1.1.0" newVersion="2.1.1.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.data>
<DbProviderFactories>

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.data>
<DbProviderFactories>
<remove invariant="MySql.Data.MySqlClient"/>
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
</DbProviderFactories>
</system.data>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>

@ -0,0 +1,15 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>NPOI</name>
</assembly>
<members>
<member name="T:NPOI.DDF.AbstractEscherOptRecord">
Common abstract class for {@link EscherOptRecord} and
{@link EscherTertiaryOptRecord}
@author Sergey Vladimirov (vlsergey {at} gmail {dot} com)
@author Glen Stampoultzis
</member>
<member name="T:NPOI.DDF.EscherRecord">
<summary>

@ -0,0 +1,15 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>Newtonsoft.Json</name>
</assembly>
<members>
<member name="T:Newtonsoft.Json.Bson.BsonObjectId">
<summary>
Represents a BSON Oid (object id).
</summary>
</member>
<member name="P:Newtonsoft.Json.Bson.BsonObjectId.Value">
<summary>
Gets or sets the value of the Oid.
</summary>

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<add name="DefaultConnection" connectionString="server=127.0.0.1;database=video;user=root;pwd=51aspx;Allow User Variables=True" providerName="MySql.Data.MySqlClient"/>
</connectionStrings>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="NPOI" publicKeyToken="0df73ec7942b34e1" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-2.1.1.0" newVersion="2.1.1.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.data>
<DbProviderFactories>

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Model;
using EasyJsonToSql;
namespace Services
{
/// <summary>
/// 基础用户
/// </summary>
public partial class BasOwnerService: BaseService<BasOwner>
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Model;
using EasyJsonToSql;
namespace Services
{
/// <summary>
/// 菜单按钮
/// </summary>
public partial class SysMenuPointService : BaseService<SysMenuPoint>
{
public static List<SysMenuPoint> GetByUserId(long userId)

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Model;
using EasyJsonToSql;
using ILogger;
namespace Services
{
/// <summary>
/// 系统菜单
/// </summary>
public partial class SysMenuService : BaseService<SysMenu>
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Model;
using EasyJsonToSql;
namespace Services
{
/// <summary>
/// 角色菜单按钮
/// </summary>
public partial class SysRoleMenuPointService: BaseService<SysRoleMenuPoint>
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Model;
using EasyJsonToSql;
namespace Services
{
/// <summary>
/// 角色菜单
/// </summary>
public partial class SysRoleMenuService: BaseService<SysRoleMenu>
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Model;
using EasyJsonToSql;
namespace Services
{
/// <summary>
/// 角色
/// </summary>
public partial class SysRoleService : BaseService<SysRole>
{
public static List<SysUser> GetSelectedUser(string roleId)

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Model;
using EasyJsonToSql;
namespace Services
{
/// <summary>
/// 用户角色
/// </summary>
public partial class SysUserRoleService: BaseService<SysUserRole>
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Model;
using EasyJsonToSql;
namespace Services
{
/// <summary>
/// 系统用户
/// </summary>
public partial class SysUserService : BaseService<SysUser>
{
public static SysUser Get(string account, string pwd)

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Model;
using EasyJsonToSql;
namespace Services
{
/// <summary>
/// 视频评论
/// </summary>
public partial class VideoCommentService : BaseService<VideoComment>
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Model;
using EasyJsonToSql;
namespace Services
{
/// <summary>
/// 视频顶/踩
/// </summary>
public partial class VideoCommentUpdownService : BaseService<VideoCommentUpdown>
{
public static List<VideoCommentUpdown> GetByCommentId(string commentId)

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Model;
using EasyJsonToSql;
namespace Services
{
/// <summary>
/// 视频
/// </summary>
public partial class VideoMainService: BaseService<VideoMain>
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Model;
using EasyJsonToSql;
namespace Services
{
/// <summary>
/// 评分
/// </summary>
public partial class VideoMarkService : BaseService<VideoMark>
{
public static List<VideoMark> GetByMainId(string mainId)

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
using Model;
namespace Services
{
/// <summary>
/// 基础用户
/// </summary>
public partial class BasOwnerService: BaseService<BasOwner>
{
}

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
using Model;
namespace Services
{
/// <summary>
/// 系统菜单
/// </summary>
public partial class SysMenuService: BaseService<SysMenu>
{
}

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
using Model;
namespace Services
{
/// <summary>
/// 菜单按钮
/// </summary>
public partial class SysMenuPointService: BaseService<SysMenuPoint>
{
}

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
using Model;
namespace Services
{
/// <summary>
/// 角色
/// </summary>
public partial class SysRoleService: BaseService<SysRole>
{
}

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
using Model;
namespace Services
{
/// <summary>
/// 角色菜单
/// </summary>
public partial class SysRoleMenuService: BaseService<SysRoleMenu>
{
}

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
using Model;
namespace Services
{
/// <summary>
/// 角色菜单按钮
/// </summary>
public partial class SysRoleMenuPointService: BaseService<SysRoleMenuPoint>
{
}

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
using Model;
namespace Services
{
/// <summary>
/// 系统用户
/// </summary>
public partial class SysUserService: BaseService<SysUser>
{
}

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
using Model;
namespace Services
{
/// <summary>
/// 用户角色
/// </summary>
public partial class SysUserRoleService: BaseService<SysUserRole>
{
}

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
using Model;
namespace Services
{
/// <summary>
/// 视频评论
/// </summary>
public partial class VideoCommentService: BaseService<VideoComment>
{
}

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
using Model;
namespace Services
{
/// <summary>
/// 视频顶/踩
/// </summary>
public partial class VideoCommentUpdownService: BaseService<VideoCommentUpdown>
{
}

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
using Model;
namespace Services
{
/// <summary>
/// 视频
/// </summary>
public partial class VideoMainService: BaseService<VideoMain>
{
}

@ -0,0 +1,15 @@
/*============================
*
=============================*/
using System;
using Model;
namespace Services
{
/// <summary>
/// 评分
/// </summary>
public partial class VideoMarkService: BaseService<VideoMark>
{
}

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.5", FrameworkDisplayName = ".NET Framework 4.5")]

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]

@ -0,0 +1,15 @@
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\2-Services\obj\Debug\2-Services.csproj.AssemblyReference.cache
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\2-Services\obj\Debug\2-Services.csproj.CoreCompileInputs.cache
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\2-Services\bin\Debug\Services.dll.config
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\2-Services\bin\Debug\Services.dll
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\2-Services\bin\Debug\Services.pdb
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\2-Services\bin\Debug\EasyFluentData.dll
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\2-Services\bin\Debug\EasyJsonToSql.dll
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\2-Services\bin\Debug\ICSharpCode.SharpZipLib.dll
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\2-Services\bin\Debug\ILogger.dll
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\2-Services\bin\Debug\Model.dll
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\2-Services\bin\Debug\MySql.Data.dll
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\2-Services\bin\Debug\Newtonsoft.Json.dll
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\2-Services\bin\Debug\NPOI.dll
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\2-Services\bin\Debug\NPOI.OOXML.dll
C:\Users\coder\Desktop\2023\6\20230616\submit\Grissom.CMS-master\Grissom.CMS-master\API\2-Services\bin\Debug\NPOI.OpenXml4Net.dll

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="EasyFluentData" version="1.0.1" targetFramework="net45" />
<package id="EasyJsonToSql" version="1.1.0" targetFramework="net45" />
<package id="MySql.Data" version="6.9.9" targetFramework="net45" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net45" />
<package id="NPOI" version="2.2.1" targetFramework="net45" />
<package id="SharpZipLib" version="0.86.0" targetFramework="net45" />
</packages>

@ -0,0 +1,3 @@
change log:
1)2014-04-23, dh add 'distinct' key word for sqlprovider

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props" Condition="Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" />
<Import Project="..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props" Condition="Exists('..\packages\Microsoft.Net.Compilers.1.0.0\build\Microsoft.Net.Compilers.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>
</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{228BAFE7-133B-4F30-A26E-91D6CA5A1E66}</ProjectGuid>
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>

@ -0,0 +1,15 @@
using Castle.DynamicProxy;
using ILogger;
using Model;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WebApi
{
/// <summary>
/// 日志模块的横向切入实现类

@ -0,0 +1,15 @@
using Castle.DynamicProxy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;
namespace WebApi
{
public class ProxyGenerationHook : IProxyGenerationHook
{
public void MethodsInspected()
{
}

@ -0,0 +1,14 @@
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace WebApi.APIs.Bas
{
public class OwnerController : BaseApiController<BasOwner>
{
}
}

@ -0,0 +1,14 @@
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace WebApi.APIs.Sys
{
public class MenuController : BaseApiController<SysMenu>
{
}
}

@ -0,0 +1,15 @@
using Model;
using Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace WebApi.APIs.Sys
{
public class MenuPointController : BaseApiController<SysMenuPoint>
{
[HttpGet]

@ -0,0 +1,15 @@
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Security;
using Services;
using EasyJsonToSql;
namespace WebApi.APIs.Sys
{
public class RoleController : BaseApiController<SysRole>
{

@ -0,0 +1,15 @@
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using System.Web.Security;
using Services;
using EasyJsonToSql;
namespace WebApi.APIs.Sys
{
public class UserController : BaseApiController<SysUser>
{

@ -0,0 +1,15 @@
using Model;
using Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
namespace WebApi.APIs.Video
{
public class MainController : BaseApiController<VideoMain>
{
[HttpGet]

@ -0,0 +1,15 @@
-- --------------------------------------------------------
-- 主机: 127.0.0.1
-- 服务器版本: 10.0.21-MariaDB - mariadb.org binary distribution
-- 服务器操作系统: Win64
-- HeidiSQL 版本: 9.4.0.5125
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- 导出 表 video.SysMenu 结构
CREATE TABLE IF NOT EXISTS `SysMenu` (

@ -0,0 +1,15 @@
-- --------------------------------------------------------
-- 主机: 127.0.0.1
-- 服务器版本: 10.0.21-MariaDB - mariadb.org binary distribution
-- 服务器操作系统: Win64
-- HeidiSQL 版本: 9.4.0.5125
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- 导出 video 的数据库结构

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
namespace WebApi
{
public class FilterConfig

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Http.Dispatcher;
using System.Web.Http.Routing;
namespace WebApi
{

@ -0,0 +1,15 @@
using System;
using System.Configuration;
using Microsoft.AspNet.Identity;
using Microsoft.Owin;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.DataHandler.Encoder;
using Microsoft.Owin.Security.OAuth;
using Owin;
using Microsoft.Owin.Security.Jwt;
namespace WebApi
{
public partial class Startup
{
public void ConfigureAuth(IAppBuilder app)

@ -0,0 +1,15 @@
using System.Web.Http;
using WebActivatorEx;
using WebApi;
using Swashbuckle.Application;
using WebApi.SwaggerExtensions;
using System.Linq;
[assembly: PreApplicationStartMethod(typeof(SwaggerConfig), "Register")]
namespace WebApi
{
public class SwaggerConfig
{
public static void Register()
{

@ -0,0 +1,15 @@
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Http.Cors;
using System.Web.Http.Dispatcher;
using System.Web.Routing;
namespace WebApi

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace WebApi
{
/// <summary>
/// 允许 api 跨域调用
/// </summary>
public class CorsHandler: DelegatingHandler

@ -0,0 +1,15 @@
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.DataHandler.Encoder;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.IdentityModel.Tokens;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Thinktecture.IdentityModel.Tokens;
namespace WebApi
{
/// <summary>

@ -0,0 +1,15 @@
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.OAuth;
using Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;
namespace WebApi
{
/// <summary>
/// 自定义 jwt oauth 的授权验证
/// </summary>

@ -0,0 +1 @@
<%@ Application Codebehind="Global.asax.cs" Inherits="WebApi.WebApiApplication" Language="C#" %>

@ -0,0 +1,15 @@
using Autofac;
using Autofac.Integration.WebApi;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Http;
using System.Web.Routing;
namespace WebApi
{
/// <summary>
/// </summary>
public class WebApiApplication : System.Web.HttpApplication

@ -0,0 +1,15 @@
using Autofac;
using Autofac.Extras.DynamicProxy2;
using Autofac.Integration.WebApi;
using WebApi;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;
using Autofac.Core;
namespace WebApi

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.IO;
using System.Diagnostics;
using System.Text;
using Newtonsoft.Json.Linq;
using System.Web.Http.Filters;
using System.Web.Http.Controllers;
using System.Net.Http;
using System.Net;
using System.Web.Configuration;
using System.Web.Security;

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Authentication;
using System.Web;
using System.Web.Mvc;
using System.Web.Security;
using Newtonsoft.Json;
using System.IO;
using System.Text;
using EasyJsonToSql;
namespace WebApi
{
public class Commons

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace WebApi
{
public class ConfigModel
{
/// <summary>
/// 关键字段,如表的主键
///主要作用是在列表(Index.cshtml) : 双击编辑或删除会到对应的记录获取该字段的值,并传回后台
///结合 sqlconfig 的配置,到数据查询出该行的数据
/// </summary>
public string keyField { get; set; }

@ -0,0 +1,15 @@
using EasyJsonToSql;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Web;
namespace WebApi
{
public class DataProxyHelper<T>
{
public Proxy Proxy { get; set; }
public T RawData { get; set; }

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
namespace WebApi
{
/// <summary>
/// 日志帮助类
/// </summary>
public class LogHelper
{

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Web;
namespace WebApi
{
public static class RequestHelper
{
public static dynamic GetCurrentUser()

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace WebApi
{
public static class XmlHelper
{
public static T LoadFromXml<T>(string xml)
{
XmlSerializer xmlSerializer = new XmlSerializer(typeof(T));

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http.Controllers;
using System.Collections.Specialized;
using System.Threading.Tasks;
using System.IO;
using Newtonsoft.Json.Linq;
namespace WebApi
{
public class DynamicWrapperParameterBinding : HttpParameterBinding
{
private struct AsyncVoid

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Newtonsoft.Json;
namespace WebApi
{
public class JObjectModelBinder : IModelBinder
{
public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext) {
var stream = controllerContext.HttpContext.Request.InputStream;

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http.Controllers;
using System.IO;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
namespace WebApi
{
public class JObjectWrapperParameterBinding : HttpParameterBinding
{
private struct AsyncVoid
{

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

Loading…
Cancel
Save