🎨 优化热榜的链接为短链

This commit is contained in:
李寻欢
2024-07-16 11:58:52 +08:00
parent 9e4f151623
commit 78450aeace
5 changed files with 52 additions and 1 deletions

8
model/dto/urlc.go Normal file
View File

@@ -0,0 +1,8 @@
package dto
// ShortUrlResponse
// @description: 短链接返回结构体
type ShortUrlResponse struct {
Error int `json:"error"` // 错误码1表示发生错误0则正常
Short string `json:"short"` // 短链接
}