@ -28,7 +28,7 @@ func (s *SourceLink) Link() (string, error) {
return baseURL.ResolveReference(linkPath).String(), nil
}
// GetTasksByID queries source link based on ID
// GetSourceLinkByID queries source link based on ID
func GetSourceLinkByID(id interface{}) (*SourceLink, error) {
link := &SourceLink{}
result := DB.Where("id = ?", id).First(link)
@ -234,7 +234,7 @@ func SlaveGetOauthCredential(c *gin.Context) {
// SlaveSelectTask 从机删除离线下载临时文件
// SlaveDeleteTempFile 从机删除离线下载临时文件
func SlaveDeleteTempFile(c *gin.Context) {
var service serializer.SlaveAria2Call
if err := c.ShouldBindJSON(&service); err == nil {