Documentation ¶
Index ¶
- type Periodical
- func (c Periodical) Code() string
- func (c Periodical) GetDateRange(date time.Time) (time.Time, time.Time)
- func (c Periodical) MarshalJSON() ([]byte, error)
- func (c Periodical) Name() string
- func (c *Periodical) Scan(val interface{}) error
- func (c *Periodical) UnmarshalJSON(val []byte) error
- func (c *Periodical) UnmarshalParam(src string) error
- func (c Periodical) Value() (driver.Value, error)
- type PeriodicalClass
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Periodical ¶
type Periodical int
Periodical .
const ( // Daily . Daily Periodical = iota + 1 // Weekly . Weekly // Monthly . Monthly // CurrentMonthly . CurrentMonthly // Custom . Custom )
func GetByDateRange ¶
func GetByDateRange(dateStart, dateEnd time.Time) Periodical
func (Periodical) GetDateRange ¶
func (Periodical) MarshalJSON ¶
func (c Periodical) MarshalJSON() ([]byte, error)
MarshalJSON presents value to the client
func (*Periodical) Scan ¶
func (c *Periodical) Scan(val interface{}) error
Scan retrieves value from the DB
func (*Periodical) UnmarshalJSON ¶
func (c *Periodical) UnmarshalJSON(val []byte) error
UnmarshalJSON parses value from the client
func (*Periodical) UnmarshalParam ¶
func (c *Periodical) UnmarshalParam(src string) error
UnmarshalParam parses value from the client (handled by gorm)
type PeriodicalClass ¶
PeriodicalClass .
func AsCompleteConstants ¶
func AsCompleteConstants() []PeriodicalClass
AsCompleteConstants presents constants as their complete object form
Click to show internal directories.
Click to hide internal directories.