Documentation ¶
Index ¶
- func AddAuthGroup(m *AuthGroup) (id int64, err error)
- func AddAuthGroupPermissions(m *AuthGroupPermissions) (id int64, err error)
- func AddAuthPermission(m *AuthPermission) (id int64, err error)
- func AddAuthUser(m *AuthUser) (id int64, err error)
- func AddAuthUserGroups(m *AuthUserGroups) (id int64, err error)
- func AddAuthUserUserPermissions(m *AuthUserUserPermissions) (id int64, err error)
- func AddBanner(m *Banner) (id int64, err error)
- func AddCache(m *Cache) (id int64, err error)
- func AddCommodity(m *Commodity) (id int64, err error)
- func AddCommodityType(m *CommodityType) (id int64, err error)
- func AddCompany(m *Company) (id int64, err error)
- func AddDjangoAdminLog(m *DjangoAdminLog) (id int64, err error)
- func AddDjangoContentType(m *DjangoContentType) (id int64, err error)
- func AddDjangoMigrations(m *DjangoMigrations) (id int64, err error)
- func AddDjangoSession(m *DjangoSession) (id int64, err error)
- func AddFeedBack(m *FeedBack) (id int64, err error)
- func AddNews(m *News) (id int64, err error)
- func AddNewsType(m *NewsType) (id int64, err error)
- func AddRecommend(m *Recommend) (id int64, err error)
- func AddSlogan(m *Slogan) (id int64, err error)
- func AddUserCompany(m *UserCompany) (id int64, err error)
- func DeleteAuthGroup(id int) (err error)
- func DeleteAuthGroupPermissions(id int) (err error)
- func DeleteAuthPermission(id int) (err error)
- func DeleteAuthUser(id int) (err error)
- func DeleteAuthUserGroups(id int) (err error)
- func DeleteAuthUserUserPermissions(id int) (err error)
- func DeleteBanner(id int) (err error)
- func DeleteCache(id int) (err error)
- func DeleteCommodity(id int) (err error)
- func DeleteCommodityType(id int) (err error)
- func DeleteCompany(id int) (err error)
- func DeleteDjangoAdminLog(id int) (err error)
- func DeleteDjangoContentType(id int) (err error)
- func DeleteDjangoMigrations(id int) (err error)
- func DeleteDjangoSession(id int) (err error)
- func DeleteFeedBack(id int) (err error)
- func DeleteNews(id int) (err error)
- func DeleteNewsType(id int) (err error)
- func DeleteRecommend(id int) (err error)
- func DeleteSlogan(id int) (err error)
- func DeleteUserCompany(id int) (err error)
- func GetAllAuthGroup(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllAuthGroupPermissions(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllAuthPermission(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllAuthUser(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllAuthUserGroups(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllAuthUserUserPermissions(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllBanner(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllCache(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllCommodity(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllCommodityType(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllCompany(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllDjangoAdminLog(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllDjangoContentType(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllDjangoMigrations(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllDjangoSession(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllFeedBack(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllNews(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllNewsType(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllRecommend(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllSlogan(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func GetAllUserCompany(query map[string]string, fields []string, sortby []string, order []string, ...) (ml []interface{}, err error)
- func UpdateAuthGroupById(m *AuthGroup) (err error)
- func UpdateAuthGroupPermissionsById(m *AuthGroupPermissions) (err error)
- func UpdateAuthPermissionById(m *AuthPermission) (err error)
- func UpdateAuthUserById(m *AuthUser) (err error)
- func UpdateAuthUserGroupsById(m *AuthUserGroups) (err error)
- func UpdateAuthUserUserPermissionsById(m *AuthUserUserPermissions) (err error)
- func UpdateBannerById(m *Banner) (err error)
- func UpdateCacheById(m *Cache) (err error)
- func UpdateCommodityById(m *Commodity) (err error)
- func UpdateCommodityTypeById(m *CommodityType) (err error)
- func UpdateCompanyById(m *Company) (err error)
- func UpdateDjangoAdminLogById(m *DjangoAdminLog) (err error)
- func UpdateDjangoContentTypeById(m *DjangoContentType) (err error)
- func UpdateDjangoMigrationsById(m *DjangoMigrations) (err error)
- func UpdateDjangoSessionById(m *DjangoSession) (err error)
- func UpdateFeedBackById(m *FeedBack) (err error)
- func UpdateNewsById(m *News) (err error)
- func UpdateNewsTypeById(m *NewsType) (err error)
- func UpdateRecommendById(m *Recommend) (err error)
- func UpdateSloganById(m *Slogan) (err error)
- func UpdateUserCompanyById(m *UserCompany) (err error)
- type AuthGroup
- type AuthGroupPermissions
- type AuthPermission
- type AuthUser
- type AuthUserGroups
- type AuthUserUserPermissions
- type Banner
- type Cache
- type Commodity
- type CommodityType
- type Company
- type DjangoAdminLog
- type DjangoContentType
- type DjangoMigrations
- type DjangoSession
- type FeedBack
- type News
- type NewsType
- type Recommend
- type Slogan
- type UserCompany
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAuthGroup ¶
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 ¶
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 ¶
AddBanner insert a new Banner into database and returns last inserted Id on success.
func AddCommodity ¶
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 ¶
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 ¶
AddFeedBack insert a new FeedBack into database and returns last inserted Id on success.
func AddNewsType ¶
AddNewsType insert a new NewsType into database and returns last inserted Id on success.
func AddRecommend ¶
AddRecommend insert a new Recommend into database and returns last inserted Id on success.
func AddSlogan ¶
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 ¶
DeleteAuthGroup deletes AuthGroup by Id and returns error if the record to be deleted doesn't exist
func DeleteAuthGroupPermissions ¶
DeleteAuthGroupPermissions deletes AuthGroupPermissions by Id and returns error if the record to be deleted doesn't exist
func DeleteAuthPermission ¶
DeleteAuthPermission deletes AuthPermission by Id and returns error if the record to be deleted doesn't exist
func DeleteAuthUser ¶
DeleteAuthUser deletes AuthUser by Id and returns error if the record to be deleted doesn't exist
func DeleteAuthUserGroups ¶
DeleteAuthUserGroups deletes AuthUserGroups by Id and returns error if the record to be deleted doesn't exist
func DeleteAuthUserUserPermissions ¶
DeleteAuthUserUserPermissions deletes AuthUserUserPermissions by Id and returns error if the record to be deleted doesn't exist
func DeleteBanner ¶
DeleteBanner deletes Banner by Id and returns error if the record to be deleted doesn't exist
func DeleteCache ¶
DeleteCache deletes Cache by Id and returns error if the record to be deleted doesn't exist
func DeleteCommodity ¶
DeleteCommodity deletes Commodity by Id and returns error if the record to be deleted doesn't exist
func DeleteCommodityType ¶
DeleteCommodityType deletes CommodityType by Id and returns error if the record to be deleted doesn't exist
func DeleteCompany ¶
DeleteCompany deletes Company by Id and returns error if the record to be deleted doesn't exist
func DeleteDjangoAdminLog ¶
DeleteDjangoAdminLog deletes DjangoAdminLog by Id and returns error if the record to be deleted doesn't exist
func DeleteDjangoContentType ¶
DeleteDjangoContentType deletes DjangoContentType by Id and returns error if the record to be deleted doesn't exist
func DeleteDjangoMigrations ¶
DeleteDjangoMigrations deletes DjangoMigrations by Id and returns error if the record to be deleted doesn't exist
func DeleteDjangoSession ¶
DeleteDjangoSession deletes DjangoSession by Id and returns error if the record to be deleted doesn't exist
func DeleteFeedBack ¶
DeleteFeedBack deletes FeedBack by Id and returns error if the record to be deleted doesn't exist
func DeleteNews ¶
DeleteNews deletes News by Id and returns error if the record to be deleted doesn't exist
func DeleteNewsType ¶
DeleteNewsType deletes NewsType by Id and returns error if the record to be deleted doesn't exist
func DeleteRecommend ¶
DeleteRecommend deletes Recommend by Id and returns error if the record to be deleted doesn't exist
func DeleteSlogan ¶
DeleteSlogan deletes Slogan by Id and returns error if the record to be deleted doesn't exist
func DeleteUserCompany ¶
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 ¶
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 ¶
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 ¶
UpdateBanner updates Banner by Id and returns error if the record to be updated doesn't exist
func UpdateCacheById ¶
UpdateCache updates Cache by Id and returns error if the record to be updated doesn't exist
func UpdateCommodityById ¶
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 ¶
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 ¶
UpdateFeedBack updates FeedBack by Id and returns error if the record to be updated doesn't exist
func UpdateNewsById ¶
UpdateNews updates News by Id and returns error if the record to be updated doesn't exist
func UpdateNewsTypeById ¶
UpdateNewsType updates NewsType by Id and returns error if the record to be updated doesn't exist
func UpdateRecommendById ¶
UpdateRecommend updates Recommend by Id and returns error if the record to be updated doesn't exist
func UpdateSloganById ¶
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 ¶
func GetAuthGroupById ¶
GetAuthGroupById retrieves AuthGroup by Id. Returns error if Id doesn't exist
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 ¶
GetAuthUserById retrieves AuthUser by Id. Returns error if Id doesn't exist
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 ¶
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 ¶
GetBannerById retrieves Banner by Id. Returns error if Id doesn't exist
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 ¶
GetCacheById retrieves Cache by Id. Returns error if Id doesn't exist
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 ¶
GetCommodityById retrieves Commodity by Id. Returns error if Id doesn't exist
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 ¶
GetCompanyById retrieves Company by Id. Returns error if Id doesn't exist
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 ¶
GetFeedBackById retrieves FeedBack by Id. Returns error if Id doesn't exist
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 ¶
GetNewsById retrieves News by Id. Returns error if Id doesn't exist
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 ¶
GetNewsTypeById retrieves NewsType by Id. Returns error if Id doesn't exist
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 ¶
GetRecommendById retrieves Recommend by Id. Returns error if Id doesn't exist
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 ¶
GetSloganById retrieves Slogan by Id. Returns error if Id doesn't exist
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
Source Files ¶
- auth_group.go
- auth_group_permissions.go
- auth_permission.go
- auth_user.go
- auth_user_groups.go
- auth_user_user_permissions.go
- banner.go
- cache.go
- commodity.go
- commodity_type.go
- company.go
- django_admin_log.go
- django_content_type.go
- django_migrations.go
- django_session.go
- feed_back.go
- news.go
- news_type.go
- recommend.go
- slogan.go
- user_company.go