First Initial
This commit is contained in:
14
Utils/Models/CommonResponseMessage.cs
Normal file
14
Utils/Models/CommonResponseMessage.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
22
Utils/Models/FileBase64Info.cs
Normal file
22
Utils/Models/FileBase64Info.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
13
Utils/Models/FilePathInfo.cs
Normal file
13
Utils/Models/FilePathInfo.cs
Normal 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
12
Utils/Models/GuidModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
13
Utils/Models/KeyPairDto.cs
Normal file
13
Utils/Models/KeyPairDto.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
15
Utils/Models/KeyPairWithParentDto.cs
Normal file
15
Utils/Models/KeyPairWithParentDto.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
18
Utils/Models/StaticConfigModel.cs
Normal file
18
Utils/Models/StaticConfigModel.cs
Normal 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
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
18
Utils/Models/StringValueAttribute.cs
Normal file
18
Utils/Models/StringValueAttribute.cs
Normal 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; }
|
||||
|
||||
}
|
||||
}
|
||||
14
Utils/Models/UploadedFilePathInfo.cs
Normal file
14
Utils/Models/UploadedFilePathInfo.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
24
Utils/Models/UserCredentialModel.cs
Normal file
24
Utils/Models/UserCredentialModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user