UserRecordCore

package
v5.1.37 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 11 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 Run

func Run()

Types

type ArgsCreate

type ArgsCreate struct {
	//组织ID
	// 留空则表明为平台所有
	OrgID int64 `db:"org_id" json:"orgID"`
	//用户信息
	UserID   int64  `db:"user_id" json:"userID"`
	UserName string `db:"username" json:"username"`
	//记录内容
	ContentMark string `db:"content_mark" json:"contentMark"`
	Content     string `db:"content" json:"content"`
}

ArgsCreate 插入数据参数

type ArgsGetList

type ArgsGetList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//组织ID
	OrgID int64 `json:"orgID" check:"id" empty:"true"`
	//用户ID
	UserID int64 `json:"userID" check:"id" empty:"true"`
	//指定行为mark
	ContentMark string `json:"contentMark" check:"mark" empty:"true"`
	//是否为历史数据
	IsHistory bool `json:"isHistory" check:"bool"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetList 查询列表参数

type FieldsRecordType

type FieldsRecordType 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
	UserID int64 `db:"user_id" json:"userID"`
	//用户昵称
	UserName string `db:"username" json:"userName"`
	//操作内容标识码
	// 可用于其他语言处理
	ContentMark string `db:"content_mark" json:"contentMark"`
	//操作内容概述
	Content string `db:"content" json:"content"`
}

FieldsRecordType 短信模版和配置信息结构

func GetList

func GetList(args *ArgsGetList) (dataList []FieldsRecordType, dataCount int64, err error)

GetList 查询列表

Jump to

Keyboard shortcuts

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