fonchain-artistinfo/cmd/model/invite.go

24 lines
493 B
Go
Raw Normal View History

2023-01-18 09:03:15 +00:00
package model
import (
"gorm.io/gorm"
)
// User 用户模型
type Invite struct {
gorm.Model
ID int32 `gorm:"not null default 0"`
UserId int32 `gorm:"not null default 0"`
InvitedId int32 `gorm:"not null default 0"`
}
type InvitedCodeService struct {
InvitedCode string `form:"invitedCode" json:"invitedCode"`
}
type InviteService struct {
Id int32 `json:"id"`
UserId int32 `form:"userId" json:"userId"`
InvitedId int32 `form:"invitedId" json:"invitedId"`
}