notification

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2019 License: MIT Imports: 14 Imported by: 0

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(context controller.Context, input CreateParams) (res schema.Response)

func CreateRouter

func CreateRouter(context *gin.Context)

func Delete

func Delete(context controller.Context, notificationId string) (res schema.Response)

func DeleteNotificationById

func DeleteNotificationById(id string)

func DeleteNotificationMarkById

func DeleteNotificationMarkById(id string)

func DeleteRouter

func DeleteRouter(context *gin.Context)

func Get

func Get(context controller.Context, id string) (res schema.Response)

Get notification detail

func GetNotificationListByAdmin

func GetNotificationListByAdmin(context controller.Context, input Query) (res schema.List)

GetList get notification list

func GetNotificationListByAdminRouter

func GetNotificationListByAdminRouter(context *gin.Context)

GetListRouter get list router

func GetNotificationListByUser

func GetNotificationListByUser(context controller.Context, input Query) (res schema.List)

GetList get notification list

func GetNotificationListByUserRouter

func GetNotificationListByUserRouter(context *gin.Context)

GetListRouter get list router

func GetRouter

func GetRouter(context *gin.Context)

GetRouter get notification detail router

func MarkRead

func MarkRead(context controller.Context, notificationID string) (res schema.Response)

MarkRead mark notification as read

func ReadRouter

func ReadRouter(context *gin.Context)

ReadRouter read this notification router

func Update

func Update(context controller.Context, notificationId string, input UpdateParams) (res schema.Response)

func UpdateRouter

func UpdateRouter(context *gin.Context)

Types

type CreateParams

type CreateParams struct {
	Title   string  `json:"title" valid:"required~请输入公告标题"`   // 公告标题
	Content string  `json:"content" valid:"required~请输入公告内容"` // 公告内容
	Note    *string `json:"note"`                             // 备注
}

type Query

type Query struct {
	schema.Query
}

Query params

type UpdateParams

type UpdateParams struct {
	Title   *string `json:"title"`   // 公告标题
	Content *string `json:"content"` // 公告内容
	Note    *string `json:"note"`    // 备注
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL