internal

package
v0.0.0-...-b941d56 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	Id                 int64  `orm:"id,primary"           json:"id"`                 //
	UserId             int64  `orm:"user_id"              json:"userId"`             // 前台会员ID
	AdminName          string `orm:"admin_name"           json:"adminName"`          // 管理员名
	RealName           string `orm:"real_name"            json:"realName"`           // 真实姓名
	Remark             string `orm:"remark"               json:"remark"`             // 备注
	RoleId             int64  `orm:"role_id"              json:"roleId"`             // 角色ID
	IsEnable           uint   `orm:"is_enable"            json:"isEnable"`           // 是否启用
	AuthKey            string `orm:"auth_key"             json:"authKey"`            // 授权key
	PasswordHash       string `orm:"password_hash"        json:"passwordHash"`       // hash密码
	PasswordResetToken string `orm:"password_reset_token" json:"passwordResetToken"` //
	DontDel            uint   `orm:"dont_del"             json:"dontDel"`            // 是否允许删除
	LoginNums          uint   `orm:"login_nums"           json:"loginNums"`          // 登陆次数
	FailNums           uint   `orm:"fail_nums"            json:"failNums"`           // 失败次数
	LastLoginIp        string `orm:"last_login_ip"        json:"lastLoginIp"`        // 最后登录IP
	LastLoginAt        uint   `orm:"last_login_at"        json:"lastLoginAt"`        // 最后登录时间
	BindIp             string `orm:"bind_ip"              json:"bindIp"`             // 绑定IP
	CreateAdmin        string `orm:"create_admin"         json:"createAdmin"`        // 创建管理员ID
	UpdateAdmin        string `orm:"update_admin"         json:"updateAdmin"`        // 更新管理员ID
	CreatedAt          uint   `orm:"created_at"           json:"createdAt"`          // 创建时间
	UpdatedAt          uint   `orm:"updated_at"           json:"updatedAt"`          // 更新时间
	IsDelete           uint   `orm:"is_delete"            json:"isDelete"`           // 是否删除
	DeletedAt          uint   `orm:"deleted_at"           json:"deletedAt"`          // 删除时间
}

Admin is the golang structure for table c_admin.

type AdminRole

type AdminRole struct {
	Id               uint64 `orm:"id,primary"        json:"id"`               //
	RoleName         string `orm:"role_name"         json:"roleName"`         // 角色名
	Remark           string `orm:"remark"            json:"remark"`           // 备注
	Permission       string `orm:"permission"        json:"permission"`       // 权限
	ColumnPermission string `orm:"column_permission" json:"columnPermission"` // 字段权限
	DontDel          uint   `orm:"dont_del"          json:"dontDel"`          // 不允许删除
	CreateAdmin      string `orm:"create_admin"      json:"createAdmin"`      // 创建管理员ID
	UpdateAdmin      string `orm:"update_admin"      json:"updateAdmin"`      // 更新管理员ID
	CreatedAt        uint   `orm:"created_at"        json:"createdAt"`        // 创建时间
	UpdatedAt        uint   `orm:"updated_at"        json:"updatedAt"`        // 更新时间
}

AdminRole is the golang structure for table c_admin_role.

type Config

type Config struct {
	ConfigName string `orm:"config_name,primary" json:"configName"` // 配置参数名
	Title      string `orm:"title"               json:"title"`      // 标题
	Unit       string `orm:"unit"                json:"unit"`       // 单位
	InputType  int    `orm:"input_type"          json:"inputType"`  // 表单类型
	Options    string `orm:"options"             json:"options"`    // 参数配置的选项
	Value      string `orm:"value"               json:"value"`      // 配置值
	Type       string `orm:"type"                json:"type"`       // 类型
	Sort       int    `orm:"sort"                json:"sort"`       // 排序
	CreatedAt  int    `orm:"created_at"          json:"createdAt"`  // 创建时间
	UpdatedAt  int    `orm:"updated_at"          json:"updatedAt"`  // 更新时间
}

Config is the golang structure for table c_config.

type ConfigBaidu

type ConfigBaidu struct {
	Id        int64  `orm:"id,primary" json:"id"`        // ID
	Title     string `orm:"title"      json:"title"`     // 标题
	ApiKey    string `orm:"api_key"    json:"apiKey"`    //
	SecretKey string `orm:"secret_key" json:"secretKey"` //
	Status    int    `orm:"status"     json:"status"`    // 启用状态
	CallNum   int    `orm:"call_num"   json:"callNum"`   // 调用次数
	Features  string `orm:"features"   json:"features"`  // 可用功能数组json
	CreatedAt int    `orm:"created_at" json:"createdAt"` // 创建时间
	UpdatedAt int    `orm:"updated_at" json:"updatedAt"` // 更新时间
}

ConfigBaidu is the golang structure for table c_config_baidu.

type ConfigLevel

type ConfigLevel struct {
	Id              int    `orm:"id,primary"       json:"id"`              // ID
	LevelName       string `orm:"level_name"       json:"levelName"`       // 级别名称
	MonthGpt3       int    `orm:"month_gpt3"       json:"monthGpt3"`       // 月赠送gpt3次数
	MonthGpt4       int    `orm:"month_gpt4"       json:"monthGpt4"`       // 月赠送gpt4次数
	MonthMidjourney int    `orm:"month_midjourney" json:"monthMidjourney"` // 月赠送midjourney次数
}

ConfigLevel is the golang structure for table c_config_level.

type ConfigMidjourney

type ConfigMidjourney struct {
	Id               int64  `orm:"id,primary"         json:"id"`               // ID
	Title            string `orm:"title"              json:"title"`            // 标题
	GuildId          string `orm:"guild_id"           json:"guildId"`          // 服务ID
	ChannelId        string `orm:"channel_id"         json:"channelId"`        // 频道ID
	UserToken        string `orm:"user_token"         json:"userToken"`        // 用户Token
	MjBotId          string `orm:"mj_bot_id"          json:"mjBotId"`          // midjourney的BotId
	BotToken         string `orm:"bot_token"          json:"botToken"`         // 自己的BotToken
	SessionId        string `orm:"session_id"         json:"sessionId"`        // SessionID
	UserAgent        string `orm:"user_agent"         json:"userAgent"`        // UserAgent
	HuggingFaceToken string `orm:"hugging_face_token" json:"huggingFaceToken"` // HuggingFaceToken
	Proxy            string `orm:"proxy"              json:"proxy"`            // 代理地址
	Status           int    `orm:"status"             json:"status"`           // 是否启用 1启用 0不启用
	ListenModel      int    `orm:"listen_model"       json:"listenModel"`      // 监听模式 1userWss 0bot
	CreateModel      string `orm:"create_model"       json:"createModel"`      // 生成图的模式 fast relax turbo
	WsIdleTime       int    `orm:"ws_idle_time"       json:"wsIdleTime"`       // websocket闲置时间秒数
	CallNum          int    `orm:"call_num"           json:"callNum"`          // 接口调用次数
	CreatedAt        int    `orm:"created_at"         json:"createdAt"`        // 创建时间
	UpdatedAt        int    `orm:"updated_at"         json:"updatedAt"`        // 更新时间
}

ConfigMidjourney is the golang structure for table c_config_midjourney.

type ConfigOpenai

type ConfigOpenai struct {
	Id        int64  `orm:"id,primary" json:"id"`        // ID
	Title     string `orm:"title"      json:"title"`     // 标题
	ApiUrl    string `orm:"api_url"    json:"apiUrl"`    // 接口地址
	ApiKey    string `orm:"api_key"    json:"apiKey"`    // api_key
	Proxy     string `orm:"proxy"      json:"proxy"`     // 代理地址
	MaxTokens int    `orm:"max_tokens" json:"maxTokens"` // 最大Token
	Gpt3Model string `orm:"gpt3_model" json:"gpt3Model"` // gpt3使用模型
	Gpt4Model string `orm:"gpt4_model" json:"gpt4Model"` // gpt4使用模型
	Status    int    `orm:"status"     json:"status"`    // 是否启用 1启用 0不启用
	CallNum   int    `orm:"call_num"   json:"callNum"`   // 接口调用次数
	CreatedAt int    `orm:"created_at" json:"createdAt"` // 创建时间
	UpdatedAt int    `orm:"updated_at" json:"updatedAt"` // 更新时间
}

ConfigOpenai is the golang structure for table c_config_openai.

type ConfigPay

type ConfigPay struct {
	Id                  int    `orm:"id,primary"           json:"id"`                  // ID
	ApiName             string `orm:"api_name"             json:"apiName"`             // 支付方式名称
	Params              string `orm:"params"               json:"params"`              // 配置参数json
	PayChannel          string `orm:"pay_channel"          json:"payChannel"`          // 支付渠道的配置json
	FrontendDescription string `orm:"frontend_description" json:"frontendDescription"` // 支付方式描述
	BackendDescription  string `orm:"backend_description"  json:"backendDescription"`  // 支付方式后台描述
	Status              int    `orm:"status"               json:"status"`              // 状态
	CreatedAt           int    `orm:"created_at"           json:"createdAt"`           // 创建时间
	UpdatedAt           int    `orm:"updated_at"           json:"updatedAt"`           // 更新时间
}

ConfigPay is the golang structure for table c_config_pay.

type ConfigPayQr

type ConfigPayQr struct {
	Id     int    `orm:"id,primary"    json:"id"`     // ID
	Amount int    `orm:"amount,unique" json:"amount"` // 金额
	PayUrl string `orm:"pay_url"       json:"payUrl"` // 二维码
}

ConfigPayQr is the golang structure for table c_config_pay_qr.

type ConfigSensitiveWord

type ConfigSensitiveWord struct {
	Id        int64  `orm:"id,primary" json:"id"`        // ID
	Content   string `orm:"content"    json:"content"`   // 敏感词内容
	CreatedAt int    `orm:"created_at" json:"createdAt"` // 创建时间
}

ConfigSensitiveWord is the golang structure for table c_config_sensitive_word.

type ConfigWallet

type ConfigWallet struct {
	Field      string `orm:"field,primary" json:"field"`      // 钱包字段名
	WalletName string `orm:"wallet_name"   json:"walletName"` // 钱包名称
}

ConfigWallet is the golang structure for table c_config_wallet.

type Conversation

type Conversation struct {
	Id        int64  `orm:"id,primary" json:"id"`        // ID
	UserId    int64  `orm:"user_id"    json:"userId"`    // 会员ID
	TopicId   int64  `orm:"topic_id"   json:"topicId"`   // 话题
	Role      string `orm:"role"       json:"role"`      // 对话角色
	Content   string `orm:"content"    json:"content"`   // 对话内容
	CreatedAt int    `orm:"created_at" json:"createdAt"` // 创建时间
	UpdatedAt int    `orm:"updated_at" json:"updatedAt"` // 更新时间
}

Conversation is the golang structure for table c_conversation.

type ConversationMidjourney

type ConversationMidjourney struct {
	ConversationId int64  `orm:"conversation_id,primary" json:"conversationId"` // 对话id
	ActionType     int    `orm:"action_type"             json:"actionType"`     // 行为类型 1生图 2Upsale 3Variate 4Reroll
	FileId         int64  `orm:"file_id"                 json:"fileId"`         // 图片文件ID
	Components     string `orm:"components"              json:"components"`     // 附加组件json 用于u,v,r等按钮及记录
	ErrorData      string `orm:"error_data"              json:"errorData"`      // 错误信息
}

ConversationMidjourney is the golang structure for table c_conversation_midjourney.

type DomainCert

type DomainCert struct {
	CertKey     string      `orm:"cert_key,primary" json:"certKey"`     // cert_key
	Domains     string      `orm:"domains"          json:"domains"`     // 域名逗号分隔
	ExpireDate  *gtime.Time `orm:"expire_date"      json:"expireDate"`  // 有效日期
	CertContent string      `orm:"cert_content"     json:"certContent"` // 证书内容
	IsBan       int         `orm:"is_ban"           json:"isBan"`       // 是否被禁用
	BanReason   string      `orm:"ban_reason"       json:"banReason"`   // 禁用原因
	CallNum     int         `orm:"call_num"         json:"callNum"`     // 接口被请求次数
	CreatedAt   int         `orm:"created_at"       json:"createdAt"`   // 创建时间
	UpdatedAt   int         `orm:"updated_at"       json:"updatedAt"`   // 更新时间
}

DomainCert is the golang structure for table c_domain_cert.

type DomainCertFlow

type DomainCertFlow struct {
	Id             int64       `orm:"id,primary"       json:"id"`             // id
	CertKey        string      `orm:"cert_key"         json:"certKey"`        // 证书
	OldExpireDate  *gtime.Time `orm:"old_expire_date"  json:"oldExpireDate"`  // 原有效期
	NewExpireDate  *gtime.Time `orm:"new_expire_date"  json:"newExpireDate"`  // 更新后的有效期
	OldCertContent string      `orm:"old_cert_content" json:"oldCertContent"` // 原证书内容
	NewCertContent string      `orm:"new_cert_content" json:"newCertContent"` // 更新后的证书内容
	CreatedAt      int         `orm:"created_at"       json:"createdAt"`      // 创建时间
}

DomainCertFlow is the golang structure for table c_domain_cert_flow.

type EmailCode

type EmailCode struct {
	Id            int64  `orm:"id,primary"     json:"id"`            // ID
	Email         string `orm:"email,unique"   json:"email"`         // 邮箱
	Ip            string `orm:"ip"             json:"ip"`            // IP
	Scenario      string `orm:"scenario"       json:"scenario"`      // 场景
	Code          string `orm:"code"           json:"code"`          // 验证码
	ValidateTimes int    `orm:"validate_times" json:"validateTimes"` // 校验次数
	CreatedAt     int    `orm:"created_at"     json:"createdAt"`     // 创建时间
	UpdatedAt     int    `orm:"updated_at"     json:"updatedAt"`     // 更新时间
}

EmailCode is the golang structure for table c_email_code.

type FileMidjourney

type FileMidjourney struct {
	Id         int64  `orm:"id,primary"   json:"id"`         // id
	UserId     int64  `orm:"user_id"      json:"userId"`     // 会员id
	QueueId    int64  `orm:"queue_id"     json:"queueId"`    // 生成该图片的队列id
	FileName   string `orm:"file_name"    json:"fileName"`   // 文件名
	Path       string `orm:"path"         json:"path"`       // 本地储存路径
	Thumbnail  string `orm:"thumbnail"    json:"thumbnail"`  // 缩略图的本地保存路径
	Prompt     string `orm:"prompt"       json:"prompt"`     // 生成该图片的提示词
	MjFileName string `orm:"mj_file_name" json:"mjFileName"` // midjourney的文件名
	MjUrl      string `orm:"mj_url"       json:"mjUrl"`      // midjourney的路径
	Width      int    `orm:"width"        json:"width"`      // 宽
	Height     int    `orm:"height"       json:"height"`     // 高
	Size       int    `orm:"size"         json:"size"`       // 大小
	CreatedAt  int    `orm:"created_at"   json:"createdAt"`  // 创建时间
}

FileMidjourney is the golang structure for table c_file_midjourney.

type HandOutErrorFlow

type HandOutErrorFlow struct {
	Id        int64  `orm:"id,primary" json:"id"`        // id
	UserId    int64  `orm:"user_id"    json:"userId"`    // 会员ID
	LevelId   int    `orm:"level_id"   json:"levelId"`   // 会员级别
	ErrorData string `orm:"error_data" json:"errorData"` // 错误内容
	CreatedAt int    `orm:"created_at" json:"createdAt"` // 创建时间
}

HandOutErrorFlow is the golang structure for table c_hand_out_error_flow.

type LogOperation

type LogOperation struct {
	Id            int64  `orm:"id,primary"     json:"id"`            // ID
	StatusCode    string `orm:"status_code"    json:"statusCode"`    // 状态码
	Router        string `orm:"router"         json:"router"`        // 请求路径
	RequestHeader string `orm:"request_header" json:"requestHeader"` // 请求头
	Content       string `orm:"content"        json:"content"`       // 操作内容
	AdminName     string `orm:"admin_name"     json:"adminName"`     // 管理员名
	CreatedAt     int    `orm:"created_at"     json:"createdAt"`     // 创建时间
}

LogOperation is the golang structure for table c_log_operation.

type PayFlow

type PayFlow struct {
	Id                int64  `orm:"id,primary"          json:"id"`                // ID
	FlowType          int    `orm:"flow_type"           json:"flowType"`          // 记录类型 1商城订单
	TargetId          int64  `orm:"target_id"           json:"targetId"`          // 目标ID
	ConfigPayId       int    `orm:"config_pay_id"       json:"configPayId"`       // 支付接口ID
	PayChannel        string `orm:"pay_channel"         json:"payChannel"`        // 支付渠道以支付接口为准
	OrderAmount       int    `orm:"order_amount"        json:"orderAmount"`       // 订单原金额
	PayAmount         int    `orm:"pay_amount"          json:"payAmount"`         // 实付金额
	Status            int    `orm:"status"              json:"status"`            // 状态 0已创建 1已支付 2支付失败 3已过期
	PaymentResponse   string `orm:"payment_response"    json:"paymentResponse"`   // 调用接口返回内容
	PaymentFailReason string `orm:"payment_fail_reason" json:"paymentFailReason"` // 调用接口失败原因
	NotifyResponse    string `orm:"notify_response"     json:"notifyResponse"`    // 接口回调原文
	NotifyFailReason  string `orm:"notify_fail_reason"  json:"notifyFailReason"`  // 回调失败原因
	CreatedAt         int    `orm:"created_at"          json:"createdAt"`         // 创建时间
	UpdatedAt         int    `orm:"updated_at"          json:"updatedAt"`         // 更新时间
	PaidAt            int    `orm:"paid_at"             json:"paidAt"`            // 支付时间
	DueExpireAt       int    `orm:"due_expire_at"       json:"dueExpireAt"`       // 应到期时间
	ExpiredAt         int    `orm:"expired_at"          json:"expiredAt"`         // 过期时间
}

PayFlow is the golang structure for table c_pay_flow.

type QueueMidjourney

type QueueMidjourney struct {
	Id              int64  `orm:"id,primary"       json:"id"`              // ID
	ConversationId  int64  `orm:"conversation_id"  json:"conversationId"`  // 对话ID
	ConfigId        int64  `orm:"config_id"        json:"configId"`        // 接口配置ID
	ActionType      int    `orm:"action_type"      json:"actionType"`      // 行为类型  1生图 2Upscale
	ApplicationType int    `orm:"application_type" json:"applicationType"` // 应用机器人类型 1MJ 2Niji
	Nonce           int64  `orm:"nonce"            json:"nonce"`           // nonceID
	MessageId       int64  `orm:"message_id"       json:"messageId"`       // 消息结束ID(生成图片完成时的消息ID)
	ReferMessageId  int64  `orm:"refer_message_id" json:"referMessageId"`  // 提到的消息ID(生图动作为0)
	InteractionId   int64  `orm:"interaction_id"   json:"interactionId"`   // 交互ID
	ReferIndex      int    `orm:"refer_index"      json:"referIndex"`      // 处理提到的消息的索引
	MessageHash     string `orm:"message_hash"     json:"messageHash"`     // 消息hash
	MessageType     int    `orm:"message_type"     json:"messageType"`     // 消息type
	MessageContent  string `orm:"message_content"  json:"messageContent"`  // 消息内容(提示词内容用于匹配任务)
	RequestType     int    `orm:"request_type"     json:"requestType"`     // 请求消息时用到的类型 2生图 3Upscale 3variation
	RequestUrl      string `orm:"request_url"      json:"requestUrl"`      // 请求接口的url
	RequestData     string `orm:"request_data"     json:"requestData"`     // 请求接口的数据内容
	ResponseData    string `orm:"response_data"    json:"responseData"`    // 接口返回的数据内容
	ErrorData       string `orm:"error_data"       json:"errorData"`       // 错误数据内容
	Status          int    `orm:"status"           json:"status"`          // 状态 0任务进入队列 1 任务开始 2任务正常结束 3任务出错
	Progress        int    `orm:"progress"         json:"progress"`        // 任务执行进度
	CreatedAt       int    `orm:"created_at"       json:"createdAt"`       // 创建时间
	StartedAt       int    `orm:"started_at"       json:"startedAt"`       // 任务开始时间
	EndedAt         int    `orm:"ended_at"         json:"endedAt"`         // 任务结束时间
	ErrorAt         int    `orm:"error_at"         json:"errorAt"`         // 任务发生错误时间
}

QueueMidjourney is the golang structure for table c_queue_midjourney.

type ShopGoods

type ShopGoods struct {
	Id                int64  `orm:"id,primary"          json:"id"`                // ID
	Title             string `orm:"title"               json:"title"`             // 商品标题
	Content           string `orm:"content"             json:"content"`           // 商品内容
	FeatItems         string `orm:"feat_items"          json:"featItems"`         // 商品特色条目JSON
	BuyType           int    `orm:"buy_type"            json:"buyType"`           // 购买类型 1购买级别 2购买balance 3购买gpt3 4购买gpt4 5购买midjourney
	ActiveLevelId     int    `orm:"active_level_id"     json:"activeLevelId"`     // 购买的级别
	ActiveExpireType  int    `orm:"active_expire_type"  json:"activeExpireType"`  // 激活有效期类型 0无 1一天 2一月 3一年
	ActiveExpireValue int    `orm:"active_expire_value" json:"activeExpireValue"` // 激活有效期值
	BuyValue          int    `orm:"buy_value"           json:"buyValue"`          // 购买的提问次数的值分单位
	MarketPrice       int    `orm:"market_price"        json:"marketPrice"`       // 市场价
	RealPrice         int    `orm:"real_price"          json:"realPrice"`         // 实际价格
	Status            int    `orm:"status"              json:"status"`            // 是否上架
	Sort              int    `orm:"sort"                json:"sort"`              // 排序
	CreatedAt         int    `orm:"created_at"          json:"createdAt"`         // 创建时间
	UpdatedAt         int    `orm:"updated_at"          json:"updatedAt"`         // 更新时间
}

ShopGoods is the golang structure for table c_shop_goods.

type ShopOrder

type ShopOrder struct {
	Id          int64  `orm:"id,primary"      json:"id"`          // ID
	OrderSn     string `orm:"order_sn,unique" json:"orderSn"`     // 订单编号
	UserId      int64  `orm:"user_id"         json:"userId"`      // 会员ID
	OrderAmount int    `orm:"order_amount"    json:"orderAmount"` // 订单金额
	PayAmount   int    `orm:"pay_amount"      json:"payAmount"`   // 实付金额
	Status      int    `orm:"status"          json:"status"`      // 状态 0创建 1已支付 2已发货 3已收货 4已完成 9已取消
	CreatedAt   int    `orm:"created_at"      json:"createdAt"`   // 创建时间
	UpdatedAt   int    `orm:"updated_at"      json:"updatedAt"`   // 更新时间
	PaidAt      int    `orm:"paid_at"         json:"paidAt"`      // 支付时间
	DueExpireAt int    `orm:"due_expire_at"   json:"dueExpireAt"` // 应过期时间
	ExpiredAt   int    `orm:"expired_at"      json:"expiredAt"`   // 过期时间
}

ShopOrder is the golang structure for table c_shop_order.

type ShopOrderGoods

type ShopOrderGoods struct {
	Id            int64  `orm:"id,primary"     json:"id"`            // ID
	OrderId       int64  `orm:"order_id"       json:"orderId"`       // 订单ID
	UserId        int64  `orm:"user_id"        json:"userId"`        // 会员ID
	GoodsId       int64  `orm:"goods_id"       json:"goodsId"`       // 商品ID
	GoodsNum      int    `orm:"goods_num"      json:"goodsNum"`      // 商品数量
	GoodsSnapshot string `orm:"goods_snapshot" json:"goodsSnapshot"` // 商品快照
	CreatedAt     int    `orm:"created_at"     json:"createdAt"`     // 创建时间
	UpdatedAt     int    `orm:"updated_at"     json:"updatedAt"`     // 更新时间
}

ShopOrderGoods is the golang structure for table c_shop_order_goods.

type Topic

type Topic struct {
	Id        int64  `orm:"id,primary" json:"id"`        // ID
	UserId    int64  `orm:"user_id"    json:"userId"`    // 会员ID
	Title     string `orm:"title"      json:"title"`     // 话题标题
	Type      int    `orm:"type"       json:"type"`      // 话题类型 1:gpt3.5 2:gpt4 3:midjourney
	CreatedAt int    `orm:"created_at" json:"createdAt"` // 创建时间
	UpdatedAt int    `orm:"updated_at" json:"updatedAt"` // 更新时间
}

Topic is the golang structure for table c_topic.

type User

type User struct {
	Id               int64       `orm:"id,primary"         json:"id"`               // ID
	Username         string      `orm:"username,unique"    json:"username"`         // 用户名
	Password         string      `orm:"password"           json:"password"`         // 密码
	LevelId          int         `orm:"level_id"           json:"levelId"`          // 级别ID
	LevelExpireDate  *gtime.Time `orm:"level_expire_date"  json:"levelExpireDate"`  // 级别到期日期
	LevelExpireYear  int         `orm:"level_expire_year"  json:"levelExpireYear"`  // 级别到期日期年
	LevelExpireMonth int         `orm:"level_expire_month" json:"levelExpireMonth"` // 级别到期日期月
	LevelExpireDay   int         `orm:"level_expire_day"   json:"levelExpireDay"`   // 级别到期日期日
	LastLoginAt      int         `orm:"last_login_at"      json:"lastLoginAt"`      // 最后一次登录时间
	IsBan            int         `orm:"is_ban"             json:"isBan"`            // 是否被禁用
	CreatedAt        int         `orm:"created_at"         json:"createdAt"`        // 创建时间
	UpdatedAt        int         `orm:"updated_at"         json:"updatedAt"`        // 更新时间
}

User is the golang structure for table c_user.

type UserInfo

type UserInfo struct {
	UserId   int64  `orm:"user_id,primary" json:"userId"`   // ID
	Nickname string `orm:"nickname"        json:"nickname"` // 昵称
	Avatar   string `orm:"avatar"          json:"avatar"`   // 头像
}

UserInfo is the golang structure for table c_user_info.

type UserLevelFlow

type UserLevelFlow struct {
	Id            int64       `orm:"id,primary"      json:"id"`            // id
	UserId        int64       `orm:"user_id"         json:"userId"`        // 会员ID
	OldLevelId    int         `orm:"old_level_id"    json:"oldLevelId"`    // 原级别
	NewLevelId    int         `orm:"new_level_id"    json:"newLevelId"`    // 新级别
	OldExpireDate *gtime.Time `orm:"old_expire_date" json:"oldExpireDate"` // 原有效期
	NewExpireDate *gtime.Time `orm:"new_expire_date" json:"newExpireDate"` // 新有效期
	AdminName     string      `orm:"admin_name"      json:"adminName"`     // 操作管理员名称
	Remark        string      `orm:"remark"          json:"remark"`        // 变更描述
	CreatedAt     int         `orm:"created_at"      json:"createdAt"`     // 创建时间
}

UserLevelFlow is the golang structure for table c_user_level_flow.

type UserSensitiveWord

type UserSensitiveWord struct {
	Id             int64  `orm:"id,primary"      json:"id"`             // ID
	UserId         int64  `orm:"user_id"         json:"userId"`         // 会员ID
	Type           int    `orm:"type"            json:"type"`           // 类型: 1对话 2用户名
	TopicType      int    `orm:"topic_type"      json:"topicType"`      // 对话类型: 0无 1gpt3 2gpt4 3mj
	Content        string `orm:"content"         json:"content"`        // 触发敏感词原文
	ValidateResult string `orm:"validate_result" json:"validateResult"` // 敏感词json
	CreatedAt      int    `orm:"created_at"      json:"createdAt"`      // 创建时间
}

UserSensitiveWord is the golang structure for table c_user_sensitive_word.

type Wallet

type Wallet struct {
	UserId     int64 `orm:"user_id,primary" json:"userId"`     // 会员ID
	Balance    uint  `orm:"balance"         json:"balance"`    // 余额
	Gpt3       uint  `orm:"gpt3"            json:"gpt3"`       // gpt3提问次数
	Gpt4       uint  `orm:"gpt4"            json:"gpt4"`       // gpt4提问次数
	Midjourney uint  `orm:"midjourney"      json:"midjourney"` // midjourney提问次数
}

Wallet is the golang structure for table c_wallet.

type WalletFlowBalance

type WalletFlowBalance struct {
	Id         int64  `orm:"id,primary"  json:"id"`         // ID
	UserId     uint64 `orm:"user_id"     json:"userId"`     // 会员ID
	Amount     int    `orm:"amount"      json:"amount"`     // 变动金额
	Total      int    `orm:"total"       json:"total"`      // 变动后的余额
	IsIncr     int    `orm:"is_incr"     json:"isIncr"`     // 增加减少
	TargetType string `orm:"target_type" json:"targetType"` // 目标类型
	TargetId   int64  `orm:"target_id"   json:"targetId"`   // 目标ID
	Remark     string `orm:"remark"      json:"remark"`     // 备注
	AdminName  string `orm:"admin_name"  json:"adminName"`  // 操作管理员
	Year       int    `orm:"year"        json:"year"`       // 年
	Month      int    `orm:"month"       json:"month"`      // 月
	Day        int    `orm:"day"         json:"day"`        // 日
	CreatedAt  int    `orm:"created_at"  json:"createdAt"`  // 创建时间
	UpdatedAt  int    `orm:"updated_at"  json:"updatedAt"`  // 更新时间
}

WalletFlowBalance is the golang structure for table c_wallet_flow_balance.

type WalletFlowGpt3

type WalletFlowGpt3 struct {
	Id         int64  `orm:"id,primary"  json:"id"`         // ID
	UserId     uint64 `orm:"user_id"     json:"userId"`     // 会员ID
	Amount     int    `orm:"amount"      json:"amount"`     // 变动金额
	Total      int    `orm:"total"       json:"total"`      // 变动后的余额
	IsIncr     int    `orm:"is_incr"     json:"isIncr"`     // 增加减少
	TargetType string `orm:"target_type" json:"targetType"` // 目标类型
	TargetId   int64  `orm:"target_id"   json:"targetId"`   // 目标ID
	Remark     string `orm:"remark"      json:"remark"`     // 备注
	AdminName  string `orm:"admin_name"  json:"adminName"`  // 操作管理员
	Year       int    `orm:"year"        json:"year"`       // 年
	Month      int    `orm:"month"       json:"month"`      // 月
	Day        int    `orm:"day"         json:"day"`        // 日
	CreatedAt  int    `orm:"created_at"  json:"createdAt"`  // 创建时间
	UpdatedAt  int    `orm:"updated_at"  json:"updatedAt"`  // 更新时间
}

WalletFlowGpt3 is the golang structure for table c_wallet_flow_gpt3.

type WalletFlowGpt4

type WalletFlowGpt4 struct {
	Id         int64  `orm:"id,primary"  json:"id"`         // ID
	UserId     uint64 `orm:"user_id"     json:"userId"`     // 会员ID
	Amount     int    `orm:"amount"      json:"amount"`     // 变动金额
	Total      int    `orm:"total"       json:"total"`      // 变动后的余额
	IsIncr     int    `orm:"is_incr"     json:"isIncr"`     // 增加减少
	TargetType string `orm:"target_type" json:"targetType"` // 目标类型
	TargetId   int64  `orm:"target_id"   json:"targetId"`   // 目标ID
	Remark     string `orm:"remark"      json:"remark"`     // 备注
	AdminName  string `orm:"admin_name"  json:"adminName"`  // 操作管理员
	Year       int    `orm:"year"        json:"year"`       // 年
	Month      int    `orm:"month"       json:"month"`      // 月
	Day        int    `orm:"day"         json:"day"`        // 日
	CreatedAt  int    `orm:"created_at"  json:"createdAt"`  // 创建时间
	UpdatedAt  int    `orm:"updated_at"  json:"updatedAt"`  // 更新时间
}

WalletFlowGpt4 is the golang structure for table c_wallet_flow_gpt4.

type WalletFlowMidjourney

type WalletFlowMidjourney struct {
	Id         int64  `orm:"id,primary"  json:"id"`         // ID
	UserId     uint64 `orm:"user_id"     json:"userId"`     // 会员ID
	Amount     int    `orm:"amount"      json:"amount"`     // 变动金额
	Total      int    `orm:"total"       json:"total"`      // 变动后的余额
	IsIncr     int    `orm:"is_incr"     json:"isIncr"`     // 增加减少
	TargetType string `orm:"target_type" json:"targetType"` // 目标类型
	TargetId   int64  `orm:"target_id"   json:"targetId"`   // 目标ID
	Remark     string `orm:"remark"      json:"remark"`     // 备注
	AdminName  string `orm:"admin_name"  json:"adminName"`  // 操作管理员
	Year       int    `orm:"year"        json:"year"`       // 年
	Month      int    `orm:"month"       json:"month"`      // 月
	Day        int    `orm:"day"         json:"day"`        // 日
	CreatedAt  int    `orm:"created_at"  json:"createdAt"`  // 创建时间
	UpdatedAt  int    `orm:"updated_at"  json:"updatedAt"`  // 更新时间
}

WalletFlowMidjourney is the golang structure for table c_wallet_flow_midjourney.

Jump to

Keyboard shortcuts

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