网上购物系统——前端(类图)
2018-04-27 22:07:26 94 举报
网上购物系统——前端(类图)
作者其他创作
大纲/内容
Network Layer
ShoppingView
+ UI ui_ShoppingView+ User user+ Good good
+ Good getGood()+ void buyGood(Good)+ void delGood(Good)+ void updateGood(Good)+ void showGood()+ Good searchGood(string)+ void click()
Data Provider Layer ( Model )
Network
+ QNetworkRequest QN+ QJsonValue Json
+ QJsonValue getJson()+ void setJson(QJsonValue)+ void connection()+ void listen()
GoodView
+ UI ui_GoodView+ User user+ Good good
+ Good getGood()+ void buyGood(Good)+ void updateGood(Good)+ void showGood()+ Good searchGood(string)+ void click()
View Layer
Good
+ int item_id+ string description+ string name+ int kind+ photo photo+ int total_amount+ string from
+ set...(simplegood)+simplegood get...()
Json2Message
+ Network Nw+ QJsonValue Json+ Good good+ User user
+ User Json2User(QJsonValue)+ Good Json2Good(QJson Value)+ Order Json2Order(QJson Value)+ Cart Json2Cart(QJson Value)
LoginView
+ UI ui_LoginView+ Usermessage user
+ User getUser()+ void sendUser(Usermessage)+ void click()
User
+ int userid+ int username+ int password+ bool sex+ int age
+ set...(simpleuser)+simpleuser get...()
Order
+ int order_id+ int uid+ Date order_date+ string from_address+ string to_address+ int total_price+ bool state
+ ... get...()+ void set...(...)
RegisterView
+ UI ui_RegisterView+ Usermessage user
CartView
+ UI ui_CartView+ Useruser+ Good good
+ Usermessage getData()+ void sendUser(Usermessage)+ Good getGood()+ void buyGood(Good)+ void delGood(Good)+ void updateGood(Good)+ void click()
Cart
+ int cart_id+ int uid+ int good_id+ int amount
+ set...(...)+ ...get...()
收藏
收藏
0 条评论
下一页