根据存档表的id获取文档摘要,默认获取255个字符长度 @param dsid document_store的id @param length 需要获取的长度 @return desc 返回摘要内容
(dsid interface{}, length ...int)
| 38 | //@param length 需要获取的长度 |
| 39 | //@return desc 返回摘要内容 |
| 40 | func (this *DocText) GetDescByDsId(dsid interface{}, length ...int) (desc string) { |
| 41 | if dsinfo, rows, _ := NewDocument().GetDocStoreByDsId(dsid); rows > 0 { |
| 42 | return this.GetDescByMd5(dsinfo[0].Md5, length...) |
| 43 | } |
| 44 | return |
| 45 | } |
| 46 | |
| 47 | //根据文档表的文档id获取文档摘要,默认获取255个字符长度 |
| 48 | //@param did document_store的id |
nothing calls this directly
no test coverage detected