gwege
2018-03-14 21:24:25 1 举报
eee
作者其他创作
大纲/内容
Record:Table
userId: intbookId: intcount: intdate:Date
AdminOperateRecord
BookKindOperator
Read(int bookId):boolRead(BookKind bookKind):boolWrite(int bookId):boolWrite(BookKind bookKind):bool
BookOperator
Date
User(Library lib):Login()name: char[]id: intrecords: Listfee: floatQueryBook(int bookId)//查询书籍位置和具体信息isHalted: bool//是否被冻结,欠款会被冻结,缴纳所以欠款就会解冻BorrowBook(Book book):boolContinueBorrowBook(Book book):boolReturnBook(Book book):boolPayFees(float fee):bool//学生交钱
User
RequestHandler(string path)//读取文件checkRequestList():voidDoRequest(Request request):bool 执行请求getRequester():UsersaveFile():bool//存到文件
RequestHandler:
name: char[]books: Listprice: floatpublishInfo: char[]state:bool
BookKind
FileOperator
Book
[Condition]
Record
Table
Library()://bookOperator: BookOperatoruserOperator: UserOperatorbookBuffer: ListrecordBuffer: ListrequestHandler:RequestHandler~Library()://存档
Library
Read(int id):boolWrite(int id):bool
UserOperater
userId: intbookId: intCount: intdate: Date
UserOperateRecord
Admin
name: char[]bookId: intcount: intdate: Datecategory: int
Request:
0 条评论
下一页
为你推荐
查看更多
抱歉,暂无相关内容