|
|
@ -12,7 +12,7 @@ import org.springframework.web.bind.annotation.*; |
|
|
|
import java.util.Arrays; |
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping("/recharge/audit") |
|
|
|
@RequestMapping("/audit/audit") |
|
|
|
@RequiredArgsConstructor |
|
|
|
@Slf4j |
|
|
|
@CrossOrigin |
|
|
@ -29,6 +29,16 @@ public class AuditController { |
|
|
|
return Result.error(e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
@PostMapping("/edit") |
|
|
|
public Result edit(@RequestBody Audit audit){ |
|
|
|
try { |
|
|
|
auditService.edit(audit); |
|
|
|
return Result.success(); |
|
|
|
}catch (Exception e){ |
|
|
|
log.warn(Arrays.toString(e.getStackTrace())); |
|
|
|
return Result.error(e.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
@PostMapping |
|
|
|
public Result search(@RequestBody Page page){ |
|
|
|
if(ObjectUtils.isEmpty(page.getPageNum())){ |
|
|
|