Search in sources :

Example 6 with CustomFieldVo

use of com.ngtesting.platform.vo.CustomFieldVo in project ngtesting-platform by aaronchen2k.

the class CustomFieldServiceImpl method genVos.

@Override
public List<CustomFieldVo> genVos(List<TestCustomField> pos) {
    List<CustomFieldVo> vos = new LinkedList<CustomFieldVo>();
    for (TestCustomField po : pos) {
        CustomFieldVo vo = genVo(po);
        vos.add(vo);
    }
    return vos;
}
Also used : CustomFieldVo(com.ngtesting.platform.vo.CustomFieldVo) TestCustomField(com.ngtesting.platform.entity.TestCustomField) LinkedList(java.util.LinkedList)

Example 7 with CustomFieldVo

use of com.ngtesting.platform.vo.CustomFieldVo in project ngtesting-platform by aaronchen2k.

the class CustomFieldServiceImpl method genVo.

@Override
public CustomFieldVo genVo(TestCustomField po) {
    if (po == null) {
        return null;
    }
    CustomFieldVo vo = new CustomFieldVo();
    BeanUtilEx.copyProperties(vo, po);
    vo.setOptionVos(this.customFieldOptionService.genVos(po.getOptions()));
    return vo;
}
Also used : CustomFieldVo(com.ngtesting.platform.vo.CustomFieldVo)

Aggregations

CustomFieldVo (com.ngtesting.platform.vo.CustomFieldVo)7 JSONObject (com.alibaba.fastjson.JSONObject)4 TestCustomField (com.ngtesting.platform.entity.TestCustomField)4 AuthPassport (com.ngtesting.platform.util.AuthPassport)4 UserVo (com.ngtesting.platform.vo.UserVo)4 HashMap (java.util.HashMap)4 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)4 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)4 TestProjectVo (com.ngtesting.platform.vo.TestProjectVo)2 LinkedList (java.util.LinkedList)1 List (java.util.List)1 DetachedCriteria (org.hibernate.criterion.DetachedCriteria)1