fix: import cycle

This commit is contained in:
2023-01-18 18:02:58 +08:00
parent 26f46f1eb6
commit 6466292524
11 changed files with 122 additions and 126 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import (
"cutego/modules/core/api/v1/response"
"cutego/modules/core/dataobject"
"cutego/modules/core/service"
"cutego/pkg/common"
"cutego/pkg/config"
"cutego/pkg/excels"
"cutego/pkg/logging"
"cutego/pkg/page"
@@ -287,7 +287,7 @@ func (a UserApi) UpdatePwd(c *gin.Context) {
// Avatar 修改头像
func (a UserApi) Avatar(c *gin.Context) {
dirPath := common.GetDirPath("avatar")
dirPath := config.GetDirPath("avatar")
file, _, err := c.Request.FormFile("avatarFile")
fileName := gotool.IdUtils.IdUUIDToRan(true) + ".jpg"
filePath := dirPath + fileName