MCPcopy Create free account
hub / github.com/TruthHun/DocHub / GetByField

Method GetByField

models/SysModel.go:75–78  ·  view source on GitHub ↗

获取指定指端内容 @param field 需要查询的字段 @return sys 系统配置信息

(field string)

Source from the content-addressed store, hash-verified

73//@param field 需要查询的字段
74//@return sys 系统配置信息
75func (this *Sys) GetByField(field string) (sys Sys) {
76 orm.NewOrm().QueryTable(GetTableSys()).Filter("Id", 1).One(&sys, field)
77 return
78}
79
80//获取举报原因
81func (this *Sys) GetReportReasons() (reasons map[string]string) {

Callers 8

GetReportReasonsMethod · 0.95
GetMethod · 0.80
GetMethod · 0.80
RegMethod · 0.80
IsFreeDownMethod · 0.80
AutoSitemapFunction · 0.80
BuildSitemapMethod · 0.80
RecoverFromRecycleMethod · 0.80

Calls 2

GetTableSysFunction · 0.85
OneMethod · 0.80

Tested by

no test coverage detected