OrgRecord

package
v5.1.34 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 15 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"`
	//模块标识码
	FromMark string `db:"from_mark" json:"fromMark"`
	//修改内容ID
	FromID int64 `db:"from_id" json:"fromID"`
	//绑定ID
	BindID int64 `db:"bind_id" json:"bindID"`
	//操作内容标识码
	// 可用于其他语言处理
	ContentMark string `db:"content_mark" json:"contentMark"`
	//操作内容概述
	Content string `db:"content" json:"content"`
	//变动内容列
	ChangeData FieldsRecordChangeList `db:"change_data" json:"changeData"`
}

ArgsCreate 插入数据参数

type ArgsGetList

type ArgsGetList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//组织
	OrgID int64 `json:"orgID" check:"id" empty:"true"`
	//模块标识码
	FromMark string `db:"from_mark" json:"fromMark" check:"mark" empty:"true"`
	//修改内容ID
	FromID int64 `db:"from_id" json:"fromID" check:"id" empty:"true"`
	//绑定人信息
	BindID int64 `json:"bindID" check:"id" empty:"true"`
	//指定行为mark
	ContentMarks pq.StringArray `json:"contentMarks" check:"marks" empty:"true"`
	//是否为历史数据
	IsHistory bool `json:"isHistory" check:"bool" empty:"true"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetList 查询列表参数

type FieldsRecordChange

type FieldsRecordChange struct {
	//标识码
	Mark string `db:"mark" json:"mark"`
	//名称
	Name string `db:"name" json:"name"`
	//变动前
	Before string `db:"before" json:"before"`
	//变动后
	After string `db:"after" json:"after"`
}

func (*FieldsRecordChange) Scan

func (t *FieldsRecordChange) Scan(value interface{}) error

func (FieldsRecordChange) Value

func (t FieldsRecordChange) Value() (driver.Value, error)

Value sql底层处理器

type FieldsRecordChangeList

type FieldsRecordChangeList []FieldsRecordChange

func (*FieldsRecordChangeList) Scan

func (t *FieldsRecordChangeList) Scan(value interface{}) error

func (FieldsRecordChangeList) Value

Value sql底层处理器

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"`
	//模块标识码
	FromMark string `db:"from_mark" json:"fromMark"`
	//修改内容ID
	FromID int64 `db:"from_id" json:"fromID"`
	//绑定ID
	BindID int64 `db:"bind_id" json:"bindID"`
	//操作内容标识码
	// 可用于其他语言处理
	ContentMark string `db:"content_mark" json:"contentMark"`
	//操作内容概述
	Content string `db:"content" json:"content"`
	//变动内容列
	ChangeData FieldsRecordChangeList `db:"change_data" json:"changeData"`
}

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