github.com/lino-network/lino@v0.6.11/x/post/model/post.go (about)

     1  package model
     2  
     3  import (
     4  	"github.com/lino-network/lino/types"
     5  )
     6  
     7  // Post - post is created by the CreatedBy.
     8  type Post struct {
     9  	PostID    string           `json:"post_id"`
    10  	Title     string           `json:"title"`
    11  	Content   string           `json:"content"`
    12  	Author    types.AccountKey `json:"author"`
    13  	CreatedBy types.AccountKey `json:"created_by"`
    14  	CreatedAt int64            `json:"created_at"`
    15  	UpdatedAt int64            `json:"updated_at"`
    16  	IsDeleted bool             `json:"is_deleted"`
    17  }