feat(service/erp): 为模板添加部门权限控制
- 在 TemplateItem 结构中添加 DepId 字段,用于存储部门 ID - 在 ReplyTemplateList 结构中添加 DepIds 列表,用于存储模板关联的部门 ID - 在 TemplateAdd 结构中添加 DepIds 列表,用于在添加模板时指定关联的部门 ID - 在模板详情接口中添加 DepIds 字段,用于展示模板关联的部门 ID
This commit is contained in:
		
							parent
							
								
									d9ad631a28
								
							
						
					
					
						commit
						bf08afd684
					
				| @ -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 列表 | ||||
| @ -57,6 +59,7 @@ type TemplateAdd struct { | ||||
| 	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 详情 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user