entity

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VIP_COLLECTION = "vip"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InviteRecord

type InviteRecord struct {
	Id        string `bson:"_id,omitempty"`        // ID
	Nickname  string `bson:"nickname,omitempty"`   // 用户昵称
	Email     string `bson:"email,omitempty"`      // 用户邮箱
	CreatedAt int64  `bson:"created_at,omitempty"` // 注册时间
	Inviter   int    `bson:"inviter,omitempty"`    // 邀请人
}

type Robot

type Robot struct {
	Id        string `bson:"_id,omitempty"`        // 机器人ID
	UserId    int    `bson:"user_id,omitempty"`    // 绑定的用户ID
	IsTalk    int    `bson:"is_talk,omitempty"`    // 是否可发送消息[0:否;1:是;]
	Type      int    `bson:"type,omitempty"`       // 机器人类型
	Status    int    `bson:"status,omitempty"`     // 状态[-1:已删除;0:正常;1:已禁用;]
	Corp      string `bson:"corp,omitempty"`       // 公司
	Model     string `bson:"model,omitempty"`      // 模型
	ModelType string `bson:"model_type,omitempty"` // 模型类型, 文生文: text, 画图: image
	Role      string `bson:"role,omitempty"`       // 角色
	Prompt    string `bson:"prompt,omitempty"`     // 提示
	Proxy     string `bson:"proxy,omitempty"`      // 代理
	Key       string `bson:"key,omitempty"`        // 密钥
	CreatedAt int64  `bson:"created_at,omitempty"` // 创建时间
	UpdatedAt int64  `bson:"updated_at,omitempty"` // 更新时间
}

type Rule

type Rule struct {
	OnlineTime    int `bson:"online_time,omitempty"`     // 在线时间
	RegDays       int `bson:"reg_days,omitempty"`        // 注册天数
	InviteNum     int `bson:"invite_num,omitempty"`      // 邀请人数
	InviteRegDays int `bson:"invite_reg_days,omitempty"` // 邀请注册天数
}

type User

type User struct {
	Id        string `bson:"_id,omitempty"`        // ID
	UserId    int    `bson:"user_id,omitempty"`    // 用户ID
	Nickname  string `bson:"nickname,omitempty"`   // 昵称
	Avatar    string `bson:"avatar,omitempty"`     // 头像
	Gender    int    `bson:"gender,omitempty"`     // 性别[0:保密;1:男;2:女]
	Mobile    string `bson:"mobile,omitempty"`     // 手机号
	Email     string `bson:"email,omitempty"`      // 邮箱
	Birthday  string `bson:"birthday,omitempty"`   // 生日
	Motto     string `bson:"motto,omitempty"`      // 座右铭
	VipLevel  int    `bson:"vip_level,omitempty"`  // 会员等级
	SecretKey string `bson:"secret_key,omitempty"` // 密钥
	Status    int    `bson:"status,omitempty"`     // 状态[1:正常;2:禁用;-1:删除]
	CreatedAt int64  `bson:"created_at,omitempty"` // 注册时间
	UpdatedAt int64  `bson:"updated_at,omitempty"` // 更新时间
}

type Vip

type Vip struct {
	Id          string   `bson:"_id,omitempty"`          // ID
	Level       int      `bson:"level,omitempty"`        // 等级
	Name        string   `bson:"name,omitempty"`         // 名称
	Models      []string `bson:"models,omitempty"`       // 模型权限
	FreeTokens  int      `bson:"free_tokens,omitempty"`  // 免费额度
	MinuteLimit int      `bson:"minute_limit,omitempty"` // 分钟限额
	DailyLimit  int      `bson:"daily_limit,omitempty"`  // 每日限额
	Rule        Rule     `bson:"rule,omitempty"`         // 规则
	Remark      string   `bson:"remark,omitempty"`       // 备注
	Status      int      `bson:"status,omitempty"`       // 状态[1:正常;2:下线;-1:删除]
	CreatedAt   int64    `bson:"created_at,omitempty"`   // 创建时间
	UpdatedAt   int64    `bson:"updated_at,omitempty"`   // 更新时间
}

Jump to

Keyboard shortcuts

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