1、触发时间修改

2、用户增加父级邀请人
This commit is contained in:
2025-02-22 11:24:08 +08:00
parent 184e699195
commit 3f98f8556d
6 changed files with 57 additions and 21 deletions

View File

@ -1,9 +1,10 @@
package models
import (
"github.com/shopspring/decimal"
"time"
"github.com/shopspring/decimal"
"go-admin/common/models"
)
@ -11,7 +12,8 @@ type LineUser struct {
models.Model
GroupId int `json:"groupId" gorm:"type:int unsigned;comment:组别ID"`
Pid int `json:"pid" gorm:"type:int unsigned;comment:推荐人ID"`
Pid int `json:"pid" gorm:"type:int unsigned;comment:直接推荐人ID"`
TopReferrerId int `json:"topReferrerId" gorm:"type:int unsigned;comment:父级推荐人ID"`
Username string `json:"username" gorm:"type:varchar(32);comment:用户名"`
Nickname string `json:"nickname" gorm:"type:varchar(50);comment:昵称"`
Password string `json:"password" gorm:"type:varchar(32);comment:密码"`