chore: migrate to gitea
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
package account
|
||||
|
||||
import (
|
||||
"budget/handler"
|
||||
"budget/internal/storage/dao/postgresql"
|
||||
"budget/internal/storage/model"
|
||||
"budget/internal/storage/validators"
|
||||
"budget/internal/user"
|
||||
"budget/internal/utils"
|
||||
"net/http"
|
||||
|
||||
"gitea.frenchtouch.duckdns.org/kratisto/budget-backend/handler"
|
||||
"gitea.frenchtouch.duckdns.org/kratisto/budget-backend/internal/storage/dao/postgresql"
|
||||
"gitea.frenchtouch.duckdns.org/kratisto/budget-backend/internal/storage/model"
|
||||
"gitea.frenchtouch.duckdns.org/kratisto/budget-backend/internal/storage/validators"
|
||||
"gitea.frenchtouch.duckdns.org/kratisto/budget-backend/internal/user"
|
||||
"gitea.frenchtouch.duckdns.org/kratisto/budget-backend/internal/utils"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@@ -75,13 +76,15 @@ func (c *Context) CreateAccountOfUser(gc *gin.Context) {
|
||||
return
|
||||
}
|
||||
utils.JSON(gc.Writer, http.StatusCreated, accountSaved)
|
||||
return
|
||||
}
|
||||
|
||||
func (c *Context) DeleteAccountOfUser(gc *gin.Context) {
|
||||
userId := gc.Param("userId")
|
||||
accountId := gc.Param("accountId")
|
||||
c.service.DeleteAccountOfUser(userId, accountId)
|
||||
err := c.service.DeleteAccountOfUser(userId, accountId)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user