refactor: shorten model and table prefixes
This commit is contained in:
@@ -102,7 +102,7 @@ func (h *Handler) upload(c *gin.Context) {
|
||||
c.JSON(http.StatusCreated, sourceDTO(*source))
|
||||
}
|
||||
|
||||
func sourceDTO(source models.SenlinAgentSource) SourceDTO {
|
||||
func sourceDTO(source models.SaSource) SourceDTO {
|
||||
return SourceDTO{
|
||||
ID: source.Identity, ProjectID: source.ProjectIdentity, Kind: source.Kind,
|
||||
Title: source.Title, StorageKey: filepath.Base(filepath.FromSlash(source.FilePath)),
|
||||
|
||||
Reference in New Issue
Block a user