|
@ -1,11 +1,9 @@ |
|
|
package com.epmet.controller; |
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
import com.epmet.commons.tools.constant.AppClientConstant; |
|
|
|
|
|
import com.epmet.commons.tools.exception.ErrorCode; |
|
|
import com.epmet.commons.tools.exception.ErrorCode; |
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.utils.EpmetRequestHolder; |
|
|
|
|
|
import com.epmet.commons.tools.utils.ExcelUtils; |
|
|
import com.epmet.commons.tools.utils.ExcelUtils; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.validator.AssertUtils; |
|
|
import com.epmet.commons.tools.validator.AssertUtils; |
|
@ -69,6 +67,23 @@ public class OperMenuController { |
|
|
return new Result(); |
|
|
return new Result(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 疯狂家按钮,我要写个接口批量赠.... |
|
|
|
|
|
* @param formList |
|
|
|
|
|
* @param tokenDto |
|
|
|
|
|
* @return |
|
|
|
|
|
*/ |
|
|
|
|
|
@PostMapping("batch-save") |
|
|
|
|
|
public Result save(@RequestBody List<OperMenuDTO> formList, @LoginUser TokenDto tokenDto){ |
|
|
|
|
|
//效验数据
|
|
|
|
|
|
ValidatorUtils.validateEntity(formList, AddGroup.class, DefaultGroup.class); |
|
|
|
|
|
for(OperMenuDTO dto:formList){ |
|
|
|
|
|
operMenuService.save(dto,tokenDto); |
|
|
|
|
|
} |
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PutMapping |
|
|
@PutMapping |
|
|
public Result update(@RequestBody OperMenuDTO dto, @LoginUser TokenDto tokenDto){ |
|
|
public Result update(@RequestBody OperMenuDTO dto, @LoginUser TokenDto tokenDto){ |
|
|
//效验数据
|
|
|
//效验数据
|
|
|