Git Product home page Git Product logo

ygshop's Introduction

1. 接口数据

1.1. 商城接口

主要接口字段说明 ret 接口标识码 等于0时,接口处理成功,非0时 接口信息出错 msg 接口返回信息说明 imgs 逗号隔开字符串 wdata 接口数据返回字段(对象)

  1. 获取短信验证码

    @url http://s.linweiqin.com/api/s/getMobileCode
    @method post/get
    @params mobile
    @return msg,ret,wdata
    @wdata: null
  2. 用户注册接口

    @url http://s.linweiqin.com/api/s/createUser
    @method post/get
    @params mobile,username,password,code(验证码)
    @return msg,ret,wdata
    @wdata: username(名称),user_id,avator_url
  3. 用户登录接口

    @url http://s.linweiqin.com/api/s/loginCheck
    @method post/get
    @params username,password
    @return msg,ret,wdata
    @wdata: oauth_token(登录凭证),oauth_expire_time(登录凭证过期时间),user_id(用户ID),username(名称),avator_url(头像路径)
  4. 用户退出接口

    @url http://s.linweiqin.com/api/s/logout
    @method post/get
    @params oauth_token
    @return msg,ret,wdata
    @wdata: 空
  5. 用户个人信息修改

    @url http://s.linweiqin.com/api/s/updateUserInfo
    @method post/get
    @params username,avator_url,oauth_token
    @return msg,ret,wdata
    @wdata: 空
  6. 重置密码

    @url http://s.linweiqin.com/api/s/updatePassword
    @method post/get
    @params currenPassword,updatePassword
    @return msg,ret,wdata
    @wdata: 空
  7. 首页轮播图

    @url http://s.linweiqin.com/api/s/getIndexLoopimg
    @method post/get
    @params null
    @return msg,ret,wdata
    @wdata: loopimg_url(轮播图图片路径),loopimg_title(轮播图标题),loopimg_href(轮播图超链接)
  8. 产品接口

    @url http://s.linweiqin.com/api/s/getProducts
    @method post/get
    @params cid(可选)
    @return msg,ret,wdata
    @wdata: pid(产品ID),cid(分类ID),product_name(产品名称),product_origin_price(产品原价),product_price(产品价格),product_spec(产品规格),product_url(产品首图),product_urls(产品轮播图),product_desc(产品详情),created_at(创建时间)
  9. 分类接口

    @url http://s.linweiqin.com/api/s/getCategorys
    @method post/get
    @params null
    @return msg,ret,wdata
    @wdata: cid(分类ID),category_name(分类名称),created_at(创建时间),has_sub(是否有下级),category_url(分类图片),sub_category(子类分类)
  10. 商品详情接口

    @url http://s.linweiqin.com/api/s/getProductDetail
    @method post/get
    @params pid
    @return msg,ret,wdata
    @wdata: call(020电话),pid(产品ID),cid(分类ID),product_name(产品名称),product_origin_price(产品原价),product_price(产品价格),product_spec(产品规格),product_url(产品首图),product_urls(产品轮播图),product_desc(产品详情),created_at(创建时间)
  11. 地址创建

@url http://s.linweiqin.com/api/s/createUserAddress
@method post/get
@params address(详细地址),address_name(收件人),address_mobile(联系方式),oauth_token
@return msg,ret,uaid
@uaid:  地址ID
  1. 地址修改
@url http://s.linweiqin.com/api/s/updateUserAddress
@method post/get
@params address(详细地址),address_name(收件人),address_mobile(联系方式),oauth_token
@return msg,ret,uaid
@uaid:  地址ID
  1. 地址删除
@url http://s.linweiqin.com/api/s/deleteUserAddress
@method post/get
@params uaid,oauth_token
@return msg,ret,uaid
@uaid:  地址ID
  1. 地址列表
@url http://s.linweiqin.com/api/s/getUserAddressList
@method post/get
@params oauth_token
@return msg,ret,wdata
@wdata: address(详细地址),address_name(收件人),address_mobile(联系方式),uaid(地址ID)
  1. 购物车接口
@url http://s.linweiqin.com/api/s/getCarts
@method post/get
@params oauth_token
@return msg,ret,wdata
@wdata: ucid(购物车ID),pid(产品ID),uid(用户ID),product_name(产品名称),product_price(产品价格),product_spec(产品规格),product_url(产品首图),product_number(购物车数量),created_at(创建时间)
  1. 购物车增减接口
@url http://s.linweiqin.com/api/s/updateCarts
@method post/get
@params action 参数默认为 add
@params 当 action 等于 add 时, productNumber(增加数量),pid(产品ID),oauth_token
@params 当 action 等于 reduce 时,productNumber(减少数量),pid(产品ID),oauth_token
@params 当 action 等于 delete 时,pid(产品ID),oauth_token
@return msg,ret,wdata
@wdata: 空
  1. 订单详情
@url http://s.linweiqin.com/api/s/getOrders
@method post/get
@params oauth_token
@return msg,ret,wdata
@wdata: uoid(订单ID),order_price(订单价格),order_express_info(订单地址信息),order_status(订单状态,0未支付,1已支付,2订单取消),order_info(商品详情)
@order_info : ucid(购物车ID),uid(用户ID),pid(产品ID),product_price(产品价格),product_name(产品名称),product_url(产品首图),product_number(购物车数量),
  1. 订单创建
@url http://s.linweiqin.com/api/s/createOrder
@method post/get
@params oauth_token,uaid
@return msg,ret,uoid
@uoid:  订单ID
  1. 订单取消
@url http://s.linweiqin.com/api/s/cancelOrder
@method post/get
@params oauth_token,uoid
@return msg,ret,wdata
@wdata: 空
  1. 微信预支付返回数据接口
@url http://s.linweiqin.com/api/s/wxPrepay
@method post/get
@params oauth_token,uoid
@return msg,ret,payUrl
@payUrl: 支付跳转链接
  1. 精选产品接口
@url http://s.linweiqin.com/api/s/getHotProducts
@method post/get
@params cid(可选)
@return msg,ret,wdata
@wdata: pid(产品ID),cid(分类ID),product_name(产品名称),product_origin_price(产品原价),product_price(产品价格),product_spec(产品规格),product_url(产品首图),product_urls(产品轮播图),product_desc(产品详情),created_at(创建时间)
  1. 查询某个订单详情
@url http://s.linweiqin.com/api/s/getOrder
@method post
@params oauth_token,uoid
@return msg,ret,wdata
@wdata: uoid(订单ID),order_price(订单价格),order_express_info(订单地址信息),order_status(订单状态,0未支付,1已支付,2订单取消),order_info(商品详情)
@order_info : ucid(购物车ID),uid(用户ID),pid(产品ID),product_price(产品价格),product_name(产品名称),product_url(产品首图),product_number(购物车数量),

ygshop's People

Contributors

dependabot[bot] avatar thomaslwq 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.