Compare commits
3 Commits
1ca9dde471
...
12cc7544db
| Author | SHA1 | Date |
|---|---|---|
|
|
12cc7544db | |
|
|
5a3f899772 | |
|
|
f1695df463 |
|
|
@ -15,7 +15,7 @@ func SetUpFileGroup(router *gin.Engine) {
|
|||
fileGroup.POST("/config_update", UpdateConfigFile)
|
||||
fileGroup.POST("/config_search", SearchConfigFile)
|
||||
fileGroup.POST("/upload", UploadFileV2)
|
||||
fileGroup.GET("/:filename", GetFile)
|
||||
fileGroup.GET("/general/:filename", GetFile)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ func (c *ConfigFileService) SearchOneConfigFile(req *proto.ConfigFileReq, userId
|
|||
if err2 != nil {
|
||||
return []proto.SearchOneConfigFileResp{}, err2
|
||||
}
|
||||
resp := []proto.SearchOneConfigFileResp{{ID: config_file.ID, FileName: config_file.FileName, Content: string(content), CreatedAt: config_file.CreatedAt, UpdatedAt: config_file.UpdatedAt}}
|
||||
resp := []proto.SearchOneConfigFileResp{{ID: config_file.ID, FilePath: config_file.FilePath, FileName: config_file.FileName, Content: string(content), CreatedAt: config_file.CreatedAt, UpdatedAt: config_file.UpdatedAt}}
|
||||
return resp, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue