|
|
@ -16,6 +16,7 @@ import com.gxwebsoft.common.core.web.PageResult; |
|
|
|
import com.gxwebsoft.common.core.web.BatchParam; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
import org.checkerframework.checker.units.qual.A; |
|
|
|
import org.springframework.security.access.prepost.PreAuthorize; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
@ -59,6 +60,13 @@ public class CmsWebsiteFieldController extends BaseController { |
|
|
|
return success(cmsWebsiteFieldService.getByIdRel(id)); |
|
|
|
} |
|
|
|
|
|
|
|
@Operation(summary = "根据code查询应用参数") |
|
|
|
@GetMapping("/getByCode/{code}") |
|
|
|
public ApiResult<CmsWebsiteField> getByCode(@PathVariable("code") String code) { |
|
|
|
// 使用关联查询
|
|
|
|
return success(cmsWebsiteFieldService.getByCodeRel(code)); |
|
|
|
} |
|
|
|
|
|
|
|
@PreAuthorize("hasAuthority('cms:cmsWebsiteField:save')") |
|
|
|
@Operation(summary = "添加应用参数") |
|
|
|
@PostMapping() |
|
|
|