首页>代码>s2sh开发失物招领项目,包括前台页面和后台管理系统>/lost_found/lostfound/src/main/java/com/phn/action/AdminAction.java
package com.phn.action; import javax.annotation.Resource; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Controller; import com.phn.entity.Admin; import com.phn.service.AdminService; @Controller("adminAction") @Scope("prototype") public class AdminAction { private Admin admin; @Resource private AdminService adminService; /** * 添加管理员 * @return * @throws Exception */ public String Add() throws Exception{ boolean flag = this.adminService.addAdmin(admin); if(flag==false){ return "admin_add_failed"; } return "admin_add_success"; } /** * 管理员登录验证 * @return * @throws Exception */ public String Log() throws Exception { this.admin = this.adminService.validAdmin(admin); if(this.admin==null){ return "admin_log_failed"; } return "admin_log_success"; } /** * 删除管理员 * @return * @throws Exception */ public String Del() throws Exception { boolean flag = this.adminService.deleteAdmin(admin); if(flag==false){ return "amdin_del_failed"; } return "admin_del_success"; } /** * 管理员修改密码 * @return * @throws Exception */ public String Upd() throws Exception{ boolean flag = this.adminService.updateAdmin(admin); if(flag==false){ return "admin_upd_fail"; } return "admin_upd_success"; } public Admin getAdmin() { return admin; } public void setAdmin(Admin admin) { this.admin = admin; } }
最近下载更多
lilonghui LV3
2023年5月2日
zhaoxiang123456 LV4
2023年2月12日
memomemo LV2
2022年3月3日
过过成功尺寸 LV7
2021年12月1日
17684264457 LV2
2021年8月26日
2267741747 LV2
2021年8月3日
ththsss LV2
2021年7月5日
Moshang674264 LV7
2021年7月2日
第一等 LV3
2021年4月20日
2454762523 LV2
2021年1月1日
最近浏览更多
wangsheng818 LV4
4月8日
Octal1028
2月12日
暂无贡献等级
iiiiiiixiiiiii LV1
2023年12月28日
WBelong LV7
2023年12月27日
xyzzuidaima LV3
2023年9月30日
186092 LV4
2023年9月19日
噜噜噜路口 LV2
2023年8月17日
Huangyinghai LV1
2023年6月23日
xhx行不行 LV1
2023年6月12日
菲尼萨颗粒 LV1
2023年6月4日