网上书店网站系统类图
2015-08-07 21:02:35 0 举报
网站系统类图
作者其他创作
大纲/内容
Book
+ Books : Book+ supplier: User+ comments: Comment+ imgs: String
+ picture_size()
ActionController::Base
+ before_action()+ include()
ActiveRecord::Base
+ has_many()+ attr_accessor()+ before_save()+ before_create()+ belongs_to()+ default_scope()+ validates()+ find_by()+ all()+ first()
Comment
+ customs : User+ supplier: User+ comment : Comment+ Books: Book
SessionsHelper
+ log_in(User: user)+ current_user()+ logged_in?()+ forget(User: user)+ log_out()+ remember(User: user)+ current_user?(User: user)+ redirect_back_or(String: url)+ store_location()
ApplicationController
+ logged_in_user()- logged_in?()- authority?()
GoodsController
+ show()+ new()+ edit()+ index()+ destroy()+ create()+ update()+ puton()+ pulloff()- good_params()- correct_supplier?()
UsersController
+ user : User+ orders: Order + comments : Comment
+ show()+ new()+ edit()+ index()+ destroy()+ create()+ update()- user_params()
OrdersController
+ show()+ new()+ edit()+ index()+ destroy()+ create()+ update()- order_params()- correct_supplier?()
User
+ digest(String: string)+ new_token()+ remember()+ forget()+authenticated?(String: token)- downcase_email()- has_secure_password?()
Order
+ Orders : Order+ Books: Book+ custom: User+ supplier: User
+ trading_status()
CommentsController
+ show()+ new()+ edit()+ index()+ destroy()+ create()+ update()+ issue()- article_params()- correct_user?()
SessionsController
+ user: User
+ create()+ destroy()
0 条评论
下一页