Ejemplo n.º 1
0
func (p *SysTable) ResultToMap(res *df.ListResultBean) *df.List {
	reslist := df.CreateList()
	for _, e := range res.List.GetAsArray() {
		login := e.(*entity.SysTable)
		var entity df.Entity = login
		reslist.Add(p.EntityToMap(&entity))
	}
	return reslist
}
Ejemplo n.º 2
0
func (p *TestTable) ResultToMap(res *df.ListResultBean) *df.List {
	reslist := df.CreateList()
	for _, e := range res.List.GetAsArray() {
		entityx := e.(*entity.TestTable)
		var entityi df.Entity = entityx
		reslist.Add(p.EntityToMap(&entityi))
	}
	return reslist
}
Ejemplo n.º 3
0
func (p *Employee) ResultToMap(res *df.ListResultBean) *df.List {
	reslist := df.CreateList()
	for _, e := range res.List.GetAsArray() {
		entityx := e.(*entity.Employee)
		var entityi df.Entity = entityx
		emap := p.EntityToMap(&entityi)
		emap["sec"] = dfweb.ConvWebData(entityx.GetUserTable_R().GetS1Data())
		reslist.Add(emap)
	}
	return reslist
}