| | |
| | | import javax.annotation.Resource;
|
| | | import javax.servlet.http.HttpServletRequest;
|
| | |
|
| | | import com.yeshi.fanli.entity.SystemEnum;
|
| | | import com.yeshi.fanli.entity.accept.AdminAcceptData;
|
| | | import com.yeshi.fanli.util.annotation.RequestNoLogin;
|
| | | import net.sf.json.JSONArray;
|
| | | import org.springframework.cache.ehcache.EhCacheCacheManager;
|
| | | import org.springframework.stereotype.Controller;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | |
| | | * 查询列表 - 新后台
|
| | | *
|
| | | * @param callback
|
| | | * @param key
|
| | | * 查询词 名称
|
| | | * @param key 查询词 名称
|
| | | * @param pageIndex
|
| | | * @param out
|
| | | */
|
| | |
| | |
|
| | | /**
|
| | | * 根据分类查询
|
| | | *
|
| | | * @param callback
|
| | | * @param type
|
| | | * @param out
|
| | |
| | |
|
| | | /**
|
| | | * 保存信息
|
| | | *
|
| | | * @param callback
|
| | | * @param listConfig
|
| | | * @param out
|
| | |
| | |
|
| | | /**
|
| | | * 查询品牌背景图片
|
| | | *
|
| | | * @param callback
|
| | | * @param type
|
| | | * @param out
|
| | |
| | |
|
| | | /**
|
| | | * 修改品牌背景图片
|
| | | *
|
| | | * @param callback
|
| | | * @param out
|
| | | */
|
| | |
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | @RequestNoLogin
|
| | | @RequestMapping(value = "getSystem")
|
| | | public void getSystem(AdminAcceptData acceptData, String callback, PrintWriter out) {
|
| | | JSONArray array = new JSONArray();
|
| | | for (SystemEnum system : SystemEnum.values()) {
|
| | | JSONObject item = new JSONObject();
|
| | | item.put("name", system.getName());
|
| | | item.put("key", system.name());
|
| | | array.add(item);
|
| | | }
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(array.toString()));
|
| | | }
|
| | |
|
| | | }
|