mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-05 16:09:49 +08:00
添加项目文件。
This commit is contained in:
34
CoreCms.Net.Model/ViewModels/UI/AdminUiCallBack.cs
Normal file
34
CoreCms.Net.Model/ViewModels/UI/AdminUiCallBack.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
namespace CoreCms.Net.Model.ViewModels.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// LayUIAdmin后端UI回调Json实体
|
||||
/// </summary>
|
||||
public class AdminUiCallBack
|
||||
{
|
||||
/// <summary>
|
||||
/// 状态码(ok = 0, error = 1, timeout = 401)
|
||||
/// </summary>
|
||||
public int code { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// 可选。信息内容。
|
||||
/// </summary>
|
||||
public string msg { get; set; } = "空数据返回";
|
||||
|
||||
public object data { get; set; }
|
||||
|
||||
public object otherData { get; set; }
|
||||
|
||||
public int count { get; set; }
|
||||
}
|
||||
}
|
||||
48
CoreCms.Net.Model/ViewModels/UI/AdminUiMenu.cs
Normal file
48
CoreCms.Net.Model/ViewModels/UI/AdminUiMenu.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
namespace CoreCms.Net.Model.ViewModels.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// layUIAdmin左侧导航实体
|
||||
/// </summary>
|
||||
public class AdminUiMenu
|
||||
{
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
public string title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 英文标识符
|
||||
/// </summary>
|
||||
public string name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 图标
|
||||
/// </summary>
|
||||
public string icon { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 跳转地址(如home/homepage1)
|
||||
/// </summary>
|
||||
public string jump { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否展开当前列表
|
||||
/// </summary>
|
||||
public bool spread { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 子类(防止json循环使用object类型)
|
||||
/// </summary>
|
||||
public object list { get; set; }
|
||||
}
|
||||
}
|
||||
86
CoreCms.Net.Model/ViewModels/UI/DTree.cs
Normal file
86
CoreCms.Net.Model/ViewModels/UI/DTree.cs
Normal file
@@ -0,0 +1,86 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CoreCms.Net.Model.ViewModels.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// Dtree标准下拉数据
|
||||
/// </summary>
|
||||
public class DTree
|
||||
{
|
||||
public dtreeStatus status { get; set; } = new();
|
||||
public List<dtreeChild> data { get; set; }
|
||||
}
|
||||
|
||||
public class dtreeStatus
|
||||
{
|
||||
public int code { set; get; } = 200;
|
||||
|
||||
public string message { set; get; } = "操作成功";
|
||||
}
|
||||
|
||||
public class dtreeChild
|
||||
{
|
||||
/// <summary>
|
||||
/// 序列
|
||||
/// </summary>
|
||||
public string id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 标题
|
||||
/// </summary>
|
||||
public string title { get; set; }
|
||||
|
||||
public string parentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否最后节点,无下级节点
|
||||
/// </summary>
|
||||
public bool last { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否选中 0否1是
|
||||
/// </summary>
|
||||
public string checkArr { get; set; } = "0";
|
||||
|
||||
/// <summary>
|
||||
/// 子
|
||||
/// </summary>
|
||||
public object children { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Dtree List集合数据格式
|
||||
/// </summary>
|
||||
public class DTreeList
|
||||
{
|
||||
/// <summary>
|
||||
/// 序列
|
||||
/// </summary>
|
||||
public string id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 开启复选框 0否1是
|
||||
/// </summary>
|
||||
public string checkArr { get; set; } = "0";
|
||||
|
||||
/// <summary>
|
||||
/// 父类id
|
||||
/// </summary>
|
||||
public string parentId { get; set; }
|
||||
}
|
||||
}
|
||||
33
CoreCms.Net.Model/ViewModels/UI/EnumEntity.cs
Normal file
33
CoreCms.Net.Model/ViewModels/UI/EnumEntity.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
namespace CoreCms.Net.Model.ViewModels.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// 枚举实体
|
||||
/// </summary>
|
||||
public class EnumEntity
|
||||
{
|
||||
/// <summary>
|
||||
/// 枚举的描述
|
||||
/// </summary>
|
||||
public string description { set; get; }
|
||||
|
||||
/// <summary>
|
||||
/// 枚举名称
|
||||
/// </summary>
|
||||
public string title { set; get; }
|
||||
|
||||
/// <summary>
|
||||
/// 枚举对象的值
|
||||
/// </summary>
|
||||
public int value { set; get; }
|
||||
}
|
||||
}
|
||||
29
CoreCms.Net.Model/ViewModels/UI/ErrorViewModel.cs
Normal file
29
CoreCms.Net.Model/ViewModels/UI/ErrorViewModel.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms.Net *
|
||||
* Web: https://CoreCms.Net *
|
||||
* ProjectName: 核心内容管理系统 *
|
||||
* Author: 大灰灰 *
|
||||
* Email: JianWeie@163.com *
|
||||
* CreateTime: 2020-03-18 3:18:36
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
namespace CoreCms.Net.Web.WebApi.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// 错误返回示例
|
||||
/// </summary>
|
||||
public class ErrorViewModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 回调序列
|
||||
/// </summary>
|
||||
public string RequestId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 显示回调序列
|
||||
/// </summary>
|
||||
|
||||
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||
}
|
||||
}
|
||||
105
CoreCms.Net.Model/ViewModels/UI/ReportsBack.cs
Normal file
105
CoreCms.Net.Model/ViewModels/UI/ReportsBack.cs
Normal file
@@ -0,0 +1,105 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
using System;
|
||||
|
||||
namespace CoreCms.Net.Model.ViewModels.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据时间查询报表截断获取时间段返回数据
|
||||
/// </summary>
|
||||
public class ReportsBackForGetDate
|
||||
{
|
||||
public DateTime start { get; set; }
|
||||
public DateTime end { get; set; }
|
||||
public int section { get; set; } = 0;
|
||||
public int num { get; set; } = 0;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 商品销量统计返回dataTable转实体
|
||||
/// </summary>
|
||||
public class GoodsSalesVolume
|
||||
{
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
public int nums { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 金额
|
||||
/// </summary>
|
||||
public decimal amount { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 缩略图
|
||||
/// </summary>
|
||||
public string imageUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 规格说明
|
||||
/// </summary>
|
||||
public string addon { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 货号
|
||||
/// </summary>
|
||||
public string sn { get; set; }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 商品销量统计返回dataTable转实体
|
||||
/// </summary>
|
||||
public class GoodsCollection
|
||||
{
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
public int nums { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 商品编号
|
||||
/// </summary>
|
||||
public decimal goodId { get; set; } = 0;
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string goodsName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 缩略图
|
||||
/// </summary>
|
||||
public string images { get; set; }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 后端首页统计返回UI
|
||||
/// </summary>
|
||||
public class StatisticsOut
|
||||
{
|
||||
/// <summary>
|
||||
/// 日期
|
||||
/// </summary>
|
||||
public string day { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
public int nums { get; set; }
|
||||
}
|
||||
}
|
||||
49
CoreCms.Net.Model/ViewModels/UI/WebApiCallBack.cs
Normal file
49
CoreCms.Net.Model/ViewModels/UI/WebApiCallBack.cs
Normal file
@@ -0,0 +1,49 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms
|
||||
* ProjectName: 核心内容管理系统
|
||||
* Web: https://www.corecms.net
|
||||
* Author: 大灰灰
|
||||
* Email: jianweie@163.com
|
||||
* CreateTime: 2021/1/31 21:45:10
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
namespace CoreCms.Net.Model.ViewModels.UI
|
||||
{
|
||||
/// <summary>
|
||||
/// 微信接口回调Json实体
|
||||
/// </summary>
|
||||
public class WebApiCallBack
|
||||
{
|
||||
/// <summary>
|
||||
/// 请求接口返回说明
|
||||
/// </summary>
|
||||
public string methodDescription { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 提交数据
|
||||
/// </summary>
|
||||
public object otherData { get; set; } = null;
|
||||
|
||||
/// <summary>
|
||||
/// 状态码
|
||||
/// </summary>
|
||||
public bool status { get; set; } = false;
|
||||
|
||||
/// <summary>
|
||||
/// 信息说明。
|
||||
/// </summary>
|
||||
public string msg { get; set; } = "接口响应成功";
|
||||
|
||||
/// <summary>
|
||||
/// 返回数据
|
||||
/// </summary>
|
||||
public object data { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回编码
|
||||
/// </summary>
|
||||
public int code { get; set; } = 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user