using System; using System.Collections.Generic; using Dapper.Contrib.Extensions; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; using Newtonsoft.Json.Linq; public class DbTableClass { [Table("kol")] public class kol { [JsonIgnore] [Key] public int kol_sn { get; set; } public string kol_uid { get; set; } = ""; public string kol_name { get; set; } = ""; public string kol_photo { get; set; } = ""; public string kol_descript { get; set; } = ""; public string kol_men_ratio { get; set; } = ""; public string kol_women_ratio { get; set; } = ""; public double kol_13_17 { get; set; } public double kol_18_24 { get; set; } public double kol_25_34 { get; set; } public double kol_35_44 { get; set; } public double kol_45_54 { get; set; } public double kol_55_64 { get; set; } public double kol_65 { get; set; } public DateTime kol_createdate { get; set; } public DateTime kol_modifydate { get; set; } public string kol_create_userId { get; set; } = ""; public string kol_modify_userId { get; set; } = ""; } [Table("kolCooperateType")] public class kolCooperateType { [JsonIgnore] [Key] public int kolCooperateType_sn { get; set; } public string kolCooperateType_uid { get; set; } = ""; public string kol_uid { get; set; } = ""; public string option_uid { get; set; } = ""; public string optionItem_uid { get; set; } = ""; } [Table("kolFansType")] public class kolFansType { [JsonIgnore] [Key] public int kolFansType_sn { get; set; } public string kolFansType_uid { get; set; } = ""; public string kol_uid { get; set; } = ""; public string option_uid { get; set; } = ""; public string optionItem_uid { get; set; } = ""; } [Table("kolMakeup")] public class kolMakeup { [JsonIgnore] [Key] public int kolMakeup_sn { get; set; } public string kolMakeup_uid { get; set; } = ""; public string kol_uid { get; set; } = ""; public string option_uid { get; set; } = ""; public string optionItem_uid { get; set; } = ""; } [Table("kolMedia")] public class kolMedia { [JsonIgnore] [Key] public int kolMedia_sn { get; set; } public string kolMedia_uid { get; set; } = ""; public string kol_uid { get; set; } = ""; public string option_uid { get; set; } = ""; public string optionItem_uid { get; set; } = ""; public string kolMedia_displayName { get; set; } = ""; public string kolMedia_accountName { get; set; } = ""; public int kolMedia_fansNum { get; set; } = 0; } [Table("kolStyle")] public class kolStyle { [JsonIgnore] [Key] public int kolStyle_sn { get; set; } public string kolStyle_uid { get; set; } = ""; public string kol_uid { get; set; } = ""; public string option_uid { get; set; } = ""; public string optionItem_uid { get; set; } = ""; } [Table("optionItem")] public class optionItem { [JsonIgnore] [Key] public int optionItem_sn { get; set; } public string option_uid { get; set; } = ""; public string optionItem_uid { get; set; } = ""; public string optionItem_name { get; set; } = ""; public string optionItem_ishide { get; set; } = "N"; public int optionItem_order { get; set; } = 999; public DateTime optionItem_createdate { get; set; } = DateTime.Now; public DateTime optionItem_modifydate { get; set; } = DateTime.Now; public string optionItem_userId { get; set; } = ""; } [Table("option")] public class option { [JsonIgnore] [Key] public int option_sn { get; set; } public string option_uid { get; set; } = ""; public string option_name { get; set; } = ""; public string option_ishide { get; set; } = "N"; public DateTime option_createdate { get; set; } = DateTime.Now; public DateTime option_modifydate { get; set; } = DateTime.Now; } [Table("token")] public class token { [JsonIgnore] [Key] public int token_sn { get; set; } public string token_key { get; set; } = ""; public string user_uid { get; set; } = ""; public string user_id { get; set; } = ""; public string token_isremember { get; set; } = "N"; public DateTime token_createdate { get; set; } = DateTime.Now; public DateTime token_expireddate { get; set; } = DateTime.Now.AddMinutes(20); } [Table("users")] public class user { [JsonIgnore] [Key] public int user_sn { get; set; } public string user_uid { get; set; } = ""; public string user_id { get; set; } = ""; public string user_name { get; set; } = ""; public string user_email { get; set; } = ""; public string user_onjob { get; set; } = "N"; public string user_type { get; set; } = "N"; public string user_pwd { get; set; } = ""; public string user_perm { get; set; } = "user"; public string user_pic { get; set; } = ""; public string user_ishidden { get; set; } = "N"; public DateTime user_createdate { get; set; } = DateTime.Now; public string user_lastlogintime { get; set; } = ""; } [Table("new_userdata")] public class new_userdata { [JsonIgnore] [Key] public int usersn { get; set; } public string userid { get; set; } = ""; public string userpw { get; set; } = ""; public string username { get; set; } = ""; public int maincategoryid { get; set; } = 1; public int subcategoryid { get; set; } = 1; public int grade { get; set; } = 0; public string mail { get; set; } = ""; public string mailto { get; set; } = ""; public int onjob { get; set; } = 0; public int permission { get; set; } = 0; } }