1234567891011121314151617181920212223 |
- package models
- import (
- "eta_gn/eta_report/global"
- "time"
- )
- type ClassifyVisible struct {
- ClassifyVisibleId int `gorm:"column:classify_visible_id;primary_key"`
- ClassifyId int `gorm:"column:classify_id"`
- AdminId int `gorm:"column:admin_id"`
- CreateTime time.Time `gorm:"column:create_time"`
- }
- func (ClassifyVisible) TableName() string {
- return "classify_visible"
- }
- func (c *ClassifyVisible) GetClassifyVisibleAll() (items []*ClassifyVisible, err error) {
- sql := "SELECT * FROM classify_visible"
- err = global.DEFAULT_DmSQL.Raw(sql).Find(&items).Error
- return
- }
|