MCPcopy Index your code
hub / github.com/TruthHun/DocHub / GetDescByDsId

Method GetDescByDsId

models/DocTextModel.go:40–45  ·  view source on GitHub ↗

根据存档表的id获取文档摘要,默认获取255个字符长度 @param dsid document_store的id @param length 需要获取的长度 @return desc 返回摘要内容

(dsid interface{}, length ...int)

Source from the content-addressed store, hash-verified

38//@param length 需要获取的长度
39//@return desc 返回摘要内容
40func (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

Callers

nothing calls this directly

Calls 3

GetDescByMd5Method · 0.95
NewDocumentFunction · 0.85
GetDocStoreByDsIdMethod · 0.80

Tested by

no test coverage detected