models

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAuthGroup

func AddAuthGroup(m *AuthGroup) (id int64, err error)

AddAuthGroup insert a new AuthGroup into database and returns last inserted Id on success.

func AddAuthGroupPermissions

func AddAuthGroupPermissions(m *AuthGroupPermissions) (id int64, err error)

AddAuthGroupPermissions insert a new AuthGroupPermissions into database and returns last inserted Id on success.

func AddAuthPermission

func AddAuthPermission(m *AuthPermission) (id int64, err error)

AddAuthPermission insert a new AuthPermission into database and returns last inserted Id on success.

func AddAuthUser

func AddAuthUser(m *AuthUser) (id int64, err error)

AddAuthUser insert a new AuthUser into database and returns last inserted Id on success.

func AddAuthUserGroups

func AddAuthUserGroups(m *AuthUserGroups) (id int64, err error)

AddAuthUserGroups insert a new AuthUserGroups into database and returns last inserted Id on success.

func AddAuthUserUserPermissions

func AddAuthUserUserPermissions(m *AuthUserUserPermissions) (id int64, err error)

AddAuthUserUserPermissions insert a new AuthUserUserPermissions into database and returns last inserted Id on success.

func AddBanner

func AddBanner(m *Banner) (id int64, err error)

AddBanner insert a new Banner into database and returns last inserted Id on success.

func AddCache

func AddCache(m *Cache) (id int64, err error)

AddCache insert a new Cache into database and returns last inserted Id on success.

func AddCommodity

func AddCommodity(m *Commodity) (id int64, err error)

AddCommodity insert a new Commodity into database and returns last inserted Id on success.

func AddCommodityType

func AddCommodityType(m *CommodityType) (id int64, err error)

AddCommodityType insert a new CommodityType into database and returns last inserted Id on success.

func AddCompany

func AddCompany(m *Company) (id int64, err error)

AddCompany insert a new Company into database and returns last inserted Id on success.

func AddDjangoAdminLog

func AddDjangoAdminLog(m *DjangoAdminLog) (id int64, err error)

AddDjangoAdminLog insert a new DjangoAdminLog into database and returns last inserted Id on success.

func AddDjangoContentType

func AddDjangoContentType(m *DjangoContentType) (id int64, err error)

AddDjangoContentType insert a new DjangoContentType into database and returns last inserted Id on success.

func AddDjangoMigrations

func AddDjangoMigrations(m *DjangoMigrations) (id int64, err error)

AddDjangoMigrations insert a new DjangoMigrations into database and returns last inserted Id on success.

func AddDjangoSession

func AddDjangoSession(m *DjangoSession) (id int64, err error)

AddDjangoSession insert a new DjangoSession into database and returns last inserted Id on success.

func AddFeedBack

func AddFeedBack(m *FeedBack) (id int64, err error)

AddFeedBack insert a new FeedBack into database and returns last inserted Id on success.

func AddNews

func AddNews(m *News) (id int64, err error)

AddNews insert a new News into database and returns last inserted Id on success.

func AddNewsType

func AddNewsType(m *NewsType) (id int64, err error)

AddNewsType insert a new NewsType into database and returns last inserted Id on success.

func AddRecommend

func AddRecommend(m *Recommend) (id int64, err error)

AddRecommend insert a new Recommend into database and returns last inserted Id on success.

func AddSlogan

func AddSlogan(m *Slogan) (id int64, err error)

AddSlogan insert a new Slogan into database and returns last inserted Id on success.

func AddUserCompany

func AddUserCompany(m *UserCompany) (id int64, err error)

AddUserCompany insert a new UserCompany into database and returns last inserted Id on success.

func DeleteAuthGroup

func DeleteAuthGroup(id int) (err error)

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

func DeleteAuthGroupPermissions

func DeleteAuthGroupPermissions(id int) (err error)

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

func DeleteAuthPermission

func DeleteAuthPermission(id int) (err error)

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

func DeleteAuthUser

func DeleteAuthUser(id int) (err error)

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

func DeleteAuthUserGroups

func DeleteAuthUserGroups(id int) (err error)

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

func DeleteAuthUserUserPermissions

func DeleteAuthUserUserPermissions(id int) (err error)

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

func DeleteBanner

func DeleteBanner(id int) (err error)

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

func DeleteCache

func DeleteCache(id int) (err error)

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

func DeleteCommodity

func DeleteCommodity(id int) (err error)

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

func DeleteCommodityType

func DeleteCommodityType(id int) (err error)

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

func DeleteCompany

func DeleteCompany(id int) (err error)

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

func DeleteDjangoAdminLog

func DeleteDjangoAdminLog(id int) (err error)

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

func DeleteDjangoContentType

func DeleteDjangoContentType(id int) (err error)

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

func DeleteDjangoMigrations

func DeleteDjangoMigrations(id int) (err error)

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

func DeleteDjangoSession

func DeleteDjangoSession(id int) (err error)

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

func DeleteFeedBack

func DeleteFeedBack(id int) (err error)

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

func DeleteNews

func DeleteNews(id int) (err error)

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

func DeleteNewsType

func DeleteNewsType(id int) (err error)

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

func DeleteRecommend

func DeleteRecommend(id int) (err error)

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

func DeleteSlogan

func DeleteSlogan(id int) (err error)

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

func DeleteUserCompany

func DeleteUserCompany(id int) (err error)

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

func GetAllAuthGroup

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

GetAllAuthGroup retrieves all AuthGroup matches certain condition. Returns empty list if no records exist

func GetAllAuthGroupPermissions

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

GetAllAuthGroupPermissions retrieves all AuthGroupPermissions matches certain condition. Returns empty list if no records exist

func GetAllAuthPermission

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

GetAllAuthPermission retrieves all AuthPermission matches certain condition. Returns empty list if no records exist

func GetAllAuthUser

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

GetAllAuthUser retrieves all AuthUser matches certain condition. Returns empty list if no records exist

func GetAllAuthUserGroups

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

GetAllAuthUserGroups retrieves all AuthUserGroups matches certain condition. Returns empty list if no records exist

func GetAllAuthUserUserPermissions

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

GetAllAuthUserUserPermissions retrieves all AuthUserUserPermissions matches certain condition. Returns empty list if no records exist

func GetAllBanner

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

GetAllBanner retrieves all Banner matches certain condition. Returns empty list if no records exist

func GetAllCache

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

GetAllCache retrieves all Cache matches certain condition. Returns empty list if no records exist

func GetAllCommodity

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

GetAllCommodity retrieves all Commodity matches certain condition. Returns empty list if no records exist

func GetAllCommodityType

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

GetAllCommodityType retrieves all CommodityType matches certain condition. Returns empty list if no records exist

func GetAllCompany

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

GetAllCompany retrieves all Company matches certain condition. Returns empty list if no records exist

func GetAllDjangoAdminLog

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

GetAllDjangoAdminLog retrieves all DjangoAdminLog matches certain condition. Returns empty list if no records exist

func GetAllDjangoContentType

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

GetAllDjangoContentType retrieves all DjangoContentType matches certain condition. Returns empty list if no records exist

func GetAllDjangoMigrations

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

GetAllDjangoMigrations retrieves all DjangoMigrations matches certain condition. Returns empty list if no records exist

func GetAllDjangoSession

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

GetAllDjangoSession retrieves all DjangoSession matches certain condition. Returns empty list if no records exist

func GetAllFeedBack

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

GetAllFeedBack retrieves all FeedBack matches certain condition. Returns empty list if no records exist

func GetAllNews

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

GetAllNews retrieves all News matches certain condition. Returns empty list if no records exist

func GetAllNewsType

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

GetAllNewsType retrieves all NewsType matches certain condition. Returns empty list if no records exist

func GetAllRecommend

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

GetAllRecommend retrieves all Recommend matches certain condition. Returns empty list if no records exist

func GetAllSlogan

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

GetAllSlogan retrieves all Slogan matches certain condition. Returns empty list if no records exist

func GetAllUserCompany

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

GetAllUserCompany retrieves all UserCompany matches certain condition. Returns empty list if no records exist

func UpdateAuthGroupById

func UpdateAuthGroupById(m *AuthGroup) (err error)

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

func UpdateAuthGroupPermissionsById

func UpdateAuthGroupPermissionsById(m *AuthGroupPermissions) (err error)

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

func UpdateAuthPermissionById

func UpdateAuthPermissionById(m *AuthPermission) (err error)

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

func UpdateAuthUserById

func UpdateAuthUserById(m *AuthUser) (err error)

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

func UpdateAuthUserGroupsById

func UpdateAuthUserGroupsById(m *AuthUserGroups) (err error)

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

func UpdateAuthUserUserPermissionsById

func UpdateAuthUserUserPermissionsById(m *AuthUserUserPermissions) (err error)

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

func UpdateBannerById

func UpdateBannerById(m *Banner) (err error)

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

func UpdateCacheById

func UpdateCacheById(m *Cache) (err error)

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

func UpdateCommodityById

func UpdateCommodityById(m *Commodity) (err error)

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

func UpdateCommodityTypeById

func UpdateCommodityTypeById(m *CommodityType) (err error)

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

func UpdateCompanyById

func UpdateCompanyById(m *Company) (err error)

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

func UpdateDjangoAdminLogById

func UpdateDjangoAdminLogById(m *DjangoAdminLog) (err error)

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

func UpdateDjangoContentTypeById

func UpdateDjangoContentTypeById(m *DjangoContentType) (err error)

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

func UpdateDjangoMigrationsById

func UpdateDjangoMigrationsById(m *DjangoMigrations) (err error)

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

func UpdateDjangoSessionById

func UpdateDjangoSessionById(m *DjangoSession) (err error)

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

func UpdateFeedBackById

func UpdateFeedBackById(m *FeedBack) (err error)

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

func UpdateNewsById

func UpdateNewsById(m *News) (err error)

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

func UpdateNewsTypeById

func UpdateNewsTypeById(m *NewsType) (err error)

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

func UpdateRecommendById

func UpdateRecommendById(m *Recommend) (err error)

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

func UpdateSloganById

func UpdateSloganById(m *Slogan) (err error)

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

func UpdateUserCompanyById

func UpdateUserCompanyById(m *UserCompany) (err error)

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

Types

type AuthGroup

type AuthGroup struct {
	Id   int    `orm:"column(id);auto"`
	Name string `orm:"column(name);size(80)"`
}

func GetAuthGroupById

func GetAuthGroupById(id int) (v *AuthGroup, err error)

GetAuthGroupById retrieves AuthGroup by Id. Returns error if Id doesn't exist

func (*AuthGroup) TableName

func (t *AuthGroup) TableName() string

type AuthGroupPermissions

type AuthGroupPermissions struct {
	Id           int             `orm:"column(id);auto"`
	GroupId      *AuthGroup      `orm:"column(group_id);rel(fk)"`
	PermissionId *AuthPermission `orm:"column(permission_id);rel(fk)"`
}

func GetAuthGroupPermissionsById

func GetAuthGroupPermissionsById(id int) (v *AuthGroupPermissions, err error)

GetAuthGroupPermissionsById retrieves AuthGroupPermissions by Id. Returns error if Id doesn't exist

func (*AuthGroupPermissions) TableName

func (t *AuthGroupPermissions) TableName() string

type AuthPermission

type AuthPermission struct {
	Id            int                `orm:"column(id);auto"`
	Name          string             `orm:"column(name);size(255)"`
	ContentTypeId *DjangoContentType `orm:"column(content_type_id);rel(fk)"`
	Codename      string             `orm:"column(codename);size(100)"`
}

func GetAuthPermissionById

func GetAuthPermissionById(id int) (v *AuthPermission, err error)

GetAuthPermissionById retrieves AuthPermission by Id. Returns error if Id doesn't exist

func (*AuthPermission) TableName

func (t *AuthPermission) TableName() string

type AuthUser

type AuthUser struct {
	Id          int       `orm:"column(id);auto"`
	Password    string    `orm:"column(password);size(128)"`
	LastLogin   time.Time `orm:"column(last_login);type(datetime);null"`
	IsSuperuser int8      `orm:"column(is_superuser)"`
	Username    string    `orm:"column(username);size(150)"`
	FirstName   string    `orm:"column(first_name);size(30)"`
	LastName    string    `orm:"column(last_name);size(30)"`
	Email       string    `orm:"column(email);size(254)"`
	IsStaff     int8      `orm:"column(is_staff)"`
	IsActive    int8      `orm:"column(is_active)"`
	DateJoined  time.Time `orm:"column(date_joined);type(datetime)"`
}

func GetAuthUserById

func GetAuthUserById(id int) (v *AuthUser, err error)

GetAuthUserById retrieves AuthUser by Id. Returns error if Id doesn't exist

func (*AuthUser) TableName

func (t *AuthUser) TableName() string

type AuthUserGroups

type AuthUserGroups struct {
	Id      int        `orm:"column(id);auto"`
	UserId  *AuthUser  `orm:"column(user_id);rel(fk)"`
	GroupId *AuthGroup `orm:"column(group_id);rel(fk)"`
}

func GetAuthUserGroupsById

func GetAuthUserGroupsById(id int) (v *AuthUserGroups, err error)

GetAuthUserGroupsById retrieves AuthUserGroups by Id. Returns error if Id doesn't exist

func (*AuthUserGroups) TableName

func (t *AuthUserGroups) TableName() string

type AuthUserUserPermissions

type AuthUserUserPermissions struct {
	Id           int             `orm:"column(id);auto"`
	UserId       *AuthUser       `orm:"column(user_id);rel(fk)"`
	PermissionId *AuthPermission `orm:"column(permission_id);rel(fk)"`
}

func GetAuthUserUserPermissionsById

func GetAuthUserUserPermissionsById(id int) (v *AuthUserUserPermissions, err error)

GetAuthUserUserPermissionsById retrieves AuthUserUserPermissions by Id. Returns error if Id doesn't exist

func (*AuthUserUserPermissions) TableName

func (t *AuthUserUserPermissions) TableName() string
type Banner struct {
	Id          int       `orm:"column(id);auto"`
	Title       string    `orm:"column(title);size(32)"`
	Description string    `orm:"column(description)"`
	Images      string    `orm:"column(images);size(1024)"`
	Status      int       `orm:"column(status)"`
	Index       int       `orm:"column(index)"`
	CreateTime  time.Time `orm:"column(create_time);type(datetime)"`
	CompanyId   *Company  `orm:"column(company_id);rel(fk)"`
}

func GetBannerById

func GetBannerById(id int) (v *Banner, err error)

GetBannerById retrieves Banner by Id. Returns error if Id doesn't exist

func (*Banner) TableName

func (t *Banner) TableName() string

type Cache

type Cache struct {
	Id      int       `orm:"column(id);auto"`
	Key     string    `orm:"column(key);size(32)"`
	Value   string    `orm:"column(value);size(128)"`
	EndTime time.Time `orm:"column(end_time);type(datetime)"`
}

func GetCacheById

func GetCacheById(id int) (v *Cache, err error)

GetCacheById retrieves Cache by Id. Returns error if Id doesn't exist

func (*Cache) TableName

func (t *Cache) TableName() string

type Commodity

type Commodity struct {
	Id              int            `orm:"column(id);auto"`
	Title           string         `orm:"column(title);size(32)"`
	Images          string         `orm:"column(images);size(1024)"`
	Description     string         `orm:"column(description)"`
	UnitPrice       string         `orm:"column(unit_price);size(32)"`
	Status          int            `orm:"column(status)"`
	CreateTime      time.Time      `orm:"column(create_time);type(datetime)"`
	Index           int            `orm:"column(index)"`
	CommodityTypeId *CommodityType `orm:"column(commodity_type_id);rel(fk)"`
	CompanyId       *Company       `orm:"column(company_id);rel(fk)"`
}

func GetCommodityById

func GetCommodityById(id int) (v *Commodity, err error)

GetCommodityById retrieves Commodity by Id. Returns error if Id doesn't exist

func (*Commodity) TableName

func (t *Commodity) TableName() string

type CommodityType

type CommodityType struct {
	Id          int      `orm:"column(id);auto"`
	Name        string   `orm:"column(name);size(32)"`
	Description string   `orm:"column(description)"`
	CompanyId   *Company `orm:"column(company_id);rel(fk)"`
}

func GetCommodityTypeById

func GetCommodityTypeById(id int) (v *CommodityType, err error)

GetCommodityTypeById retrieves CommodityType by Id. Returns error if Id doesn't exist

func (*CommodityType) TableName

func (t *CommodityType) TableName() string

type Company

type Company struct {
	Id          int       `orm:"column(id);auto"`
	Domain      string    `orm:"column(domain);size(32)"`
	Name        string    `orm:"column(name);size(32)"`
	AddressCn   string    `orm:"column(address_cn);size(64)"`
	AddressEn   string    `orm:"column(address_en);size(128)"`
	Telephone   string    `orm:"column(telephone);size(16)"`
	Faxes       string    `orm:"column(faxes);size(16)"`
	Qq          string    `orm:"column(qq);size(16)"`
	Wechat      string    `orm:"column(wechat);size(32)"`
	Email       string    `orm:"column(email);size(32)"`
	Website     string    `orm:"column(website);size(32)"`
	Description string    `orm:"column(description)"`
	Images      string    `orm:"column(images);size(1024)"`
	CreateTime  time.Time `orm:"column(create_time);type(datetime)"`
	Status      int       `orm:"column(status)"`
	IsShow      int8      `orm:"column(is_show)"`
}

func GetCompanyById

func GetCompanyById(id int) (v *Company, err error)

GetCompanyById retrieves Company by Id. Returns error if Id doesn't exist

func (*Company) TableName

func (t *Company) TableName() string

type DjangoAdminLog

type DjangoAdminLog struct {
	Id            int                `orm:"column(id);auto"`
	ActionTime    time.Time          `orm:"column(action_time);type(datetime)"`
	ObjectId      string             `orm:"column(object_id);null"`
	ObjectRepr    string             `orm:"column(object_repr);size(200)"`
	ActionFlag    uint16             `orm:"column(action_flag)"`
	ChangeMessage string             `orm:"column(change_message)"`
	ContentTypeId *DjangoContentType `orm:"column(content_type_id);rel(fk)"`
	UserId        *AuthUser          `orm:"column(user_id);rel(fk)"`
}

func GetDjangoAdminLogById

func GetDjangoAdminLogById(id int) (v *DjangoAdminLog, err error)

GetDjangoAdminLogById retrieves DjangoAdminLog by Id. Returns error if Id doesn't exist

func (*DjangoAdminLog) TableName

func (t *DjangoAdminLog) TableName() string

type DjangoContentType

type DjangoContentType struct {
	Id       int    `orm:"column(id);auto"`
	AppLabel string `orm:"column(app_label);size(100)"`
	Model    string `orm:"column(model);size(100)"`
}

func GetDjangoContentTypeById

func GetDjangoContentTypeById(id int) (v *DjangoContentType, err error)

GetDjangoContentTypeById retrieves DjangoContentType by Id. Returns error if Id doesn't exist

func (*DjangoContentType) TableName

func (t *DjangoContentType) TableName() string

type DjangoMigrations

type DjangoMigrations struct {
	Id      int       `orm:"column(id);auto"`
	App     string    `orm:"column(app);size(255)"`
	Name    string    `orm:"column(name);size(255)"`
	Applied time.Time `orm:"column(applied);type(datetime)"`
}

func GetDjangoMigrationsById

func GetDjangoMigrationsById(id int) (v *DjangoMigrations, err error)

GetDjangoMigrationsById retrieves DjangoMigrations by Id. Returns error if Id doesn't exist

func (*DjangoMigrations) TableName

func (t *DjangoMigrations) TableName() string

type DjangoSession

type DjangoSession struct {
	Id          int       `orm:"column(session_key);pk"`
	SessionData string    `orm:"column(session_data)"`
	ExpireDate  time.Time `orm:"column(expire_date);type(datetime)"`
}

func GetDjangoSessionById

func GetDjangoSessionById(id int) (v *DjangoSession, err error)

GetDjangoSessionById retrieves DjangoSession by Id. Returns error if Id doesn't exist

func (*DjangoSession) TableName

func (t *DjangoSession) TableName() string

type FeedBack

type FeedBack struct {
	Id          int       `orm:"column(id);auto"`
	Name        string    `orm:"column(name);size(16)"`
	Email       string    `orm:"column(email);size(32)"`
	Phone       string    `orm:"column(phone);size(32)"`
	Qq          string    `orm:"column(qq);size(16)"`
	Description string    `orm:"column(description)"`
	Status      int       `orm:"column(status)"`
	CreateTime  time.Time `orm:"column(create_time);type(datetime)"`
	CompanyId   *Company  `orm:"column(company_id);rel(fk)"`
}

func GetFeedBackById

func GetFeedBackById(id int) (v *FeedBack, err error)

GetFeedBackById retrieves FeedBack by Id. Returns error if Id doesn't exist

func (*FeedBack) TableName

func (t *FeedBack) TableName() string

type News

type News struct {
	Id         int       `orm:"column(id);auto"`
	Cover      string    `orm:"column(cover);size(128)"`
	Title      string    `orm:"column(title);size(32)"`
	Content    string    `orm:"column(content)"`
	Link       string    `orm:"column(link);size(128)"`
	Status     int       `orm:"column(status)"`
	Index      int       `orm:"column(index)"`
	CreateTime time.Time `orm:"column(create_time);type(datetime)"`
	CompanyId  *Company  `orm:"column(company_id);rel(fk)"`
	NewsTypeId *NewsType `orm:"column(news_type_id);rel(fk)"`
}

func GetNewsById

func GetNewsById(id int) (v *News, err error)

GetNewsById retrieves News by Id. Returns error if Id doesn't exist

func (*News) TableName

func (t *News) TableName() string

type NewsType

type NewsType struct {
	Id          int       `orm:"column(id);auto"`
	Name        string    `orm:"column(name);size(32)"`
	Description string    `orm:"column(description)"`
	Status      int       `orm:"column(status)"`
	CreateTime  time.Time `orm:"column(create_time);type(datetime)"`
	CompanyId   *Company  `orm:"column(company_id);rel(fk)"`
}

func GetNewsTypeById

func GetNewsTypeById(id int) (v *NewsType, err error)

GetNewsTypeById retrieves NewsType by Id. Returns error if Id doesn't exist

func (*NewsType) TableName

func (t *NewsType) TableName() string

type Recommend

type Recommend struct {
	Id          int        `orm:"column(id);auto"`
	Index       int        `orm:"column(index)"`
	CommodityId *Commodity `orm:"column(commodity_id);rel(fk)"`
	CompanyId   *Company   `orm:"column(company_id);rel(fk)"`
}

func GetRecommendById

func GetRecommendById(id int) (v *Recommend, err error)

GetRecommendById retrieves Recommend by Id. Returns error if Id doesn't exist

func (*Recommend) TableName

func (t *Recommend) TableName() string

type Slogan

type Slogan struct {
	Id        int      `orm:"column(id);auto"`
	TitleCn   string   `orm:"column(title_cn);size(32)"`
	TitleEn   string   `orm:"column(title_en);size(32)"`
	Images    string   `orm:"column(images);size(1024)"`
	CompanyId *Company `orm:"column(company_id);rel(fk)"`
}

func GetSloganById

func GetSloganById(id int) (v *Slogan, err error)

GetSloganById retrieves Slogan by Id. Returns error if Id doesn't exist

func (*Slogan) TableName

func (t *Slogan) TableName() string

type UserCompany

type UserCompany struct {
	Id        int       `orm:"column(id);auto"`
	CompanyId *Company  `orm:"column(company_id);rel(fk)"`
	UserId    *AuthUser `orm:"column(user_id);rel(fk)"`
}

func GetUserCompanyById

func GetUserCompanyById(id int) (v *UserCompany, err error)

GetUserCompanyById retrieves UserCompany by Id. Returns error if Id doesn't exist

func (*UserCompany) TableName

func (t *UserCompany) TableName() string

Jump to

Keyboard shortcuts

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