Documentation ¶
Index ¶
- type CommentController
- func (c *CommentController) AddOrUpdateContent()
- func (c *CommentController) BatchGetByProdId()
- func (c *CommentController) CreateTable()
- func (c *CommentController) Delete()
- func (c *CommentController) Get()
- func (c *CommentController) ReadPageParams() (string, int64, int32)
- func (base *CommentController) ReadParams() (string, int64)
- func (base *CommentController) ReadProdId() string
- func (base *CommentController) RespondError(statusCode int, message ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentController ¶
type CommentController struct {
beego.Controller
}
func (*CommentController) AddOrUpdateContent ¶
func (c *CommentController) AddOrUpdateContent()
************************************** * Post
{ "ProdId":"123", "Content":"I feel greate", }
"CommentId":<int>, if value is provided, this is an update action ***************************************
func (*CommentController) BatchGetByProdId ¶
func (c *CommentController) BatchGetByProdId()
************************************** * Batch Get page by page ***************************************
func (*CommentController) CreateTable ¶
func (c *CommentController) CreateTable()
func (*CommentController) Delete ¶
func (c *CommentController) Delete()
************************************** * Delete ***************************************
func (*CommentController) Get ¶
func (c *CommentController) Get()
************************************** * Get ***************************************
func (*CommentController) ReadPageParams ¶
func (c *CommentController) ReadPageParams() (string, int64, int32)
func (*CommentController) ReadParams ¶
func (base *CommentController) ReadParams() (string, int64)
func (*CommentController) ReadProdId ¶
func (base *CommentController) ReadProdId() string
func (*CommentController) RespondError ¶
func (base *CommentController) RespondError(statusCode int, message ...string)
Click to show internal directories.
Click to hide internal directories.