You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
537 B

package model
import (
"gf_demo_02/internal/model/entity"
"github.com/gogf/gf/v2/os/gtime"
)
type CourseWithUsers struct {
Id uint `json:"id" orm:"id" ` //
Name string `json:"name" orm:"name" ` //
Day string `json:"day" orm:"day" ` //
CreateAt *gtime.Time `json:"createAt" orm:"create_at" ` //
UpdateAt *gtime.Time `json:"updateAt" orm:"update_at" ` //
DeleteAt *gtime.Time `json:"deleteAt" orm:"delete_at" `
Users []entity.User `json:"users"`
}