BaseBPM

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	//OpenSub 订阅
	OpenSub = false
)

Functions

func CreateBPM

func CreateBPM(args *ArgsCreateBPM) (id int64, err error)

CreateBPM 创建BPM

func CreateEvent

func CreateEvent(args *ArgsCreateEvent) (id int64, err error)

CreateEvent 创建Event

func CreateLog

func CreateLog(args *ArgsCreateLog) (id int64, err error)

func CreateSlot

func CreateSlot(args *ArgsCreateSlot) (id int64, err error)

CreateSlot 创建Slot

func CreateTheme

func CreateTheme(args *ArgsCreateTheme) (id int64, err error)

CreateTheme 创建Theme

func CreateThemeCategory

func CreateThemeCategory(args *ArgsCreateThemeCategory) (id int64, err error)

CreateThemeCategory 创建ThemeCategory

func DeleteBPM

func DeleteBPM(args *ArgsDeleteBPM) (err error)

DeleteBPM 删除BPM

func DeleteEvent

func DeleteEvent(args *ArgsDeleteEvent) (err error)

DeleteEvent 删除Event

func DeleteSlot

func DeleteSlot(args *ArgsDeleteSlot) (err error)

DeleteSlot 删除Slot

func DeleteTheme

func DeleteTheme(args *ArgsDeleteTheme) (err error)

DeleteTheme 删除Theme

func DeleteThemeCategory

func DeleteThemeCategory(args *ArgsDeleteThemeCategory) (err error)

DeleteThemeCategory 删除ThemeCategory

func GetBPMBNameByID added in v5.1.16

func GetBPMBNameByID(id int64) (name string)

GetBPMBNameByID 获取BPM名称

func GetBPMCountByThemeID added in v5.1.2

func GetBPMCountByThemeID(themeID int64) (count int64)

GetBPMCountByThemeID 获取主题下的bpm数量

func GetEventCountByCategoryID added in v5.1.2

func GetEventCountByCategoryID(categoryID int64) (count int64)

GetEventCountByCategoryID 获取分类下的事件数量

func GetEventCountByThemeID added in v5.1.2

func GetEventCountByThemeID(themeID int64) (count int64)

GetEventCountByThemeID 获取主题下的事件数量

func GetSlotCountByCategoryID added in v5.1.2

func GetSlotCountByCategoryID(categoryID int64) (count int64)

GetSlotCountByCategoryID 获取分类下的插槽数量

func GetSlotCountByThemeID added in v5.1.2

func GetSlotCountByThemeID(themeID int64) (count int64)

GetSlotCountByThemeID 获取主题下的插槽数量

func GetThemeCountByCategoryID added in v5.1.2

func GetThemeCountByCategoryID(categoryID int64) (count int64)

GetThemeCountByCategoryID 获取分类下的主题数量

func GetThemeNameByID added in v5.1.16

func GetThemeNameByID(id int64) (name string)

GetThemeNameByID 获取Theme数

func Init

func Init()

Init 初始化

func UpdateBPM

func UpdateBPM(args *ArgsUpdateBPM) (err error)

UpdateBPM 修改BPM

func UpdateEvent

func UpdateEvent(args *ArgsUpdateEvent) (err error)

UpdateEvent 修改Event

func UpdateSlot

func UpdateSlot(args *ArgsUpdateSlot) (err error)

UpdateSlot 修改Slot

func UpdateTheme

func UpdateTheme(args *ArgsUpdateTheme) (err error)

UpdateTheme 修改Theme

func UpdateThemeCategory

func UpdateThemeCategory(args *ArgsUpdateThemeCategory) (err error)

UpdateThemeCategory 修改ThemeCategory

Types

type ArgsCreateBPM

type ArgsCreateBPM struct {
	//名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
	//描述
	Description string `db:"description" json:"description" check:"des" min:"1" max:"500" empty:"true"`
	//所属主题
	ThemeID int64 `db:"theme_id" json:"themeId" check:"id"`
	//流程节点数量
	NodeCount int `db:"node_count" json:"nodeCount" check:"int64Than0"`
	//流程json文件内容
	JSONNode string `db:"json_node" json:"jsonNode"`
}

ArgsCreateBPM 创建BPM参数

type ArgsCreateEvent

type ArgsCreateEvent struct {
	//名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
	//描述
	Description string `db:"description" json:"description" check:"des" min:"1" max:"500" empty:"true"`
	//所属主题分类
	ThemeCategoryID int64 `db:"theme_category_id" json:"themeCategoryId" check:"id"`
	//所属主题
	// 插槽可用于的主题域
	ThemeID int64 `db:"theme_id" json:"themeId" check:"id"`
	//事件编码
	Code string `db:"code" json:"code" check:"des" min:"1" max:"300"`
	//事件类型
	// nats - NATS事件
	EventType string `db:"event_type" json:"eventType" check:"intThan0"`
	//事件地址
	// nats - 触发的地址
	EventURL string `db:"event_url" json:"eventURL" check:"des" min:"1" max:"600"`
	//事件固定参数
	// nats - 事件附带的固定参数,如果为空则根据流程阶段事件触发填入
	EventParams string `db:"event_params" json:"eventParams" check:"des" min:"1" max:"1000" empty:"true"`
}

ArgsCreateEvent 创建Event参数

type ArgsCreateLog

type ArgsCreateLog struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//管理单元
	UnitID int64 `db:"unit_id" json:"unitID"`
	//操作用户
	UserID int64 `db:"user_id" json:"userID" check:"id" empty:"true"`
	//操作组织成员ID
	OrgBindID int64 `db:"org_bind_id" json:"orgBindID" check:"id" empty:"true"`
	//BPM ID
	BPMID int64 `db:"bpm_id" json:"bpmId" check:"id"`
	//当前节点ID
	NodeID string `db:"node_id" json:"nodeId" check:"des" min:"1" max:"300"`
	//当前节点序号
	NodeNumber int `db:"node_number" json:"nodeNumber" check:"int64Than0"`
	//节点存储内容
	NodeContent string `db:"node_content" json:"nodeContent"`
}

type ArgsCreateSlot

type ArgsCreateSlot struct {
	//名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
	//所属主题分类
	ThemeCategoryID int64 `db:"theme_category_id" json:"themeCategoryId" check:"id"`
	//所属主题
	// 插槽可用于的主题域
	ThemeID int64 `db:"theme_id" json:"themeId" check:"id"`
	//值类型
	// 插槽的值类型
	// input 输入框; text 文本域; radio 单选项; checkbox 多选项; select 下拉单选框;
	// date: 日期; time: 时间; datetime: 日期时间;
	// file: 文件ID; files 文件ID列; image: 图片; images 图片列; audio: 音频; video: 视频; videos 视频列; url: URL;
	// email: 邮箱; phone: 电话; id: ID; password: 密码;
	// code: 代码; html: HTML; markdown: Markdown; xml: XML; yaml: YAML;
	ValueType string `db:"value_type" json:"valueType" check:"des" min:"1" max:"3000"`
	//默认值
	// 插槽的默认值
	DefaultValue string `db:"default_value" json:"defaultValue" check:"des" min:"1" max:"3000"`
	//参数
	// 根据组件需求,自定义参数内容
	Params string `db:"params" json:"params"`
}

ArgsCreateSlot 创建Slot参数

type ArgsCreateTheme

type ArgsCreateTheme struct {
	//所属主题分类
	CategoryID int64 `db:"category_id" json:"categoryId" check:"id"`
	//主题名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
	//主题描述
	Description string `db:"description" json:"description" check:"des" min:"1" max:"500" empty:"true"`
}

ArgsCreateTheme 创建Theme参数

type ArgsCreateThemeCategory

type ArgsCreateThemeCategory struct {
	//主题名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
	//主题描述
	Description string `db:"description" json:"description" check:"des" min:"1" max:"500" empty:"true"`
}

ArgsCreateThemeCategory 创建ThemeCategory参数

type ArgsDeleteBPM

type ArgsDeleteBPM struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
}

ArgsDeleteBPM 删除BPM参数

type ArgsDeleteEvent

type ArgsDeleteEvent struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
}

ArgsDeleteEvent 删除Event参数

type ArgsDeleteSlot

type ArgsDeleteSlot struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
}

ArgsDeleteSlot 删除Slot参数

type ArgsDeleteTheme

type ArgsDeleteTheme struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
}

ArgsDeleteTheme 删除Theme参数

type ArgsDeleteThemeCategory

type ArgsDeleteThemeCategory struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
}

ArgsDeleteThemeCategory 删除ThemeCategory参数

type ArgsGetBPMByID

type ArgsGetBPMByID struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
}

ArgsGetBPMByID 获取BPM数据包参数

type ArgsGetBPMList

type ArgsGetBPMList struct {
	//分页参数
	Pages CoreSQL2.ArgsPages `json:"pages"`
	//所属主题
	ThemeID int64 `db:"theme_id" json:"themeId" check:"id" empty:"true"`
	//是否删除
	IsRemove bool `json:"isRemove" check:"bool"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetBPMList 获取BPM列表参数

type ArgsGetEventByID

type ArgsGetEventByID struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
}

ArgsGetEventByID 获取Event数据包参数

type ArgsGetEventList

type ArgsGetEventList struct {
	//分页参数
	Pages CoreSQL2.ArgsPages `json:"pages"`
	//所属主题分类
	ThemeCategoryID int64 `db:"theme_category_id" json:"themeCategoryId" check:"id" empty:"true"`
	//所属主题
	ThemeID int64 `db:"theme_id" json:"themeId" check:"id" empty:"true"`
	//事件编码
	Code string `db:"code" json:"code" check:"des" min:"1" max:"300" empty:"true"`
	//是否删除
	IsRemove bool `json:"isRemove" check:"bool"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetEventList 获取Event列表参数

type ArgsGetLogByID

type ArgsGetLogByID struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
}

ArgsGetLogByID 获取Log数据包参数

type ArgsGetLogList

type ArgsGetLogList struct {
	//分页参数
	Pages CoreSQL2.ArgsPages `json:"pages"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//管理单元
	UnitID int64 `db:"unit_id" json:"unitID" check:"id" empty:"true"`
	//操作用户
	UserID int64 `db:"user_id" json:"userID" check:"id" empty:"true"`
	//操作组织成员ID
	OrgBindID int64 `db:"org_bind_id" json:"orgBindID" check:"id" empty:"true"`
	//BPM ID
	BPMID int64 `db:"bpm_id" json:"bpmId" check:"id" check:"id" empty:"true"`
}

ArgsGetLogList 获取Log列表参数

type ArgsGetSlotByID

type ArgsGetSlotByID struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
}

ArgsGetSlotByID 获取Slot数据包参数

type ArgsGetSlotList

type ArgsGetSlotList struct {
	//分页参数
	Pages CoreSQL2.ArgsPages `json:"pages"`
	//所属主题分类
	ThemeCategoryID int64 `db:"theme_category_id" json:"themeCategoryId" check:"id" empty:"true"`
	//所属主题
	ThemeID int64 `db:"theme_id" json:"themeId" check:"id" empty:"true"`
	//是否删除
	IsRemove bool `json:"isRemove" check:"bool"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetSlotList 获取Slot列表参数

type ArgsGetThemeByID

type ArgsGetThemeByID struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
}

ArgsGetThemeByID 获取Theme数据包参数

type ArgsGetThemeCategoryByID

type ArgsGetThemeCategoryByID struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
}

ArgsGetThemeCategoryByID 获取ThemeCategory数据包参数

type ArgsGetThemeCategoryList

type ArgsGetThemeCategoryList struct {
	//分页参数
	Pages CoreSQL2.ArgsPages `json:"pages"`
	//是否删除
	IsRemove bool `json:"isRemove" check:"bool"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetThemeCategoryList 获取ThemeCategory列表参数

type ArgsGetThemeList

type ArgsGetThemeList struct {
	//分页参数
	Pages CoreSQL2.ArgsPages `json:"pages"`
	//所属主题分类
	CategoryID int64 `db:"category_id" json:"categoryId" check:"id" empty:"true"`
	//是否删除
	IsRemove bool `json:"isRemove" check:"bool"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetThemeList 获取Theme列表参数

type ArgsUpdateBPM

type ArgsUpdateBPM struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
	//描述
	Description string `db:"description" json:"description" check:"des" min:"1" max:"500" empty:"true"`
	//所属主题
	ThemeID int64 `db:"theme_id" json:"themeId" check:"id"`
	//流程节点数量
	NodeCount int `db:"node_count" json:"nodeCount" check:"int64Than0"`
	//流程json文件内容
	JSONNode string `db:"json_node" json:"jsonNode"`
}

ArgsUpdateBPM 修改BPM参数

type ArgsUpdateEvent

type ArgsUpdateEvent struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
	//描述
	Description string `db:"description" json:"description" check:"des" min:"1" max:"500" empty:"true"`
	//所属主题分类
	ThemeCategoryID int64 `db:"theme_category_id" json:"themeCategoryId" check:"id"`
	//所属主题
	// 插槽可用于的主题域
	ThemeID int64 `db:"theme_id" json:"themeId" check:"id"`
	//事件编码
	Code string `db:"code" json:"code" check:"des" min:"1" max:"300"`
	//事件类型
	// nats - NATS事件
	EventType string `db:"event_type" json:"eventType" check:"intThan0"`
	//事件地址
	// nats - 触发的地址
	EventURL string `db:"event_url" json:"eventURL" check:"des" min:"1" max:"600"`
	//事件固定参数
	// nats - 事件附带的固定参数,如果为空则根据流程阶段事件触发填入
	EventParams string `db:"event_params" json:"eventParams" check:"des" min:"1" max:"1000" empty:"true"`
}

ArgsUpdateEvent 修改Event参数

type ArgsUpdateSlot

type ArgsUpdateSlot struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
	//所属主题分类
	ThemeCategoryID int64 `db:"theme_category_id" json:"themeCategoryId" check:"id"`
	//所属主题
	// 插槽可用于的主题域
	ThemeID int64 `db:"theme_id" json:"themeId" check:"id"`
	//值类型
	// 插槽的值类型
	// input 输入框; text 文本域; radio 单选项; checkbox 多选项; select 下拉单选框;
	// date: 日期; time: 时间; datetime: 日期时间;
	// file: 文件ID; files 文件ID列; image: 图片; images 图片列; audio: 音频; video: 视频; videos 视频列; url: URL;
	// email: 邮箱; phone: 电话; id: ID; password: 密码;
	// code: 代码; html: HTML; markdown: Markdown; xml: XML; yaml: YAML;
	ValueType string `db:"value_type" json:"valueType" check:"des" min:"1" max:"3000"`
	//默认值
	// 插槽的默认值
	DefaultValue string `db:"default_value" json:"defaultValue" check:"des" min:"1" max:"3000"`
	//参数
	// 根据组件需求,自定义参数内容
	Params string `db:"params" json:"params"`
}

ArgsUpdateSlot 修改Slot参数

type ArgsUpdateTheme

type ArgsUpdateTheme struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//所属主题分类
	CategoryID int64 `db:"category_id" json:"categoryId" check:"id"`
	//主题名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
	//主题描述
	Description string `db:"description" json:"description" check:"des" min:"1" max:"500" empty:"true"`
}

ArgsUpdateTheme 修改Theme参数

type ArgsUpdateThemeCategory

type ArgsUpdateThemeCategory struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//主题名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
	//主题描述
	Description string `db:"description" json:"description" check:"des" min:"1" max:"500" empty:"true"`
}

ArgsUpdateThemeCategory 修改ThemeCategory参数

type FieldsBPM

type FieldsBPM struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
	//名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
	//描述
	Description string `db:"description" json:"description" check:"des" min:"1" max:"500" empty:"true"`
	//所属主题
	ThemeID int64 `db:"theme_id" json:"themeId" check:"id"`
	//流程节点数量
	NodeCount int `db:"node_count" json:"nodeCount" check:"int64Than0"`
	//流程json文件内容
	JSONNode string `db:"json_node" json:"jsonNode"`
}

FieldsBPM BPM核心载体

func GetBPMByID

func GetBPMByID(args *ArgsGetBPMByID) (data FieldsBPM, err error)

GetBPMByID 获取BPM数

func GetBPMList

func GetBPMList(args *ArgsGetBPMList) (dataList []FieldsBPM, dataCount int64, err error)

GetBPMList 获取BPM列表

type FieldsEvent

type FieldsEvent struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
	//名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
	//描述
	Description string `db:"description" json:"description" check:"des" min:"1" max:"500" empty:"true"`
	//所属主题分类
	ThemeCategoryID int64 `db:"theme_category_id" json:"themeCategoryId" check:"id"`
	//所属主题
	// 插槽可用于的主题域
	ThemeID int64 `db:"theme_id" json:"themeId" check:"id"`
	//事件编码
	Code string `db:"code" json:"code" check:"des" min:"1" max:"300"`
	//事件类型
	// nats - NATS事件
	EventType string `db:"event_type" json:"eventType" check:"intThan0"`
	//事件地址
	// nats - 触发的地址
	EventURL string `db:"event_url" json:"eventURL" check:"des" min:"1" max:"600"`
	//事件固定参数
	// nats - 事件附带的固定参数,如果为空则根据流程阶段事件触发填入
	EventParams string `db:"event_params" json:"eventParams" check:"des" min:"1" max:"1000" empty:"true"`
}

FieldsEvent 节点事件注册

func GetEventByID

func GetEventByID(args *ArgsGetEventByID) (data FieldsEvent, err error)

GetEventByID 获取Event数

func GetEventList

func GetEventList(args *ArgsGetEventList) (dataList []FieldsEvent, dataCount int64, err error)

GetEventList 获取Event列表

type FieldsLog

type FieldsLog struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID"`
	//管理单元
	UnitID int64 `db:"unit_id" json:"unitID"`
	//操作用户
	UserID int64 `db:"user_id" json:"userID"`
	//操作组织成员ID
	OrgBindID int64 `db:"org_bind_id" json:"orgBindID"`
	//BPM ID
	BPMID int64 `db:"bpm_id" json:"bpmId" check:"id"`
	//当前节点ID
	NodeID string `db:"node_id" json:"nodeId" check:"des" min:"1" max:"300"`
	//当前节点序号
	NodeNumber int `db:"node_number" json:"nodeNumber" check:"int64Than0"`
	//节点存储内容
	NodeContent string `db:"node_content" json:"nodeContent"`
}

FieldsLog 流程节点日志 每个日志不可变更,只能创建迭代

func GetLogByID

func GetLogByID(args *ArgsGetLogByID) (data FieldsLog, err error)

GetLogByID 获取Log数

func GetLogList

func GetLogList(args *ArgsGetLogList) (dataList []FieldsLog, dataCount int64, err error)

GetLogList 获取Log列表

type FieldsSlot

type FieldsSlot struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
	//名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
	//描述
	Description string `db:"description" json:"description" check:"des" min:"1" max:"500" empty:"true"`
	//所属主题分类
	ThemeCategoryID int64 `db:"theme_category_id" json:"themeCategoryId" check:"id"`
	//所属主题
	// 插槽可用于的主题域
	ThemeID int64 `db:"theme_id" json:"themeId" check:"id"`
	//值类型
	// 插槽的值类型
	// input 输入框; text 文本域; radio 单选项; checkbox 多选项; select 下拉单选框;
	// date: 日期; time: 时间; datetime: 日期时间;
	// file: 文件ID; files 文件ID列; image: 图片; images 图片列; audio: 音频; video: 视频; videos 视频列; url: URL;
	// email: 邮箱; phone: 电话; id: ID; password: 密码;
	// code: 代码; html: HTML; markdown: Markdown; xml: XML; yaml: YAML;
	ValueType string `db:"value_type" json:"valueType" check:"des" min:"1" max:"3000"`
	//默认值
	// 插槽的默认值
	DefaultValue string `db:"default_value" json:"defaultValue" check:"des" min:"1" max:"3000"`
	//参数
	// 根据组件需求,自定义参数内容
	Params string `db:"params" json:"params"`
}

FieldsSlot 插槽定义

func GetSlotByID

func GetSlotByID(args *ArgsGetSlotByID) (data FieldsSlot, err error)

GetSlotByID 获取Slot数

func GetSlotList

func GetSlotList(args *ArgsGetSlotList) (dataList []FieldsSlot, dataCount int64, err error)

GetSlotList 获取Slot列表

type FieldsTheme

type FieldsTheme struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
	//所属主题分类
	CategoryID int64 `db:"category_id" json:"categoryId" check:"id"`
	//主题名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
	//主题描述
	Description string `db:"description" json:"description" check:"des" min:"1" max:"500" empty:"true"`
}

FieldsTheme 主题

func GetThemeByID

func GetThemeByID(args *ArgsGetThemeByID) (data FieldsTheme, err error)

GetThemeByID 获取Theme数

func GetThemeList

func GetThemeList(args *ArgsGetThemeList) (dataList []FieldsTheme, dataCount int64, err error)

GetThemeList 获取Theme列表

type FieldsThemeCategory

type FieldsThemeCategory struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
	//主题名称
	Name string `db:"name" json:"name" check:"des" min:"1" max:"300"`
	//主题描述
	Description string `db:"description" json:"description" check:"des" min:"1" max:"500" empty:"true"`
}

FieldsThemeCategory 主题分类

func GetThemeCategoryByID

func GetThemeCategoryByID(args *ArgsGetThemeCategoryByID) (data FieldsThemeCategory, err error)

GetThemeCategoryByID 获取ThemeCategory数

func GetThemeCategoryList

func GetThemeCategoryList(args *ArgsGetThemeCategoryList) (dataList []FieldsThemeCategory, dataCount int64, err error)

GetThemeCategoryList 获取ThemeCategory列表

Jump to

Keyboard shortcuts

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