| | |
| | | import com.xiaopeng.api.model.operation.XpLoginAgreement; |
| | | import com.xiaopeng.common.core.domain.R; |
| | | import com.xiaopeng.common.core.web.controller.BaseController; |
| | | import com.xiaopeng.common.log.annotation.AdminOperationLog; |
| | | import com.xiaopeng.common.log.enums.AdminBusinessType; |
| | | import com.xiaopeng.common.log.enums.AdminOperationType; |
| | | import com.xiaopeng.operation.dto.XpAgreementDTO; |
| | | import com.xiaopeng.operation.service.IXpLoginAgreementService; |
| | | import com.xiaopeng.operation.service.XpAgreementService; |
| | |
| | | |
| | | @ApiOperation(value = "保存协议", tags = {"管理后台-内容中心"}) |
| | | @PostMapping("/api/v1/agreement/save") |
| | | public R<?> saveAgreement(@RequestBody @Valid XpAgreementDTO dto) { |
| | | @AdminOperationLog( |
| | | businessType = AdminBusinessType.AGREEMENT_MANAGEMENT, |
| | | operationType = AdminOperationType.EDIT, |
| | | content = "保存协议", |
| | | appendRequestData = true |
| | | ) |
| | | public R<?> saveAgreement(@RequestBody @Valid XpAgreementDTO dto){ |
| | | xpAgreementService.saveAgreement(dto); |
| | | return R.ok(); |
| | | } |