First Initial

This commit is contained in:
Nakorn Rientrakrunchai
2020-02-20 15:02:39 +07:00
commit 8b98125e49
3048 changed files with 760804 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TTSW.Utils
{
public class CommonResponseMessage
{
public string code { get; set; }
public string message { get; set; }
public object data { get; set; }
}
}

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TTSW.Utils
{
public class FileBase64Info
{
public string FileName { get; set; }
public string Content { get; set; }
public string MimeType { get; set; }
public string DataURL
{
get
{
return string.Format("data:{0};base64,{1}", MimeType, Content);
}
}
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TTSW.Utils
{
public class FilePathInfo
{
public string RelativePath { get; set; }
public string PhysicalPath { get; set; }
}
}

12
Utils/Models/GuidModel.cs Normal file
View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TTSW.Utils
{
public class GuidModel
{
public Guid id { get; set; }
}
}

View File

@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TTSW.Utils
{
public class KeyPairDto
{
public int Id { get; set; }
public string Name { get; set; }
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TTSW.Utils
{
public class KeyPairWithParentDto
{
public int Id { get; set; }
public string Name { get; set; }
public int ParentId { get; set; }
public string ParentName { get; set; }
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace TTSW.Utils
{
public class StaticConfigModel
{
#region Properties
public Dictionary<string, FileInfo> Files { get; set; }
public Dictionary<string, DirectoryInfo> Directories { get; set; }
#endregion
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TTSW.Utils
{
public class StringValueAttribute : Attribute
{
public StringValueAttribute(string value)
{
Value = value;
}
public string Value { get; private set; }
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TTSW.Utils
{
public class UploadedFilePathInfo
{
public int Count { get; set; }
public long Size { get; set; }
public List<string> FilesUploaded { get; set; }
}
}

View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace TodoAPI2.Models
{
public class UserCredentialModel
{
[Required]
public string UserName { get; set; }
[Required]
public string Password { get; set; }
}
public class UserCredentialSocialModel
{
[Required]
public string UserName { get; set; }
[Required]
public string SocialId { get; set; }
}
}