zoukankan      html  css  js  c++  java
  • API-MODEL示例

    可以参照的model层示例
     
    ////温馨提示记住一定要让需要的去引用模型层
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    namespace Model
    {
        /// <summary>
        /// 建立返回查询数据的Model
        /// </summary>
        public class pageModel
        {
            //领取记录的结果集
            public List<lqjlModel> list { get; set; }
            //当前页
            public int currentPage { get; set; }
            //总记录数
            public int totalCount { get; set; }
            //总页数
            public int totalPage { get; set; }
        }
        /// <summary>
        /// 领取记录实体类(从数据库里查出来的)
        /// </summary>
        public class lqjlModel
        {
            //ID
            public int Id { get; set; }
            //用户姓名
            public string Name { get; set; }
            //优惠券名称
            public string mc { get; set; }
            //使用条件
            public string sytj { get; set; }
            //优惠方式
            public string yhfs { get; set; }
            public string yhfs1 { get; set; }
            //领取时间
            public DateTime lqsh { get; set; }
            //核销状态
            public string hxzt { get; set; }
        }
    }
     
  • 相关阅读:
    Python3---常见函数---super()
    Python3---常见函数---type()
    Python3---面对对象
    Python3---BeautifulSoup---节点选择器
    Python3---Beautiful Soup
    0X01应用程序黑客技术
    Python3---标准库---re
    (trie) UVA
    (trie)UVALive
    (平方分割)POJ 2104 K-th Number
  • 原文地址:https://www.cnblogs.com/gc1229/p/13072767.html
Copyright © 2011-2022 走看看