1
0
Fork 0
mirror of https://github.com/Luzifer/sii.git synced 2024-10-18 05:14:19 +00:00
sii/block_company_permanent.go

22 lines
442 B
Go
Raw Permalink Normal View History

package sii
func init() {
RegisterBlock(&CompanyPermanent{})
}
type CompanyPermanent struct {
CompanyName string `sii:"name"`
SortName string `sii:"sort_name"`
TrailerLook Ptr `sii:"trailer_look"`
blockName string
}
func (CompanyPermanent) Class() string { return "company_permanent" }
func (c *CompanyPermanent) Init(class, name string) {
c.blockName = name
}
func (c CompanyPermanent) Name() string { return c.blockName }