Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
This section is empty.
Types ¶
type DailyDetail ¶
type DailyDetail struct { DailyPlanId uint `json:"daily_plan_id" gorm:"not null;"` StartTime string `json:"start_time" gorm:"type:varchar(255);not null;"` EndTime string `json:"end_time" gorm:"type:varchar(255);not null;"` Detail string `json:"detail" gorm:"type:varchar(255);not null;"` gorm.Model }
func SelecetDailyDetailByDailyPlanId ¶
func SelecetDailyDetailByDailyPlanId(dailyPlanid uint) (dailyDetails []DailyDetail, ok bool)
func (*DailyDetail) Create ¶
func (item *DailyDetail) Create() (ok bool)
func (*DailyDetail) Delete ¶
func (item *DailyDetail) Delete() (ok bool)
func (*DailyDetail) Update ¶
func (item *DailyDetail) Update() (ok bool)
type DailyPlan ¶
type DailyPlan struct { UserId uint `json:"user_id" gorm:"not null;"` Name string `json:"name" gorm:"type:varchar(255);not null;"` gorm.Model }
type FamousQuote ¶
type FamousQuote struct { UserId uint `json:"user_id" gorm:"not null;"` Quote string `json:"quote" gorm:"default '励志名言'"` Author uint `json:"author" gorm:"default '作家'"` gorm.Model }
func SelecetFamousQuoteByUserId ¶
func SelecetFamousQuoteByUserId(userid uint) (famousQuotes []FamousQuote, ok bool)
func (*FamousQuote) Create ¶
func (item *FamousQuote) Create() (ok bool)
func (*FamousQuote) Delete ¶
func (item *FamousQuote) Delete() (ok bool)
func (*FamousQuote) Update ¶
func (item *FamousQuote) Update() (ok bool)
type Goal ¶
type Happy ¶
type Happy struct { UserId uint `json:"user_id" gorm:"not null;"` Cotent string `json:"content" gorm:"default 'Some thing make me happy'"` Time time.Time `json:"time" gorm:""` gorm.Model }
func SelecetHappyByID ¶
func SelecetHappyByUserId ¶
type Task ¶
type Task struct { UserId uint `json:"user_id" gorm:"not null;"` Cotent string `json:"content" gorm:"default 'todu'"` Done bool `json:"done" gorm:"default false"` Time time.Time `json:"time" gorm:""` Meridiem string `json:"meridiem" gorm:"default 'am'"` Color string `json:"color" gorm:"default '#c2e9fb'"` gorm.Model }
func SelecetTaskByID ¶
func SelecetTaskByUserId ¶
type TaskList ¶
type Todo ¶
type Todo struct { UserId uint `json:"user_id" gorm:"not null;"` Cotent string `json:"content" gorm:"default 'todu'"` Done bool `json:"done" gorm:"default 0"` Time time.Time `json:"time" gorm:""` gorm.Model }
func SelecetTodoByID ¶
func SelecetTodoByUserId ¶
type User ¶
type User struct { Username string `json:"username" gorm:"unique;not null;"` Password string `json:"password" gorm:"not null;"` Image string `json:"image" gorm:"default ''"` Email string `json:"email" gorm:"not null;"` gorm.Model }
func SelectUser ¶
func SelectUserById ¶
func SelectUserByUsername ¶
Click to show internal directories.
Click to hide internal directories.