24 lines
493 B
Go
24 lines
493 B
Go
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"`
|
|
}
|