| | |
| | | import com.panzhihua.common.constants.SecurityConstants; |
| | | import com.panzhihua.common.constants.UserConstants; |
| | | import com.panzhihua.common.model.dtos.user.PageUserAppletsBackstageDTO; |
| | | import com.panzhihua.common.model.dtos.user.SysUserFeedbackDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.SystemmanagementConfigVO; |
| | |
| | | private SysOperLogDAO sysOperLogDAO; |
| | | @Resource |
| | | private SysUserAgreementDAO sysUserAgreementDAO; |
| | | @Resource |
| | | private SysUserFeedbackDAO sysUserFeedbackDAO; |
| | | |
| | | |
| | | /** |
| | |
| | | return R.fail("清除失败"); |
| | | } |
| | | |
| | | /** |
| | | * 用户协议和隐私政策 |
| | | * |
| | | * @param type 所属app 1居民端app 2网格员端app 3商家端app |
| | | * @return 协议内容 |
| | | */ |
| | | @Override |
| | | public R userAgreement(int type) { |
| | | SysUserAgreementDO sysUserAgreementDO = sysUserAgreementDAO.selectOne(new QueryWrapper<SysUserAgreementDO>().lambda().eq(SysUserAgreementDO::getType, type)); |
| | | return R.ok(sysUserAgreementDO); |
| | | } |
| | | |
| | | /** |
| | | * 意见反馈 |
| | | * |
| | | * @param sysUserFeedbackDTO 反馈内容 |
| | | * @return 反馈结果 |
| | | */ |
| | | @Override |
| | | public R addFeedback(SysUserFeedbackDTO sysUserFeedbackDTO) { |
| | | SysUserFeedbackDO sysUserFeedbackDO=new SysUserFeedbackDO(); |
| | | BeanUtils.copyProperties(sysUserFeedbackDTO,sysUserFeedbackDO); |
| | | int insert = sysUserFeedbackDAO.insert(sysUserFeedbackDO); |
| | | if (insert>0) { |
| | | return R.ok(); |
| | | } |
| | | return R.fail(); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | String encode = new BCryptPasswordEncoder().encode("123456"); |
| | | System.out.println(encode); |