| 1234567891011121314151617181920212223242526272829303132333435 |
- using SqlSugar;
- using System;
- using System.Collections.Generic;
- namespace SKMC.Api.Common.Version
- {
- public class ModuleVersion
- {
- public string Name { get; set; }
- public string CommitHash { get; set; }
- public string ShortVersion => string.IsNullOrEmpty(CommitHash) || CommitHash.Length < 7
- ? CommitHash
- : CommitHash.Substring(0, 7);
- public string Branch { get; set; }
- public string Author { get; set; }
- public DateTime CommitTime { get; set; }
- public string CommitMessage { get; set; }
- public bool HasUncommittedChanges { get; set; }
- public string Path { get; set; }
- public string DisplayVersion
- {
- get
- {
- var shortHash = string.IsNullOrEmpty(CommitHash) || CommitHash.Length < 7
- ? "unknown"
- : CommitHash.Substring(0, 7);
- return $"1.0.0.git{shortHash}";
- }
- }
- public string AssemblyFileVersion { get; set; }
- public string Dependencies { get; set; } = string.Empty;
- public string DependedBy { get; set; } = string.Empty;
- }
- }
|