Giter Club home page Giter Club logo

booksalessystem's Introduction

bookSalesSystem

这是小学期的图书销售系统项目

关键字段:

 book:

(int)     bid;

(String)  bookName;

(int)     price;

(string)  img(url);

(String)  author;

(int)     salesNumber;

(String)  score;

(String)  abstract;

(String)  detail;

(int)     surplus;

(String)  categoryName;

 category:

   (String)  categoryName;

shopCar:

(int)	sid;

(int)	uid;

(int)	bid;

(int)	price;

(int)	isOrder;

(int)	isPurchase;

User:

(int)	uid;

(String)	userName;

(String)	phoneNumber;

(String)	password;

(String)	address;

(boolean)	isAdmin;

前端接口:

  getAllBooks()

     返回:list

      (int)     bid;
      
      (String)  bookName;
      
      (int)     price;
      
      (string)  img(url);
      
      (String)  author;
      
      (int)     salesNumber;
      
      (String)  score;
      
      (String)  abstract;
      
      (int)     surplus;
      
      (String)  categoryName;

  getBooksBySplite(int index,int num);//根据index和splite返回书籍

  返回:

   map/list
  
      (int)     bid;
      
      (String)  bookName;
      
      (int)     price;
      
      (string)  img(url);
      
      (String)  author;
      
      (int)     salesNumber;
      
      (String)  score;
      
      (String)  abstract;
      
      (int)     surplus;
      
      (String)  categoryName;

  getCategory();//获取分类

       返回list

         (String) categoryName;

   

getAD();

       返回list

         (String) img(url);

      (String)    url(url);

  getHotBooks();

       返回list

        (int)     bid;
        
        (String)  bookName;
        
        (int)     price;
        
        (string)  img(url);
        
        (String)  abstract;

  shopCart(int num);

	获取购物车前num条内容

       参数:num = 1;

       返回:

        (int)     bid;
        
        (String)  bookName;
        
        (int)     price;

shopCart()

获取购物车的所有内容

返回 : list
	
        (int)     bid;
        
        (String)  bookName;
        
        (int)     price;

  logout();

   search(String keyWord);

       参数 : keyWord

       返回:list

         type:book / category

        book:
        
          (int)     bid;
          
          (String)  bookName;
          
          (int)     price;
          
          (string)  img(url);
          
          (String)  abstract;

           category:

               (String)  categoryName;

            (String)  url;

     login(String userName , String password);

参数 :	username	

参数 :	password(需要加密) 

加密方式:RSA(userName + password)

返回:

	status	: true / false		

	url

register(String userName,String password,String phoneNumber);

参数 :	username	

参数 :	password(需要加密) 

参数 :	phoneNumber

加密方式:RSA(userName + password)

返回:

	status	: true / false		

	url

validMessage(String phoneNumber,String validCode);

参数 :	phoneNumber

参数 :	validCode(一般是4-6位短信验证码) 

返回 : 

	status : true / false

changePassword(String userName,oldPassword,newPassword);

参数 :	userName(邮箱/手机号)

参数 :	oldPassword(需要加密) 

参数 :	newPassword(需要加密) 

加密方式:RSA(userName + password)

返回 :	
	
	status : true / false

	url

getPersonInfomation()

返回:
	int uid;

	String userName;

	String phoneNumber;

	String address;

	boolean isAdmin;

booksalessystem's People

Contributors

510850111 avatar mzgx avatar mujidehao87 avatar qad-tf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.