OrgWorkTip

package
v5.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//OpenSub 是否启动订阅
	OpenSub = false
)

工作提示模块 * 1. 外部任意模块可写入通知 2. 可联动任意模块,交互处理跳转

Functions

func Init

func Init()

Init 初始化

func ReadID

func ReadID(id int64, orgBindID int64) (err error)

ReadID 阅读指定ID

Types

type ArgsGetMsgList

type ArgsGetMsgList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//成员ID
	OrgBindID int64 `db:"org_bind_id" json:"orgBindID"`
	//是否已读
	IsRead bool `db:"is_read" json:"isRead"`
}

ArgsGetMsgList 获取通知列表参数

type FieldsWorkTip

type FieldsWorkTip struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID"`
	//成员ID
	OrgBindID int64 `db:"org_bind_id" json:"orgBindID"`
	//消息内容
	Msg string `db:"msg" json:"msg"`
	//系统
	System string `db:"system" json:"system"`
	//绑定ID
	BindID int64 `db:"bind_id" json:"bindID"`
	//是否已读
	IsRead bool `db:"is_read" json:"isRead"`
}

func GetLastMsg

func GetLastMsg(orgBindID int64) (data FieldsWorkTip, count int64)

GetLastMsg 获取最近一条通知

func GetMsgList

func GetMsgList(args *ArgsGetMsgList) (dataList []FieldsWorkTip, dataCount int64, err error)

GetMsgList 获取通知列表

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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