-
Notifications
You must be signed in to change notification settings - Fork 1
Dao List
Victor Ye edited this page Apr 1, 2015
·
3 revisions
User:userDao
User getUserById(int id)
User getUserByEmail(String email)
User setUserStatus(User user, int status)
void saveUser(User user)
List<User> listAllUsers()
Ticket:ticketDao
Ticket setTicketStatus(Ticket ticket, int status)
Void saveTicket(Ticket ticket)
List<Ticket> listAllTickets()
Transaction:transactionDao
Void changeStatus(Transaction transaction, String status)
void saveTransaction(Transaction transaction)
CreditCard:creditcardDao
void saveCreditCard(CreditCard creditcard) =>cc.set(User)
void removeCreditCard(CreditCard creditcard)
com.mercury.rts.persistence.dao
com.mercury.rts.persistence.dao.impl
Service:
User:
String reg(User user)
List<Ticket> searchTicket(String dep,String des,String time);
Transaction purchase(User user, Ticket ticket)
String cancel(Transaction tr)
List<Transaction> checkHistory(User user)
String saveCreditCard(User user,CC cc)
String removeCC(User user,CC cc)
Admin:
String add/updateTicket(Ticket ticket)
String changeTicketStatus(Ticket ticket,int status)
String changeUserStatus(User user,int status)
System:
ROLE: ROLE_USER/ROLE_ADMIN
//User login()
//logout
String email(User user, String subject, String contents)
String changeUserStatus(User user,int status)
List<Ticket> listTicket();