OrgTip

package
v5.1.36 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(args *ArgsCreate) (err error)

Create 创建推送计划

func DeleteByCreateFrom

func DeleteByCreateFrom(args *ArgsDeleteByCreateFrom) (err error)

DeleteByCreateFrom 删除某个来源的所有推送

func Run

func Run()

Types

type ArgsCreate

type ArgsCreate struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID"`
	//创建来源
	CreateInfo CoreSQLFrom.FieldsFrom `db:"create_info" json:"createInfo"`
	//推送目标系统
	FromInfo CoreSQLFrom.FieldsFrom `db:"from_info" json:"fromInfo"`
	//计划提醒时间
	TipAt time.Time `db:"tip_at" json:"tipAt"`
	//提醒标题
	Title string `db:"title" json:"title"`
	//提醒内容
	Content string `db:"content" json:"content"`
	//附加文件
	Files pq.Int64Array `db:"files" json:"files"`
	//是否需要短信
	NeedSMS bool `db:"need_sms" json:"needSMS"`
	//短信配置
	SMSConfigID int64 `db:"sms_config_id" json:"smsConfigID"`
	//短信模版参数
	SMSParams CoreSQLConfig.FieldsConfigsType `db:"sms_params" json:"smsParams"`
	//扩展数据
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
}

ArgsCreate 创建推送计划参数

type ArgsDeleteByCreateFrom

type ArgsDeleteByCreateFrom struct {
	//创建来源
	CreateInfo CoreSQLFrom.FieldsFrom
}

ArgsDeleteByCreateFrom 删除某个来源的所有推送参数

type FieldsTipType

type FieldsTipType struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID"`
	//创建来源
	CreateInfo CoreSQLFrom.FieldsFrom `db:"create_info" json:"createInfo"`
	//推送目标系统
	FromInfo CoreSQLFrom.FieldsFrom `db:"from_info" json:"fromInfo"`
	//计划提醒时间
	TipAt time.Time `db:"tip_at" json:"tipAt"`
	//提醒标题
	Title string `db:"title" json:"title"`
	//提醒内容
	Content string `db:"content" json:"content"`
	//附件
	Files pq.Int64Array `db:"files" json:"files"`
	//是否需要短信
	NeedSMS bool `db:"need_sms" json:"needSMS"`
	//短信配置
	SMSConfigID int64 `db:"sms_config_id" json:"smsConfigID"`
	//短信模版参数
	SMSParams CoreSQLConfig.FieldsConfigsType `db:"sms_params" json:"smsParams"`
	//扩展数据
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
	//是否已经发送
	AllowSend bool `db:"allow_send" json:"allowSend"`
}

FieldsTipType 提醒数据列队

Jump to

Keyboard shortcuts

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