mirror of https://github.com/abpframework/eventhub
16 changed files with 170 additions and 122 deletions
@ -1,32 +1,32 @@ |
|||||
namespace EventHub.Events |
namespace EventHub.Events |
||||
{ |
{ |
||||
public static class EventConsts |
public static class EventConsts |
||||
{ |
{ |
||||
public const string DefaultSorting = "Title desc"; |
public const string DefaultSorting = "Title desc"; |
||||
|
|
||||
public const int UrlCodeLength = 8; |
public const int UrlCodeLength = 8; |
||||
public const int MaxTitleInUrlLength = 60; |
public const int MaxTitleInUrlLength = 60; |
||||
public const int MaxUrlLength = MaxTitleInUrlLength + 1 + UrlCodeLength; //Format: {Title}-{UrlCode}
|
public const int MaxUrlLength = MaxTitleInUrlLength + 1 + UrlCodeLength; //Format: {Title}-{UrlCode}
|
||||
|
|
||||
public const int MinTitleLength = 8; |
public const int MinTitleLength = 8; |
||||
public const int MaxTitleLength = 128; |
public const int MaxTitleLength = 128; |
||||
|
|
||||
public const int MinDescriptionLength = 50; |
public const int MinDescriptionLength = 50; |
||||
public const int MaxDescriptionLength = 2000; |
public const int MaxDescriptionLength = 2000; |
||||
|
|
||||
public const int MinOnlineLinkLength = 4; |
public const int MinOnlineLinkLength = 4; |
||||
public const int MaxOnlineLinkLength = 2000; |
public const int MaxOnlineLinkLength = 2000; |
||||
|
|
||||
public const int MinCityLength = 2; |
public const int MinCityLength = 2; |
||||
public const int MaxCityLength = 32; |
public const int MaxCityLength = 32; |
||||
|
|
||||
public const int MinLanguageLength = 2; |
public const int MinLanguageLength = 2; |
||||
public const int MaxLanguageLength = 16; |
public const int MaxLanguageLength = 16; |
||||
|
|
||||
public const int MaxTimingChangeCountForUser = 2; |
public const int MaxTimingChangeCountForUser = 2; |
||||
|
|
||||
public const int MaxCoverImageFileSize = 5 * 1024 * 1024; |
public const int MaxCoverImageFileSize = 5 * 1024 * 1024; |
||||
|
|
||||
public static string[] AllowedCoverImageExtensions = { ".jpg", ".png" }; |
public static string[] AllowedCoverImageExtensions = { ".jpg", ".png" }; |
||||
} |
} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue