Documentation ¶
Index ¶
- func AddGxChannel(m *GxChannel) (id int64, err error)
- func AddGxInfo(m *GxInfo) (id int64, err error)
- func AddGxLink(m *GxLink) (id int64, err error)
- func AddGxMaster(m *GxMaster) (id int64, err error)
- func AddGxSlide(m *GxSlide) (id int64, err error)
- func AddGxSpecial(m *GxSpecial) (id int64, err error)
- func AddGxUser(m *GxUser) (id int64, err error)
- func DeleteGxChannel(id int) (err error)
- func DeleteGxInfo(id int) (err error)
- func DeleteGxLink(id int) (err error)
- func DeleteGxMaster(id int) (err error)
- func DeleteGxSlide(id int) (err error)
- func DeleteGxSpecial(id int) (err error)
- func DeleteGxUser(id int) (err error)
- func GetAllGxChannel(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllGxInfo(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllGxLink(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllGxMaster(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllGxSlide(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllGxSpecial(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllGxUser(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func UpdateGxChannelById(m *GxChannel) (err error)
- func UpdateGxInfoById(m *GxInfo) (err error)
- func UpdateGxLinkById(m *GxLink) (err error)
- func UpdateGxMasterById(m *GxMaster) (err error)
- func UpdateGxSlideById(m *GxSlide) (err error)
- func UpdateGxSpecialById(m *GxSpecial) (err error)
- func UpdateGxUserById(m *GxUser) (err error)
- type GxChannel
- type GxInfo
- type GxLink
- type GxMaster
- type GxSlide
- type GxSpecial
- type GxUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGxChannel ¶
AddGxChannel insert a new GxChannel into database and returns last inserted Id on success.
func AddGxInfo ¶
AddGxInfo insert a new GxInfo into database and returns last inserted Id on success.
func AddGxLink ¶
AddGxLink insert a new GxLink into database and returns last inserted Id on success.
func AddGxMaster ¶
AddGxMaster insert a new GxMaster into database and returns last inserted Id on success.
func AddGxSlide ¶
AddGxSlide insert a new GxSlide into database and returns last inserted Id on success.
func AddGxSpecial ¶
AddGxSpecial insert a new GxSpecial into database and returns last inserted Id on success.
func AddGxUser ¶
AddGxUser insert a new GxUser into database and returns last inserted Id on success.
func DeleteGxChannel ¶
DeleteGxChannel deletes GxChannel by Id and returns error if the record to be deleted doesn't exist
func DeleteGxInfo ¶
DeleteGxInfo deletes GxInfo by Id and returns error if the record to be deleted doesn't exist
func DeleteGxLink ¶
DeleteGxLink deletes GxLink by Id and returns error if the record to be deleted doesn't exist
func DeleteGxMaster ¶
DeleteGxMaster deletes GxMaster by Id and returns error if the record to be deleted doesn't exist
func DeleteGxSlide ¶
DeleteGxSlide deletes GxSlide by Id and returns error if the record to be deleted doesn't exist
func DeleteGxSpecial ¶
DeleteGxSpecial deletes GxSpecial by Id and returns error if the record to be deleted doesn't exist
func DeleteGxUser ¶
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 ¶
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 ¶
UpdateGxChannel updates GxChannel by Id and returns error if the record to be updated doesn't exist
func UpdateGxInfoById ¶
UpdateGxInfo updates GxInfo by Id and returns error if the record to be updated doesn't exist
func UpdateGxLinkById ¶
UpdateGxLink updates GxLink by Id and returns error if the record to be updated doesn't exist
func UpdateGxMasterById ¶
UpdateGxMaster updates GxMaster by Id and returns error if the record to be updated doesn't exist
func UpdateGxSlideById ¶
UpdateGxSlide updates GxSlide by Id and returns error if the record to be updated doesn't exist
func UpdateGxSpecialById ¶
UpdateGxSpecial updates GxSpecial by Id and returns error if the record to be updated doesn't exist
func UpdateGxUserById ¶
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 ¶
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 ¶
GetGxInfoById retrieves GxInfo by Id. Returns error if Id doesn't exist
type GxLink ¶
type GxLink struct { Id int `orm:"column(id);auto"` Title string `orm:"column(title);size(50)"` Logo string `orm:"column(logo);size(255)"` Url string `orm:"column(url);size(255)"` Oid int8 `orm:"column(oid)"` Type int8 `orm:"column(type)"` }
func GetGxLinkById ¶
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 ¶
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 ¶
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)"` Logo string `orm:"column(logo);size(150)"` Content string `orm:"column(content)"` Addtime int `orm:"column(addtime)"` Hitstime int `orm:"column(hitstime)"` Status int8 `orm:"column(status)"` }
func GetGxSpecialById ¶
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 ¶
GetGxUserById retrieves GxUser by Id. Returns error if Id doesn't exist