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

Method GetDocStoreByDsId

models/DocumentModel.go:282–287  ·  view source on GitHub ↗

根据document_store表中的id查询document_info表中的数据

(DsId ...interface{})

Source from the content-addressed store, hash-verified

280
281//根据document_store表中的id查询document_info表中的数据
282func (this *Document) GetDocStoreByDsId(DsId ...interface{}) (store []DocumentStore, rows int64, err error) {
283 if l := len(DsId); l > 0 {
284 rows, err = orm.NewOrm().QueryTable(GetTableDocumentStore()).Limit(l).Filter("Id__in", DsId...).All(&store)
285 }
286 return
287}
288
289//根据document_store表中的id查询document_info表中的数据
290func (this *Document) GetOneDocStoreByDsId(DsId interface{}, fields ...string) (store DocumentStore, rows int64, err error) {

Callers 5

SetIllegalMethod · 0.95
RecoverFromRecycleMethod · 0.80
DeepDelMethod · 0.80
GetDescByDsIdMethod · 0.80
GetDescByDidMethod · 0.80

Calls 2

GetTableDocumentStoreFunction · 0.85
AllMethod · 0.80

Tested by

no test coverage detected