This commit is contained in:
eson
2023-10-16 15:19:25 +08:00
parent 7f88233f28
commit 8af873ac42
4 changed files with 22 additions and 2 deletions

View File

@@ -32,7 +32,16 @@ func (m *FsGuestModel) GenerateGuestID(ctx context.Context, AccessSecret uint64)
logx.Error(err)
return err
}
return nil
uinfo := &FsUserInfo{
Module: FsString("module"),
UserId: FsInt64(0),
GuestId: &record.GuestId,
Metadata: FsBytes("{}"),
Ctime: &now,
Utime: &now,
}
return tx.Model(FsUserInfo{}).Create(uinfo).Error
})
if err != nil {

View File

@@ -36,6 +36,11 @@ func FsBool(v bool) *bool {
return &v
}
func FsBytes(v string) *[]byte {
bs := []byte(v)
return &bs
}
// SubscriptionStatus 订阅状态
type SubscriptionStatus struct {
NotificationEmail struct {