Versions in this module Expand all Collapse all v0 v0.1.1 Sep 27, 2019 v0.1.0 Sep 1, 2019 Changes in this version + var ParamsIdName = "message_id" + func Create(context controller.Context, input CreateMessageParams) (res schema.Response) + func CreateRouter(context *gin.Context) + func DeleteByAdmin(context controller.Context, messageId string) (res schema.Response) + func DeleteByAdminRouter(context *gin.Context) + func DeleteByUser(context controller.Context, messageId string) (res schema.Response) + func DeleteByUserRouter(context *gin.Context) + func DeleteMessageById(id string) + func Get(context controller.Context, id string) (res schema.Response) + func GetAdminRouter(context *gin.Context) + func GetByAdmin(context controller.Context, id string) (res schema.Response) + func GetMessageListByAdmin(context controller.Context, input QueryAdmin) (res schema.List) + func GetMessageListByAdminRouter(context *gin.Context) + func GetMessageListByUser(context controller.Context, input Query) (res schema.List) + func GetMessageListByUserRouter(context *gin.Context) + func GetRouter(context *gin.Context) + func MarkRead(context controller.Context, id string) (res schema.Response) + func ReadRouter(context *gin.Context) + func Update(context controller.Context, messageId string, input UpdateParams) (res schema.Response) + func UpdateRouter(context *gin.Context) + type CreateMessageParams struct + Content string + Title string + Uid string + type Query struct + Read *bool + Status *model.MessageStatus + type QueryAdmin struct + Uid *string + type UpdateParams struct + Content *string + Title *string