diff --git a/erp/template.go b/erp/template.go index 12c51cd..478cc7b 100644 --- a/erp/template.go +++ b/erp/template.go @@ -17,6 +17,7 @@ type TemplateSearch struct { Name string // 模板名称 Types []string // 模板类型 IsOpen int64 // 是否开启 + DepId int64 // 部门id } type ReplyTemplateList struct { List []TemplateItem `json:"list"` @@ -33,6 +34,7 @@ type TemplateItem struct { IsOpen int64 `json:"isOpen"` CreatedStaffId int64 `json:"createdStaffId"` CreatedAt *time.Time `json:"createdAt"` + DepIds []int64 `json:"depIds"` } // List @TITLE 列表 @@ -51,12 +53,13 @@ type ArgsTemplateAdd struct { } type TemplateAdd struct { - Name string // 模板名称 - Type string // 模板类型 - Path string // 模板文件地址 - Sort int64 // 排序 - PdfConfig string // pdf配置 - FileName string // 文件名 + Name string // 模板名称 + Type string // 模板类型 + Path string // 模板文件地址 + Sort int64 // 排序 + PdfConfig string // pdf配置 + FileName string // 文件名 + DepIds []int64 // 部门id } // Add @TITLE 添加 @@ -81,6 +84,7 @@ type TemplateInfo struct { IsOpen int64 `json:"isOpen"` CreatedStaffId int64 `json:"createdStaffId"` CreatedAt *time.Time `json:"createdAt"` + DepIds []int64 `json:"depIds"` } // Info @TITLE 详情