mirror of
https://github.com/Luzifer/sii.git
synced 2024-12-21 00:21:15 +00:00
21 lines
442 B
Go
21 lines
442 B
Go
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 }
|