SQLDB

package
v1.0.0-beta.23 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

* @Author: NyanCatda * @Date: 2022-01-24 21:37:39 * @LastEditTime: 2022-01-24 21:42:09 * @LastEditors: NyanCatda * @Description: 数据库模型 * @FilePath: \ShionBot\src\Utils\SQLDB\Models.go

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *gorm.DB
)

Functions

func SQLDBLink() (*gorm.DB, error)

*

  • @description: 创建全局数据库链接
  • @param {*}
  • @return {*gorm.DB}
  • @return {error}

Types

type UserInfo

type UserInfo struct {
	Id       int    `gorm:"id;type:int;primaryKey;not null;comment:ID"`
	SNSName  string `gorm:"sns_name;type:string;not null;comment:所属聊天软件"`
	Account  string `gorm:"account;type:string;not null;comment:账号"`
	Language string `gorm:"language;type:string;comment:使用语言"`
	WikiInfo string `gorm:"wikiinfo;type:string;comment:自定义Wiki信息"`
}

Jump to

Keyboard shortcuts

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