chore: fix function names in comment

This commit is contained in:
cangqiaoyuzhuo 2024-10-28 22:14:17 +08:00 committed by GitHub
parent 3373b9dc02
commit 51d573fa90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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 {