parent
6728986797
commit
10b60ec4a3
@ -0,0 +1,26 @@
|
|||||||
|
package au.com.royalpay.payment.manage.mappers.system;
|
||||||
|
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
|
||||||
|
import cn.yixblog.support.mybatis.autosql.annotations.AdvanceSelect;
|
||||||
|
import cn.yixblog.support.mybatis.autosql.annotations.AutoMapper;
|
||||||
|
import cn.yixblog.support.mybatis.autosql.annotations.AutoSql;
|
||||||
|
import cn.yixblog.support.mybatis.autosql.annotations.SqlType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by davep on 2016-08-03.
|
||||||
|
*/
|
||||||
|
@AutoMapper(tablename = "sys_mail_unsub", pkName = "id")
|
||||||
|
public interface MailUnsubMapper {
|
||||||
|
|
||||||
|
@AutoSql(type = SqlType.INSERT)
|
||||||
|
void save(JSONObject record);
|
||||||
|
|
||||||
|
@AutoSql(type = SqlType.DELETE)
|
||||||
|
void delete(@Param("id") Long id);
|
||||||
|
|
||||||
|
@AutoSql(type = SqlType.SELECT)
|
||||||
|
JSONObject getById(@Param("id") Long id);
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
package au.com.royalpay.payment.manage.system.web;
|
||||||
|
|
||||||
|
import au.com.royalpay.payment.manage.permission.manager.RequireManager;
|
||||||
|
import au.com.royalpay.payment.tools.permission.enums.ManagerRole;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMethod;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author kira
|
||||||
|
* @date 2018/6/12
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/sys/mail")
|
||||||
|
public class MailController {
|
||||||
|
|
||||||
|
@RequestMapping(value = "/sub/{id}",method = RequestMethod.DELETE)
|
||||||
|
@RequireManager(role = {ManagerRole.ADMIN, ManagerRole.BD_USER, ManagerRole.OPERATOR, ManagerRole.SERVANT})
|
||||||
|
public void removeSub(@PathVariable Long id) {
|
||||||
|
|
||||||
|
// return clientApply.listPartnerApply(manager,apply);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue