forked from oddfar/campus-imaotai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
2,022 additions
and
565 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
campus-modular/src/main/java/com/oddfar/campus/business/controller/ILogController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package com.oddfar.campus.business.controller; | ||
|
||
import com.oddfar.campus.business.entity.ILog; | ||
import com.oddfar.campus.business.service.IMTLogService; | ||
import com.oddfar.campus.common.annotation.ApiResource; | ||
import com.oddfar.campus.common.domain.PageResult; | ||
import com.oddfar.campus.common.domain.R; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.security.access.prepost.PreAuthorize; | ||
import org.springframework.web.bind.annotation.*; | ||
|
||
/** | ||
* I茅台日志Controller | ||
* | ||
* @author oddfar | ||
* @date 2023-08-01 | ||
*/ | ||
@RestController | ||
@RequestMapping("/imt/log") | ||
@ApiResource(name = "I茅台日志Controller") | ||
public class ILogController { | ||
@Autowired | ||
private IMTLogService logService; | ||
|
||
@PreAuthorize("@ss.resourceAuth()") | ||
@GetMapping(value = "/list", name = "操作日志-分页") | ||
public R list(ILog log) { | ||
PageResult<ILog> page = logService.page(log); | ||
return R.ok().put(page); | ||
} | ||
|
||
@PreAuthorize("@ss.resourceAuth()") | ||
@DeleteMapping(value = "/{operIds}", name = "操作日志-删除") | ||
public R remove(@PathVariable Long[] operIds) { | ||
return R.ok(logService.deleteLogByIds(operIds)); | ||
} | ||
|
||
@PreAuthorize("@ss.resourceAuth()") | ||
@DeleteMapping(value = "/clean", name = "操作日志-清空") | ||
public R clean() { | ||
logService.cleanLog(); | ||
return R.ok(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.