27 lines
665 B
Go
27 lines
665 B
Go
package proto
|
|
|
|
import "gorm.io/gorm"
|
|
|
|
const (
|
|
MYSQL_USER = "video_t2"
|
|
MYSQL_DB = "video_t2"
|
|
MYSQL_PASSWORD = "2t2SKHmWEYj2xFKF"
|
|
MYSQL_PORT = "3306"
|
|
MYSQL_HOST = "127.0.0.1"
|
|
MYSQL_DSN = MYSQL_USER + ":" + MYSQL_PASSWORD + "@tcp(" + MYSQL_HOST + ":" + MYSQL_PORT + ")/" + MYSQL_DB + "?charset=utf8mb4&parseTime=True&loc=Local"
|
|
|
|
REDIS_ADDR = "127.0.0.1:6379"
|
|
REDIS_PASSWORD = "lj502138"
|
|
REIDS_DB = 2
|
|
|
|
TOKEN_SECRET = "mfjurnc_32ndj9dfhj"
|
|
)
|
|
|
|
type SearchUser struct {
|
|
gorm.Model
|
|
Name string `gorm:"column:name"`
|
|
Age int `gorm:"column:age"`
|
|
Email string `gorm:"column:email"`
|
|
Gender string `gorm:"column:gender"`
|
|
}
|