# mall **Repository Path**: lzhycat/mail ## Basic Information - **Project Name**: mall - **Description**: 谷粒商城guliguliguliguli - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-07-15 - **Last Updated**: 2022-09-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README mail-gateway 5000 mail-product 6000 mail-order 7000 mail-member 8000 mail-coupon 9000 mail-ware 10000 mail-third-part 11000 mail-auth 12000 mail-cart 13000 page、limit、sidx、order(asc、desc)、key Category_Brand_Relation brandId查询所属分类 品牌管理中得到品牌的分类 ~ Category_Brand_Relation save ~ (Brand or Category) update Category_Brand_Relation update ~ review [80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,139, 140,145,146,147,148,149,150,178-192,200-202] 4.Attr保存 /product/attr/save (AttrGroup、AAR相应修改) 5.Attr列表 根据AttrType /product/attr/list/{attrType}/{catelogId} 6.Attr查询单个 不做 7.Attr更新 不做 put mall {"mappings": {"properties": {"skuTitle": { "type": "text", "analyzer": "ik_smart" },"skuId": {"type": "long"},"spuId": {"type": "keyword"},"skuPrice": {"type": "keyword" },"skuImg": {"type": "keyword","index": false,"doc_values": false },"saleCount": {"type": "long"},"hasStock": {"type": "boolean"},"hotScore": {"type": "long" },"brandId": {"type": "long"},"catalogId": {"type": "long"},"brandName": {"type": "keyword","index": false, "doc_values": false },"brandImg": {"type": "keyword","index": false,"doc_values": false },"catalogName": { "type": "keyword","index": false,"doc_values": false },"attrs": {"type": "nested","properties": { "attrId": {"type": "long"},"attrName": {"type": "keyword","index": false,"doc_values": false },"attrValue": { "type": "keyword"} } } } } } 注册流程: 1.auth register接口参数用户信息Vo ——> 拿验证码校验 ——> 远程调用member save数据 2.third-part sendCode接口参数用户手机 ——> 验证码防刷 验证码存储 登录流程: (1) 单一服务器登录:服务器session中存储sessionId,返回给客户端,客户端存储到cookie中,每次访问携带并在服务器验证 缺点:session共享问题 (2) SSO(single sign on) 单点登录:认证单独部署在一台服务器上 并且登录后信息存储在redis上 不从cookie中获取 缺点:认证服务器压力大 (3) token 1.auth login接口 远程调用member ——> 生成token返回 校验流程: 1.拦截器 ——> 解析header头中的token ——> 获取用户kk相关信息 MQ 1.exchange ——> queue ——> binding(exchange, queue) 购物车转结算界面(购物车列表接口):校验(1) 商品是否下架 (2) 商品库存是否狗 (3)商品价格是否变化 校验改造:拦截器(ThreadLocal有数据 直接跳过) R返回 client远程调用 带request header 异步和threadLocal问题 点击下订单 ———> 查实体类 ——> 注入redis —> 下架 or 无库存(抛异常) gou 755 三林 闵行20