This commit is contained in:
张良(004796)
2024-02-21 14:33:02 +08:00
parent c6efe0eb0b
commit c8d097df41
2 changed files with 10 additions and 0 deletions

View File

@@ -113,6 +113,14 @@ public class SettingAppController {
return R.ok(new AgreementDTO(userAgreement));
}
@GetMapping("/agreement/privacy")
@Operation(summary = "获取隐私协议")
@Log(title = "获取隐私协议", businessType = BusinessType.OTHER, isSaveDb = false)
public R<AgreementDTO> privacyAgreement() {
String privacyAgreement = agreementSettingService.getAgreementSetting().getPrivacyAgreement();
return R.ok(new AgreementDTO(privacyAgreement));
}
@GetMapping("/agreement/anchorJoin")
@Operation(summary = "用户主播入驻协议")
@Log(title = "用户主播入驻协议", businessType = BusinessType.OTHER, isSaveDb = false)

View File

@@ -32,4 +32,6 @@ public class AgreementSetting implements Serializable {
*/
private String anchorJoinAgreement;
private String privacyAgreement;
}