database

package
v0.0.0-...-e538263 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTimeToFitDBConnection

func GetTimeToFitDBConnection() *gorm.DB

Types

type Category

type Category struct {
	Id    int    `json:"id" gorm:"column:id;primaryKey"`
	Title string `json:"title" gorm:"column:title"`
	Color string `json:"color" gorm:"column:color"`
}

func GetAllCategory

func GetAllCategory() []Category

读取所有category表格的数据

func (Category) TableName

func (Category) TableName() string

type TimsLists

type TimsLists struct {
	Id         int    `json:"id" gorm:"column:id;primaryKey"`
	CategoryId int    `json:"category_id" gorm:"column:category_id;"`
	Sex        string `json:"sex" gorm:"column:sex"`
	LockerId   string `json:"locker_id" gorm:"column:locker_id"`
	TimeRange  string `json:"time_range" gorm:"column:time_range"`
	IsOccupied string `json:"is_occupied" gorm:"column:is_occupied"`
}

func GetTimsListByCateID

func GetTimsListByCateID() []TimsLists

func (TimsLists) TableName

func (TimsLists) TableName() string

Jump to

Keyboard shortcuts

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