Documentation
¶
Index ¶
- Variables
- func CreateBPM(args *ArgsCreateBPM) (id int64, err error)
- func CreateEvent(args *ArgsCreateEvent) (id int64, err error)
- func CreateLog(args *ArgsCreateLog) (id int64, err error)
- func CreateSlot(args *ArgsCreateSlot) (id int64, err error)
- func CreateTheme(args *ArgsCreateTheme) (id int64, err error)
- func CreateThemeCategory(args *ArgsCreateThemeCategory) (id int64, err error)
- func DeleteBPM(args *ArgsDeleteBPM) (err error)
- func DeleteEvent(args *ArgsDeleteEvent) (err error)
- func DeleteSlot(args *ArgsDeleteSlot) (err error)
- func DeleteTheme(args *ArgsDeleteTheme) (err error)
- func DeleteThemeCategory(args *ArgsDeleteThemeCategory) (err error)
- func GetBPMBNameByID(id int64) (name string)
- func GetBPMCountByThemeID(themeID int64) (count int64)
- func GetEventCountByCategoryID(categoryID int64) (count int64)
- func GetEventCountByThemeID(themeID int64) (count int64)
- func GetSlotCountByCategoryID(categoryID int64) (count int64)
- func GetSlotCountByThemeID(themeID int64) (count int64)
- func GetThemeCountByCategoryID(categoryID int64) (count int64)
- func GetThemeNameByID(id int64) (name string)
- func Init()
- func UpdateBPM(args *ArgsUpdateBPM) (err error)
- func UpdateEvent(args *ArgsUpdateEvent) (err error)
- func UpdateSlot(args *ArgsUpdateSlot) (err error)
- func UpdateTheme(args *ArgsUpdateTheme) (err error)
- func UpdateThemeCategory(args *ArgsUpdateThemeCategory) (err error)
- type ArgsCreateBPM
- type ArgsCreateEvent
- type ArgsCreateLog
- type ArgsCreateSlot
- type ArgsCreateTheme
- type ArgsCreateThemeCategory
- type ArgsDeleteBPM
- type ArgsDeleteEvent
- type ArgsDeleteSlot
- type ArgsDeleteTheme
- type ArgsDeleteThemeCategory
- type ArgsGetBPMByID
- type ArgsGetBPMList
- type ArgsGetEventByID
- type ArgsGetEventList
- type ArgsGetLogByID
- type ArgsGetLogList
- type ArgsGetSlotByID
- type ArgsGetSlotList
- type ArgsGetThemeByID
- type ArgsGetThemeCategoryByID
- type ArgsGetThemeCategoryList
- type ArgsGetThemeList
- type ArgsUpdateBPM
- type ArgsUpdateEvent
- type ArgsUpdateSlot
- type ArgsUpdateTheme
- type ArgsUpdateThemeCategory
- type FieldsBPM
- type FieldsEvent
- type FieldsLog
- type FieldsSlot
- type FieldsTheme
- type FieldsThemeCategory
Constants ¶
This section is empty.
Variables ¶
var ( //OpenSub 订阅 OpenSub = false )
Functions ¶
func CreateEvent ¶
func CreateEvent(args *ArgsCreateEvent) (id int64, err error)
CreateEvent 创建Event
func CreateLog ¶
func CreateLog(args *ArgsCreateLog) (id int64, err error)
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 DeleteThemeCategory ¶
func DeleteThemeCategory(args *ArgsDeleteThemeCategory) (err error)
DeleteThemeCategory 删除ThemeCategory
func GetBPMCountByThemeID ¶
GetBPMCountByThemeID 获取主题下的bpm数量
func GetEventCountByCategoryID ¶
GetEventCountByCategoryID 获取分类下的事件数量
func GetEventCountByThemeID ¶
GetEventCountByThemeID 获取主题下的事件数量
func GetSlotCountByCategoryID ¶
GetSlotCountByCategoryID 获取分类下的插槽数量
func GetSlotCountByThemeID ¶
GetSlotCountByThemeID 获取主题下的插槽数量
func GetThemeCountByCategoryID ¶
GetThemeCountByCategoryID 获取分类下的主题数量
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列表