chore: fix function names in comment

pull/2130/head
cangqiaoyuzhuo 3 weeks ago committed by GitHub
parent 3373b9dc02
commit 51d573fa90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save