fix: update user plan and rearrange structur project

This commit is contained in:
ericprd
2025-03-08 22:46:05 +08:00
parent a47b7b7d3d
commit 13c976dcbf
54 changed files with 508 additions and 263 deletions
+2 -2
View File
@@ -6,13 +6,13 @@ import (
"github.com/google/uuid"
)
func (s *SubsAccs) Create(subsPlanId string) (string, error) {
func (s *accessor) Create(subsPlanId string) (string, error) {
spec := &subscribedomain.Subscribe{
ID: uuid.NewString(),
SubscribePlanID: subsPlanId,
}
if err := s.DB.Create(&spec).Error; err != nil {
if err := s.db.Create(&spec).Error; err != nil {
return "", err
}