package com.storlead.centre.app;

import com.storlead.centre.entity.SysAppPageInfoEntity;
import com.storlead.centre.service.SysAppPageInfoService;
import com.storlead.framework.web.assemble.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

/**
 * @program: storlead-centre-platform
 * @description:
 * @author: chenkq
 * @create: 2025-12-08 14:54
 */

@RestController
@RequestMapping("/app-centre/manage/page")
@Api(tags = "2.应用页面管理")
public class AppPageManageApiController {

    @Resource
    private SysAppPageInfoService sysAppPageInfoService;

    @PostMapping(value = "/save")
    @ApiOperation(value = "应用页面--新增/编辑", notes = "应用页面-新增/编辑")
    @Transactional(rollbackFor = Throwable.class)
    public Result<?> save(@RequestBody SysAppPageInfoEntity info) {
        sysAppPageInfoService.saveOrUpdate(info);
        return Result.ok();
    }

}
