dao

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupSetting

type GroupSetting struct {
	ID           int64  `gorm:"primaryKey;autoIncrement:false"`
	BlackPlugins string `gorm:"size:512"`
	WhitePlugins string `gorm:"size:512"`
	Flag         string // 非空时代表该群尚未加入,是邀请入群请求flag
	CouldAdd     bool   `gorm:"default:false"` // 能否入此群标志位
	Welcome      string
}

type UserOwn added in v0.2.0

type UserOwn struct {
	ID       int64     `gorm:"primaryKey;autoIncrement:false"`
	Favor    float64   // 好感度
	LastSign time.Time // 上次签到时间
	SignDays int       // 连续签到天数
	Wealth   float64   // 拥有的基础货币数量
	Items    string    // 拥有的物品列表,商店相关
}

type UserPriority

type UserPriority struct {
	ID       int64 `gorm:"primaryKey;autoIncrement:false"`
	GroupID  int64 `gorm:"primaryKey;autoIncrement:false"`
	Priority int
}

type UserSetting

type UserSetting struct {
	ID           int64   `gorm:"primaryKey;autoIncrement:false"`
	BlackPlugins string  `gorm:"size:512"` // 白名单插件
	WhitePlugins string  `gorm:"size:512"` // 黑名单插件
	Nickname     string  // 昵称
	Likeability  float64 // 好感度(无用,抱歉...)
	Flag         string  // 非空时代表该用户尚未成为好友,是他的好友请求flag
	IsPullBlack  bool    // 是否被拉黑:拒绝好友请求、拒绝加群请求
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL