|
|
|
@@ -13,10 +13,7 @@ import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Controller; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.ModelAttribute; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
/** |
|
|
|
* Stormeye Wu |
|
|
|
@@ -43,7 +40,7 @@ public class WxWeappExtSetController extends BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("add") |
|
|
|
public ResultData add(WxWeappExtSet weappExtSet) { |
|
|
|
public ResultData add(@RequestBody WxWeappExtSet weappExtSet) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxWeappExtSetController::add"); |
|
|
|
if (null == weappExtSet) return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); |
|
|
|
weappExtSetService.saveOrUpdate(weappExtSet); |
|
|
|
@@ -51,7 +48,7 @@ public class WxWeappExtSetController extends BaseController { |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("update") |
|
|
|
public ResultData update(WxWeappExtSet weappExtSet) { |
|
|
|
public ResultData update(@RequestBody WxWeappExtSet weappExtSet) { |
|
|
|
logger.debug("[" + getIpAddr() + "] WxWeappBasicSetController::update"); |
|
|
|
if (null == weappExtSet) return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL); |
|
|
|
weappExtSetService.saveOrUpdate(weappExtSet); |
|
|
|
|