package api type Memo struct { Id int `json:"id"` CreatedTs int64 `json:"createdTs"` UpdatedTs int64 `json:"updatedTs"` RowStatus string `json:"rowStatus"` Content string `json:"content"` CreatorId int `json:"creatorId"` } type MemoCreate struct { Content string `json:"content"` CreatorId int } type MemoPatch struct { Id int Content *string RowStatus *string } type MemoFind struct { Id *int CreatorId *int RowStatus *string } type MemoDelete struct { Id *int `json:"id"` CreatorId *int } type MemoService interface { CreateMemo(create *MemoCreate) (*Memo, error) PatchMemo(patch *MemoPatch) (*Memo, error) FindMemoList(find *MemoFind) ([]*Memo, error) FindMemo(find *MemoFind) (*Memo, error) DeleteMemo(delete *MemoDelete) error }