diff --git a/.github/workflows/link.yml b/.github/workflows/link.yml index a010360..476d620 100644 --- a/.github/workflows/link.yml +++ b/.github/workflows/link.yml @@ -22,7 +22,7 @@ jobs: go-version: '1.20' - name: Build - run: go build -o sast-link + run: go build -o sast-link-backend - name: Deploy to Server uses: easingthemes/ssh-deploy@main diff --git a/api/v1/oauth.go b/api/v1/oauth.go index ddeb991..c4743dd 100644 --- a/api/v1/oauth.go +++ b/api/v1/oauth.go @@ -130,7 +130,7 @@ func OauthUserInfo(c *gin.Context) { c.JSON(http.StatusOK, result.Success(gin.H{ "email": user.Email, - "user_id": user.Uid, + "userId": user.Uid, })) } diff --git a/api/v1/user.go b/api/v1/user.go index ebedbd3..d4933f3 100644 --- a/api/v1/user.go +++ b/api/v1/user.go @@ -89,7 +89,7 @@ func UserInfo(ctx *gin.Context) { ctx.JSON(http.StatusOK, result.Success(gin.H{ "email": user.Email, - "user_id": user.Uid, + "userId": user.Uid, })) }