图
2020-07-14 16:42:15 16 举报
图
作者其他创作
大纲/内容
实现接口
管理员实现类
用户注册接口
管理员实体类
用户实现类
Admin
- id :int- name :String- pwd :String+ get(id:int):void
+ setId(id:int):void+ getName():String+ setName(name:String):void+ getPwd():String
动漫信息实体类
动漫实现类
User
+ id :int+ name :String+ pwd :String+ email :String
+ getId():int+ setId(id int):void+ getName():String+ setName(name:String):void+ getPwd():String+ setPwd(pwd String):void+ getEmail():String+ setEmail(email:String):void
<interface>Animedao
+ animes() :List<Anime>+ animes(anime:Anime) :List<Anime>+ selectAnime(anime:Anime) :Anime+ addAnime(anime:Anime):int+deleteAnime(anime:Anime):int
管理员接口
Anime
- aid :int- cid :int- anme :String- synopsis :String- protagonist :String- time :String- path :String
显示页面接口
<interface>UserDao
+ register(user:User):int+ login(user:User):int
Animedaoimpl
+ animes():List<Anime>
+ animes(anime:Anime):List<Anime>+ selectAnime(anime:Anime):Anime+ addAnime(anime:Anime):int+ deleteAnime(anime:Anime):int
BaseDao
- driver :String- url :String- user :String- pwd :String# con :Connection# pst :PrepareStatement#rs :ResultSet
AdminDaoimpl
+ adminRegister(admin:Admin):int
+ adminLogin(admin:Admin):int
数据库类
UserDaoimpl
+ register(user:User):int
+ login(user:User):int
<interface>AdminDao
+ adminRegister(admin:Admin):int + adminLogin(admin:Admin):int
普通用户实体类
0 条评论
下一页