models

package
v0.0.0-...-22acd91 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGxChannel

func AddGxChannel(m *GxChannel) (id int64, err error)

AddGxChannel insert a new GxChannel into database and returns last inserted Id on success.

func AddGxInfo

func AddGxInfo(m *GxInfo) (id int64, err error)

AddGxInfo insert a new GxInfo into database and returns last inserted Id on success.

func AddGxLink(m *GxLink) (id int64, err error)

AddGxLink insert a new GxLink into database and returns last inserted Id on success.

func AddGxMaster

func AddGxMaster(m *GxMaster) (id int64, err error)

AddGxMaster insert a new GxMaster into database and returns last inserted Id on success.

func AddGxSlide

func AddGxSlide(m *GxSlide) (id int64, err error)

AddGxSlide insert a new GxSlide into database and returns last inserted Id on success.

func AddGxSpecial

func AddGxSpecial(m *GxSpecial) (id int64, err error)

AddGxSpecial insert a new GxSpecial into database and returns last inserted Id on success.

func AddGxUser

func AddGxUser(m *GxUser) (id int64, err error)

AddGxUser insert a new GxUser into database and returns last inserted Id on success.

func DeleteGxChannel

func DeleteGxChannel(id int) (err error)

DeleteGxChannel deletes GxChannel by Id and returns error if the record to be deleted doesn't exist

func DeleteGxInfo

func DeleteGxInfo(id int) (err error)

DeleteGxInfo deletes GxInfo by Id and returns error if the record to be deleted doesn't exist

func DeleteGxLink(id int) (err error)

DeleteGxLink deletes GxLink by Id and returns error if the record to be deleted doesn't exist

func DeleteGxMaster

func DeleteGxMaster(id int) (err error)

DeleteGxMaster deletes GxMaster by Id and returns error if the record to be deleted doesn't exist

func DeleteGxSlide

func DeleteGxSlide(id int) (err error)

DeleteGxSlide deletes GxSlide by Id and returns error if the record to be deleted doesn't exist

func DeleteGxSpecial

func DeleteGxSpecial(id int) (err error)

DeleteGxSpecial deletes GxSpecial by Id and returns error if the record to be deleted doesn't exist

func DeleteGxUser

func DeleteGxUser(id int) (err error)

DeleteGxUser deletes GxUser by Id and returns error if the record to be deleted doesn't exist

func GetAllGxChannel

func GetAllGxChannel(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllGxChannel retrieves all GxChannel matches certain condition. Returns empty list if no records exist

func GetAllGxInfo

func GetAllGxInfo(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllGxInfo retrieves all GxInfo matches certain condition. Returns empty list if no records exist

func GetAllGxLink(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllGxLink retrieves all GxLink matches certain condition. Returns empty list if no records exist

func GetAllGxMaster

func GetAllGxMaster(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllGxMaster retrieves all GxMaster matches certain condition. Returns empty list if no records exist

func GetAllGxSlide

func GetAllGxSlide(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllGxSlide retrieves all GxSlide matches certain condition. Returns empty list if no records exist

func GetAllGxSpecial

func GetAllGxSpecial(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllGxSpecial retrieves all GxSpecial matches certain condition. Returns empty list if no records exist

func GetAllGxUser

func GetAllGxUser(query map[string]string, fields []string, sortby []string, order []string,
	offset int64, limit int64) (ml []interface{}, err error)

GetAllGxUser retrieves all GxUser matches certain condition. Returns empty list if no records exist

func UpdateGxChannelById

func UpdateGxChannelById(m *GxChannel) (err error)

UpdateGxChannel updates GxChannel by Id and returns error if the record to be updated doesn't exist

func UpdateGxInfoById

func UpdateGxInfoById(m *GxInfo) (err error)

UpdateGxInfo updates GxInfo by Id and returns error if the record to be updated doesn't exist

func UpdateGxLinkById

func UpdateGxLinkById(m *GxLink) (err error)

UpdateGxLink updates GxLink by Id and returns error if the record to be updated doesn't exist

func UpdateGxMasterById

func UpdateGxMasterById(m *GxMaster) (err error)

UpdateGxMaster updates GxMaster by Id and returns error if the record to be updated doesn't exist

func UpdateGxSlideById

func UpdateGxSlideById(m *GxSlide) (err error)

UpdateGxSlide updates GxSlide by Id and returns error if the record to be updated doesn't exist

func UpdateGxSpecialById

func UpdateGxSpecialById(m *GxSpecial) (err error)

UpdateGxSpecial updates GxSpecial by Id and returns error if the record to be updated doesn't exist

func UpdateGxUserById

func UpdateGxUserById(m *GxUser) (err error)

UpdateGxUser updates GxUser by Id and returns error if the record to be updated doesn't exist

Types

type GxChannel

type GxChannel struct {
	Id           int    `orm:"column(id);auto"`
	Pid          int16  `orm:"column(pid)"`
	Status       int8   `orm:"column(status)"`
	Cname        string `orm:"column(cname);size(20)"`
	Ctpl         string `orm:"column(ctpl);size(20)"`
	Ctitle       string `orm:"column(ctitle);size(50)"`
	Ckeywords    string `orm:"column(ckeywords);size(255)"`
	Cdescription string `orm:"column(cdescription);size(255)"`
}

func GetGxChannelById

func GetGxChannelById(id int) (v *GxChannel, err error)

GetGxChannelById retrieves GxChannel by Id. Returns error if Id doesn't exist

type GxInfo

type GxInfo struct {
	Id       int    `orm:"column(id);auto"`
	Cid      int16  `orm:"column(cid)"`
	Title    string `orm:"column(title);size(255)"`
	Keywords string `orm:"column(keywords);size(255)"`
	Picurl   string `orm:"column(picurl);size(255)"`
	Inputer  string `orm:"column(inputer);size(50)"`
	Reurl    string `orm:"column(reurl);size(255)"`
	Remark   string `orm:"column(remark)"`
	Content  string `orm:"column(content)"`
	Hitstime int    `orm:"column(hitstime)"`
	Status   int8   `orm:"column(status)"`
	Addtime  int    `orm:"column(addtime)"`
}

func GetGxInfoById

func GetGxInfoById(id int) (v *GxInfo, err error)

GetGxInfoById retrieves GxInfo by Id. Returns error if Id doesn't exist

type GxLink struct {
	Id    int    `orm:"column(id);auto"`
	Title string `orm:"column(title);size(50)"`
	Url   string `orm:"column(url);size(255)"`
	Oid   int8   `orm:"column(oid)"`
	Type  int8   `orm:"column(type)"`
}

func GetGxLinkById

func GetGxLinkById(id int) (v *GxLink, err error)

GetGxLinkById retrieves GxLink by Id. Returns error if Id doesn't exist

type GxMaster

type GxMaster struct {
	Id         int    `orm:"column(id);auto"`
	User       string `orm:"column(user);size(50)"`
	Pwd        string `orm:"column(pwd);size(32)"`
	Usertype   string `orm:"column(usertype);size(100)"`
	Logincount int16  `orm:"column(logincount)"`
	Loginip    string `orm:"column(loginip);size(40)"`
	Logintime  int    `orm:"column(logintime)"`
}

func GetGxMasterById

func GetGxMasterById(id int) (v *GxMaster, err error)

GetGxMasterById retrieves GxMaster by Id. Returns error if Id doesn't exist

type GxSlide

type GxSlide struct {
	Id      int    `orm:"column(id);auto"`
	Oid     int8   `orm:"column(oid)"`
	Title   string `orm:"column(title);size(50)"`
	Picurl  string `orm:"column(picurl);size(100)"`
	Link    string `orm:"column(link);size(100)"`
	Content string `orm:"column(content);size(255)"`
	Status  int8   `orm:"column(status)"`
}

func GetGxSlideById

func GetGxSlideById(id int) (v *GxSlide, err error)

GetGxSlideById retrieves GxSlide by Id. Returns error if Id doesn't exist

type GxSpecial

type GxSpecial struct {
	Id       int    `orm:"column(id);auto"`
	Banner   string `orm:"column(banner);size(150)"`
	Title    string `orm:"column(title);size(150)"`
	Keywords string `orm:"column(keywords);size(150)"`
	Tpl      string `orm:"column(tpl);size(50)"`
	Content  string `orm:"column(content)"`
	Addtime  int    `orm:"column(addtime)"`
	Hitstime int    `orm:"column(hitstime)"`
	Status   int8   `orm:"column(status)"`
}

func GetGxSpecialById

func GetGxSpecialById(id int) (v *GxSpecial, err error)

GetGxSpecialById retrieves GxSpecial by Id. Returns error if Id doesn't exist

type GxUser

type GxUser struct {
	Id       int    `orm:"column(id);auto"`
	Username string `orm:"column(username);size(50)"`
	Userpwd  string `orm:"column(userpwd);size(32)"`
	Money    int32  `orm:"column(money)"`
	Status   int8   `orm:"column(status)"`
	Pay      int8   `orm:"column(pay)"`
	Question string `orm:"column(question);size(50)"`
	Answer   string `orm:"column(answer);size(50)"`
	Logip    string `orm:"column(logip);size(16)"`
	Lognum   int16  `orm:"column(lognum)"`
	Logtime  int    `orm:"column(logtime)"`
	Joinip   string `orm:"column(joinip);size(16)"`
	Jointime int    `orm:"column(jointime)"`
	Duetime  int    `orm:"column(duetime)"`
	Qq       string `orm:"column(qq);size(12)"`
	Email    string `orm:"column(email);size(50)"`
	Face     string `orm:"column(face);size(50)"`
}

func GetGxUserById

func GetGxUserById(id int) (v *GxUser, err error)

GetGxUserById retrieves GxUser by Id. Returns error if Id doesn't exist

Jump to

Keyboard shortcuts

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