notification

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: MIT Imports: 14 Imported by: 0

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(c helper.Context, input CreateParams) (res schema.Response)

func CreateRouter

func CreateRouter(c *gin.Context)

func Delete

func Delete(c helper.Context, notificationId string) (res schema.Response)

func DeleteNotificationById

func DeleteNotificationById(id string)

func DeleteNotificationMarkById

func DeleteNotificationMarkById(id string)

func DeleteRouter

func DeleteRouter(c *gin.Context)

func Get

func Get(c helper.Context, id string) (res schema.Response)

Get notification detail

func GetNotificationListByAdmin

func GetNotificationListByAdmin(c helper.Context, input Query) (res schema.List)

GetList get notification list

func GetNotificationListByAdminRouter

func GetNotificationListByAdminRouter(c *gin.Context)

GetListRouter get list router

func GetNotificationListByUser

func GetNotificationListByUser(c helper.Context, input Query) (res schema.List)

GetList get notification list

func GetNotificationListByUserRouter

func GetNotificationListByUserRouter(c *gin.Context)

GetListRouter get list router

func GetRouter

func GetRouter(c *gin.Context)

GetRouter get notification detail router

func Update

func Update(c helper.Context, notificationId string, input UpdateParams) (res schema.Response)

func UpdateRouter

func UpdateRouter(c *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