2022-12-30 23:57:03 -05:00
|
|
|
package forum
|
|
|
|
|
2023-01-05 20:47:20 -05:00
|
|
|
import "strings"
|
|
|
|
|
2022-12-30 23:57:03 -05:00
|
|
|
type Forum struct {
|
|
|
|
ID string
|
|
|
|
Name string
|
2023-01-05 11:43:52 -05:00
|
|
|
|
2023-01-05 20:47:20 -05:00
|
|
|
Info string
|
|
|
|
|
2023-01-05 11:43:52 -05:00
|
|
|
SysIDX int
|
|
|
|
}
|
|
|
|
|
|
|
|
func (forum Forum) FilterValue() string {
|
|
|
|
return forum.Name
|
|
|
|
}
|
|
|
|
|
|
|
|
func (forum Forum) Title() string {
|
2023-01-05 20:47:20 -05:00
|
|
|
return strings.Title(forum.Name)
|
2023-01-05 11:43:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
func (forum Forum) Description() string {
|
2023-01-05 20:47:20 -05:00
|
|
|
return forum.Info
|
2022-12-30 23:57:03 -05:00
|
|
|
}
|