Documentation ¶
Index ¶
- Variables
- func ContentDAOToModel(tl *dao.TimeLine) (*model.TimeLineMemoContent, error)
- func DAOToModel(tl *dao.TimeLine) (*model.TimeLineMemo, error)
- func ModelToDAO(memo *model.TimeLineMemo) ([]byte, error)
- type BlogMemo
- type DoujinMemo
- type GroupMemo
- type IndexMemo
- type MonoMemo
- type ProgressMemo
- type RelationMemo
- type SayEditMemo
- type SubjectMemo
- type WikiMemo
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnexpectedType = fmt.Errorf("unexpected type")
Functions ¶
func ContentDAOToModel ¶
func ContentDAOToModel(tl *dao.TimeLine) (*model.TimeLineMemoContent, error)
func DAOToModel ¶
func DAOToModel(tl *dao.TimeLine) (*model.TimeLineMemo, error)
func ModelToDAO ¶
func ModelToDAO(memo *model.TimeLineMemo) ([]byte, error)
Types ¶
type BlogMemo ¶
type BlogMemo struct { EntryTitle string `php:"entry_title"` EntryDescription string `php:"entry_desc"` EntryID int `php:"entry_id"` }
func (*BlogMemo) FromModel ¶
func (m *BlogMemo) FromModel(mc *model.TimeLineMemoContent)
func (*BlogMemo) ToModel ¶
func (m *BlogMemo) ToModel() *model.TimeLineMemoContent
type DoujinMemo ¶
func (*DoujinMemo) FromModel ¶
func (m *DoujinMemo) FromModel(mc *model.TimeLineMemoContent)
func (*DoujinMemo) ToModel ¶
func (m *DoujinMemo) ToModel() *model.TimeLineMemoContent
type GroupMemo ¶
type GroupMemo struct { ID string `php:"grp_id"` Name string `php:"grp_name"` Title string `php:"grp_title"` Description string `php:"grp_desc"` }
func (*GroupMemo) FromModel ¶
func (g *GroupMemo) FromModel(mc *model.TimeLineMemoContent)
func (*GroupMemo) ToModel ¶
func (g *GroupMemo) ToModel() *model.TimeLineMemoContent
type IndexMemo ¶
type IndexMemo struct { ID string `php:"idx_id"` Title string `php:"idx_title"` Description string `php:"idx_desc"` }
func (*IndexMemo) FromModel ¶
func (m *IndexMemo) FromModel(mc *model.TimeLineMemoContent)
func (*IndexMemo) ToModel ¶
func (m *IndexMemo) ToModel() *model.TimeLineMemoContent
type MonoMemo ¶
func (*MonoMemo) FromModel ¶
func (m *MonoMemo) FromModel(mc *model.TimeLineMemoContent)
func (*MonoMemo) ToModel ¶
func (m *MonoMemo) ToModel() *model.TimeLineMemoContent
type ProgressMemo ¶
type ProgressMemo struct { EpName *string `php:"ep_name,omitempty"` VolsTotal *string `php:"vols_total,omitempty"` SubjectName *string `php:"subject_name,omitempty"` EpsUpdate *int `php:"eps_update,omitempty"` VolsUpdate *int `php:"vols_update,omitempty,string"` EpsTotal *int `php:"eps_total,omitempty,string"` EpSort *int `php:"ep_sort,omitempty,string"` EpID *model.EpisodeID `php:"ep_id,omitempty,string"` SubjectID *model.SubjectID `php:"subject_id,omitempty,string"` SubjectTypeID *model.SubjectType `php:"subject_type_id,omitempty,string"` }
func (*ProgressMemo) FromModel ¶
func (m *ProgressMemo) FromModel(mc *model.TimeLineMemoContent)
func (*ProgressMemo) ToModel ¶
func (m *ProgressMemo) ToModel() *model.TimeLineMemoContent
type RelationMemo ¶
type RelationMemo struct { UserID string `php:"uid"` Username string `php:"username"` Nickname string `php:"nickname"` }
func (*RelationMemo) FromModel ¶
func (m *RelationMemo) FromModel(mc *model.TimeLineMemoContent)
func (*RelationMemo) ToModel ¶
func (m *RelationMemo) ToModel() *model.TimeLineMemoContent
type SayEditMemo ¶
func (*SayEditMemo) FromModel ¶
func (m *SayEditMemo) FromModel(mc *model.TimeLineMemoContent)
func (*SayEditMemo) ToModel ¶
func (m *SayEditMemo) ToModel() *model.TimeLineMemoContent
type SubjectMemo ¶
type SubjectMemo struct { ID string `php:"subject_id"` TypeID string `php:"subject_type_id"` Name string `php:"subject_name"` NameCN string `php:"subject_name_cn"` Series string `php:"subject_series"` CollectComment string `php:"collect_comment"` CollectRate int `php:"collect_rate"` }
func (*SubjectMemo) FromModel ¶
func (m *SubjectMemo) FromModel(mc *model.TimeLineMemoContent)
func (*SubjectMemo) ToModel ¶
func (m *SubjectMemo) ToModel() *model.TimeLineMemoContent
type WikiMemo ¶
type WikiMemo struct { SubjectName string `php:"subject_name"` SubjectNameCN string `php:"subject_name_cn"` SubjectID int `php:"subject_id"` }
func (*WikiMemo) FromModel ¶
func (m *WikiMemo) FromModel(mc *model.TimeLineMemoContent)
func (*WikiMemo) ToModel ¶
func (m *WikiMemo) ToModel() *model.TimeLineMemoContent
Click to show internal directories.
Click to hide internal directories.