mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-08 20:49:00 +08:00
🐛 Fixing a bug.fix generator template
This commit is contained in:
1 parent
3832226a8c
commit
0f56bf78e7
4 files changed
+18
-6
No files matched your search
@@ -45,4 +45,5 @@ pigx:
|
||||
- sys_log
|
||||
- sys_social_details
|
||||
- sys_dict
|
||||
- sys_dict_item
|
||||
- sys_log
|
||||
+4
@@ -26,6 +26,7 @@ import com.pig4cloud.pigx.common.log.annotation.SysLog;
|
||||
import com.pig4cloud.pigx.common.security.annotation.Inner;
|
||||
import io.swagger.annotations.Api;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.Valid;
|
||||
@@ -77,6 +78,7 @@ public class SysSocialDetailsController {
|
||||
*/
|
||||
@SysLog("保存三方信息")
|
||||
@PostMapping
|
||||
@PreAuthorize("@pms.hasPermission('sys_social_details_add')")
|
||||
public R save(@Valid @RequestBody SysSocialDetails sysSocialDetails) {
|
||||
return new R<>(sysSocialDetailsService.save(sysSocialDetails));
|
||||
}
|
||||
@@ -89,6 +91,7 @@ public class SysSocialDetailsController {
|
||||
*/
|
||||
@SysLog("修改三方信息")
|
||||
@PutMapping
|
||||
@PreAuthorize("@pms.hasPermission('sys_social_details_edit')")
|
||||
public R updateById(@Valid @RequestBody SysSocialDetails sysSocialDetails) {
|
||||
sysSocialDetailsService.updateById(sysSocialDetails);
|
||||
return new R<>(Boolean.TRUE);
|
||||
@@ -102,6 +105,7 @@ public class SysSocialDetailsController {
|
||||
*/
|
||||
@SysLog("删除三方信息")
|
||||
@DeleteMapping("/{id}")
|
||||
@PreAuthorize("@pms.hasPermission('sys_social_details_del')")
|
||||
public R removeById(@PathVariable Integer id) {
|
||||
return new R<>(sysSocialDetailsService.removeById(id));
|
||||
}
|
||||
|
||||
@@ -22,9 +22,6 @@ export const tableOption = {
|
||||
stripe: true,
|
||||
menuAlign: 'center',
|
||||
align: 'center',
|
||||
editBtn: false,
|
||||
delBtn: false,
|
||||
addBtn: false,
|
||||
column: [
|
||||
#foreach ($column in $columns)
|
||||
{
|
||||
|
||||
@@ -34,9 +34,19 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {addObj, delObj, fetchList, getObj, putObj} from '@/api/'
|
||||
import {tableOption} from '@/const/crud/'
|
||||
import {mapGetters} from 'vuex'
|
||||
import {
|
||||
fetchList,
|
||||
getObj,
|
||||
addObj,
|
||||
putObj,
|
||||
delObj
|
||||
} from '@/api/${pathName}'
|
||||
import {
|
||||
tableOption
|
||||
} from '@/const/crud/${pathName}'
|
||||
import {
|
||||
mapGetters
|
||||
} from 'vuex'
|
||||
|
||||
export default {
|
||||
name: '${pathName}',
|
||||
|
||||
Reference in new issue
Block a user