Skip to content

Commit

Permalink
[fix] #144
Browse files Browse the repository at this point in the history
  • Loading branch information
yoneyan committed Aug 15, 2022
1 parent a9555d7 commit aea73f1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
13 changes: 0 additions & 13 deletions pkg/api/core/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,9 @@ type User struct {
MailToken string `json:"mail_token"`
}

type Payment struct {
gorm.Model
Group *Group `json:"group"`
GroupID *uint `json:"group_id"`
PaymentIntentID string `json:"payment_intent_id"`
Type uint `json:"type"`
Paid *bool `json:"paid"`
Refund *bool `json:"refund"`
Fee uint `json:"fee"`
Comment string `json:"comment"`
}

type Group struct {
gorm.Model
Users []User `json:"users"`
Payment Payment `json:"payment_membership"`
Services []Service `json:"services"`
Tickets []Ticket `json:"tickets"`
Memos []Memo `json:"memos"`
Expand Down
13 changes: 0 additions & 13 deletions pkg/api/core/payment/interface.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
package payment

import "github.com/homenoc/dsbd-backend/pkg/api/core"

const (
ID = 0
PaymentIntentID = 1
UpdatePaid = 140
UpdateAll = 150
)

type Input struct {
Plan string `json:"plan"` // yearly, monthly
}
Expand All @@ -17,10 +8,6 @@ type ChangeCardPaymentInit struct {
PaymentMethodID string `json:"payment_method_id"`
}

type ResultByAdmin struct {
Payment []core.Payment `json:"payment"`
}

type ResultByUser struct {
ClientSecret string `json:"client_secret"`
}
1 change: 0 additions & 1 deletion pkg/api/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ func InitDB() {
&core.Chat{},
&core.Token{},
&core.Notice{},
&core.Payment{},
)
log.Println(result)
}

0 comments on commit aea73f1

Please sign in to comment.