获取内容模板 @param DsId 文档DsId @return rm 生成的文档备注模板
(DsId int)
| 48 | //@param DsId 文档DsId |
| 49 | //@return rm 生成的文档备注模板 |
| 50 | func (this *DocumentRemark) GetContentTplByDsId(DsId int) (rm DocumentRemark) { |
| 51 | rm.Id = DsId |
| 52 | if err := orm.NewOrm().Read(&rm); err != nil || rm.Id == 0 { |
| 53 | return this.GetDefaultTpl(DsId) |
| 54 | } |
| 55 | return rm |
| 56 | } |
| 57 | |
| 58 | //获取文档备注模板 |
| 59 | //@param DsId 文档DsId |
no test coverage detected