model

package
v0.0.0-...-9859ff5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Copyright 2014 wudaoren. All rights reserved. Use of this source code is governed by a MIT style license that can be found in the LICENSE file.

Copyright 2014 wudaoren. All rights reserved. Use of this source code is governed by a MIT style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blog

type Blog struct {
	Id         int    `xorm:"int(11) pk autoincr"` //主键
	Title      string `xorm:"varchar(255)"`        //标题
	Keyword    string `xorm:"varchar(255)"`        //关键词
	Content    string `xorm:"text"`                //博客内容
	CreateDate string `xorm:"date"`                //发布日期(可以修改)
	CreateTime string `xorm:"datetime created"`    //创建时间
	UpdateTime string `xorm:"datetime updated"`    //修改时间

	HTMLContent interface{} `xorm:"-"` //页面输出html代码,该字段不保存到数据库
}

type System

type System struct {
	Id         int    `xorm:"int(11) pk autoincr"` //主键
	BlogName   string `xorm:"varchar(255)"`        //博客名称
	Keyword    string `xorm:"varchar(255)"`        //关键词
	Username   string `xorm:"varchar(32)"`         //管理员账号
	Password   string `xorm:"varchar(32)"`         //管理员登录密码
	UpdateTime string `xorm:"datetime updated"`    //修改时间
}

Jump to

Keyboard shortcuts

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