Documentation ¶
Overview ¶
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Copyright 2019-2020 Axetroy. All rights reserved. MIT license.
Index ¶
- Variables
- func Create(c helper.Context, input CreateMessageParams) (res schema.Response)
- func CreateRouter(c *gin.Context)
- func DeleteByAdmin(c helper.Context, messageId string) (res schema.Response)
- func DeleteByAdminRouter(c *gin.Context)
- func DeleteByUser(c helper.Context, messageId string) (res schema.Response)
- func DeleteByUserRouter(c *gin.Context)
- func DeleteMessageById(id string)
- func Get(c helper.Context, id string) (res schema.Response)
- func GetAdminRouter(c *gin.Context)
- func GetByAdmin(c helper.Context, id string) (res schema.Response)
- func GetMessageListByAdmin(c helper.Context, input QueryAdmin) (res schema.List)
- func GetMessageListByAdminRouter(c *gin.Context)
- func GetMessageListByUser(c helper.Context, input Query) (res schema.List)
- func GetMessageListByUserRouter(c *gin.Context)
- func GetRouter(c *gin.Context)
- func MarkRead(c helper.Context, id string) (res schema.Response)
- func ReadRouter(c *gin.Context)
- func Update(c helper.Context, messageId string, input UpdateParams) (res schema.Response)
- func UpdateRouter(c *gin.Context)
- type CreateMessageParams
- type Query
- type QueryAdmin
- type UpdateParams
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ParamsIdName = "message_id"
)
Functions ¶
func CreateRouter ¶
func DeleteByAdminRouter ¶
func DeleteByUserRouter ¶
func DeleteMessageById ¶
func DeleteMessageById(id string)
func GetByAdmin ¶
Get Message detail
func GetMessageListByAdmin ¶
func GetMessageListByAdmin(c helper.Context, input QueryAdmin) (res schema.List)
用户获取自己的消息列表
func GetMessageListByUser ¶
用户获取自己的消息列表
func ReadRouter ¶
func UpdateRouter ¶
Types ¶
type CreateMessageParams ¶
type Query ¶
type Query struct { schema.Query Status *model.MessageStatus `json:"status" form:"status"` Read *bool `json:"read" form:"read"` }
type QueryAdmin ¶
type UpdateParams ¶
Click to show internal directories.
Click to hide internal directories.