--微信支付

This commit is contained in:
yc13649764453
2023-05-24 18:13:36 +08:00
parent 4e7aec5b60
commit 068192327c
25 changed files with 3241 additions and 657 deletions

View File

@@ -0,0 +1,69 @@
/**
* Copyright (c) 2016-2019 人人开源 All rights reserved.
*
* https://www.renren.io
*
* 版权所有,侵权必究!
*/
package com.peanut.modules.sys.controller;
import com.peanut.common.utils.PageUtils;
import com.peanut.common.utils.R;
import com.peanut.modules.sys.entity.SysAgreementEntity;
import com.peanut.modules.sys.service.SysAgreementService;
import com.peanut.modules.sys.service.SysLogService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import java.util.Map;
/**
* 系统日志
*
* @author Mark sunlightcs@gmail.com
*/
@RestController
@RequestMapping("/sys/agreement")
public class SysAgreementController {
@Autowired
private SysAgreementService sysAgreementService;
/**
* 列表
*/
@ResponseBody
@GetMapping("/list")
public R list(@RequestParam Map<String, Object> params){
PageUtils page = sysAgreementService.queryPage(params);
return R.ok().put("page", page);
}
/**
* 保存
* @param agre
* @return
*/
@PostMapping("/save")
public R save(@RequestBody SysAgreementEntity agre){
sysAgreementService.save(agre);
return R.ok();
}
/**
* 更新
* @param agre
* @return
*/
@PostMapping("/update")
public R update(@RequestBody SysAgreementEntity agre){
sysAgreementService.updateById(agre);
return R.ok();
}
}