refactor(video): prefix core files with video_

This commit is contained in:
Leon
2025-12-09 13:29:00 +08:00
parent 6a3480698a
commit 172fd0a35d
5 changed files with 3 additions and 5 deletions

View File

@@ -1,13 +1,11 @@
package account package account
import ( import (
"feedsystem_video_go/internal/account"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )
type AccountHandler struct { type AccountHandler struct {
accountService *account.AccountService accountService *AccountService
} }
type CreateAccountRequest struct { type CreateAccountRequest struct {
@@ -66,7 +64,7 @@ type LogoutRequest struct {
type LogoutResponse struct { type LogoutResponse struct {
} }
func NewAccountHandler(accountService *account.AccountService) *AccountHandler { func NewAccountHandler(accountService *AccountService) *AccountHandler {
return &AccountHandler{accountService: accountService} return &AccountHandler{accountService: accountService}
} }
func (h *AccountHandler) CreateAccount(c *gin.Context) { func (h *AccountHandler) CreateAccount(c *gin.Context) {
@@ -75,7 +73,7 @@ func (h *AccountHandler) CreateAccount(c *gin.Context) {
c.JSON(400, gin.H{"error": err.Error()}) c.JSON(400, gin.H{"error": err.Error()})
return return
} }
if err := h.accountService.CreateAccount(&account.Account{ if err := h.accountService.CreateAccount(&Account{
Username: req.Username, Username: req.Username,
Password: req.Password, Password: req.Password,
}); err != nil { }); err != nil {