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

Function GetFields

models/Models.go:218–224  ·  view source on GitHub ↗

获取指定Strut的字段 @param tableObj Strut结构对象,引用传递 @return fields 返回字段数组

(tableObj interface{})

Source from the content-addressed store, hash-verified

216//@param tableObj Strut结构对象,引用传递
217//@return fields 返回字段数组
218func GetFields(tableObj interface{}) (fields []string) {
219 elem := reflect.ValueOf(tableObj).Elem()
220 for i := 0; i < elem.NumField(); i++ {
221 fields = append(fields, elem.Type().Field(i).Name)
222 }
223 return fields
224}
225
226//获取子节点
227func GetChildrenNode(node string, value interface{}, params []orm.Params) (data []orm.Params) {

Callers 4

GetByIdMethod · 0.85
Models.goFile · 0.85
GetCommentListMethod · 0.85
GetByIdMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected