Documentation
¶
Overview ¶
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Index ¶
- Variables
- 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
- type Query
- type QueryAdmin
- type UpdateParams
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ParamsIdName = "message_id"
)
Functions ¶
func Create ¶
func Create(context controller.Context, input CreateMessageParams) (res schema.Response)
func CreateRouter ¶
func DeleteByAdmin ¶
func DeleteByAdmin(context controller.Context, messageId string) (res schema.Response)
func DeleteByAdminRouter ¶
func DeleteByUser ¶
func DeleteByUser(context controller.Context, messageId string) (res schema.Response)
func DeleteByUserRouter ¶
func DeleteMessageById ¶
func DeleteMessageById(id string)
func GetByAdmin ¶
func GetByAdmin(context controller.Context, id string) (res schema.Response)
Get Message detail
func GetMessageListByAdmin ¶
func GetMessageListByAdmin(context controller.Context, input QueryAdmin) (res schema.List)
用户获取自己的消息列表
func GetMessageListByUser ¶
func GetMessageListByUser(context controller.Context, input Query) (res schema.List)
用户获取自己的消息列表
func ReadRouter ¶
func Update ¶
func Update(context controller.Context, messageId string, input UpdateParams) (res schema.Response)
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.