|
@ -43,7 +43,7 @@ public class BaseTeamEndpoint extends EnvelopRestEndpoint {
|
|
|
@ApiOperation(value = "创建团队")
|
|
|
public Envelop create(
|
|
|
@ApiParam(name = " jsonData", value = "Json数据", required = true)
|
|
|
@RequestParam(value = "jsonData") String jsonData) throws Exception {
|
|
|
@RequestParam(value = "jsonData", required = true) String jsonData) throws Exception {
|
|
|
String msg = baseTeamService.createTeam(jsonData);
|
|
|
if (StringUtils.equalsIgnoreCase(ConstantUtils.SUCCESS, msg)) {
|
|
|
return success(msg);
|
|
@ -64,7 +64,7 @@ public class BaseTeamEndpoint extends EnvelopRestEndpoint {
|
|
|
@ApiOperation(value = "更新团队")
|
|
|
public Envelop update(
|
|
|
@ApiParam(name = " jsonData", value = "Json数据", required = true)
|
|
|
@RequestParam String jsonData) throws Exception {
|
|
|
@RequestParam(value = "jsonData", required = true) String jsonData) throws Exception {
|
|
|
JSONObject jsonObject = baseTeamService.updateTeam(jsonData);
|
|
|
if (jsonObject.getString("response").equalsIgnoreCase(ConstantUtils.FAIL)) {
|
|
|
return failed(jsonObject.getString("msg"));
|