diff --git a/common/env.js b/common/env.js new file mode 100644 index 0000000..d0bb12e --- /dev/null +++ b/common/env.js @@ -0,0 +1,30 @@ +/** + * 项目环境配置文件 + * 集中管理所有环境相关的配置参数 + */ + +// 开发环境配置 +const development = { + // API基础URL + // baseUrl: 'https://ydsapi.zpc-xy.com', + baseUrl: 'https://guyu.zpc-xy.com', + imageUrl: 'https://guyu-1308826010.cos.ap-shanghai.myqcloud.com', + +}; + +// 生产环境配置 +const production = { + baseUrl: 'https://guyu.zpc-xy.com/', + imageUrl: 'https://guyu-1308826010.cos.ap-shanghai.myqcloud.com', + +}; + +// 根据环境变量选择对应配置 +let currentEnv = development;//production;//testing; +// 衍生配置 +const config = { + ...currentEnv, + apiBaseUrl: currentEnv.baseUrl + '/api/', +}; + +export default config; \ No newline at end of file diff --git a/common/gy.js b/common/gy.js new file mode 100644 index 0000000..1507322 --- /dev/null +++ b/common/gy.js @@ -0,0 +1,11 @@ +import * as utils1 from './utils'; +import * as utils2 from './system/cacheService'; +import * as utils3 from './system/router'; +import * as utils4 from './system/request'; +// 动态合并所有导出到 yds 对象 +export const gy = { + ...utils1, + ...utils2, + ...utils3, + ...utils4, +}; diff --git a/common/server/config.js b/common/server/config.js new file mode 100644 index 0000000..3910e74 --- /dev/null +++ b/common/server/config.js @@ -0,0 +1,18 @@ +import request from '@/common/system/request'; + +export const getConfig = async () => { + let res = await request.get('Common/GetConfigV3', {}); + return res.data; +} + +export class Config { + constructor() { + this.config = null; + } + + async getConfig() { + if (this.config == null) { + this.config = await getConfig(); + } + } +} \ No newline at end of file diff --git a/common/server/home.js b/common/server/home.js new file mode 100644 index 0000000..0e2cee5 --- /dev/null +++ b/common/server/home.js @@ -0,0 +1,23 @@ + +import { getAdvertList } from '@/common/server/interface/advert' +import { noticeInfo as getNoticeInfo } from '@/common/server/interface/notice' + +/** + * 获取首页关键数据 + * @returns 首页数据 + */ +export const getHomePage = async () => { + // 获取首页banner位 + const advertTask = getAdvertList("TplIndexBanner1"); + // 获取首页滚动文字 + const noticeInfoTask = getNoticeInfo(9); + + const results = await Promise.allSettled([advertTask, noticeInfoTask]); + const [advertList, noticeInfo] = results.map(result => + result.status === 'fulfilled' ? result.value : null + ); + return { + advertList, + noticeInfo + }; +} \ No newline at end of file diff --git a/common/server/interface/advert.js b/common/server/interface/advert.js new file mode 100644 index 0000000..d30e97d --- /dev/null +++ b/common/server/interface/advert.js @@ -0,0 +1,27 @@ +import request from '@/common/system/request'; + +/** + * 获取滚动条 + * @param {String} code 编码 TplIndexBanner1:首页轮播图 + * @returns + */ +export const getAdvertList = async (code) => { + if (code == null || code == "") { + return []; + } + const res = await request.getOrCache("advert/GetAdvertList", { code: code }); + return res.data; +} + +/** + * 获取广告位置信息 + * @param {Object} data 查询参数 + * @returns {Promise} + */ +export const getPositionList = async (data) => { + const res = await request.post("Advert/GetPositionList", data); + if (res.code == 0) { + return res.data; + } + return null; +} \ No newline at end of file diff --git a/common/server/interface/agent.js b/common/server/interface/agent.js new file mode 100644 index 0000000..86609d1 --- /dev/null +++ b/common/server/interface/agent.js @@ -0,0 +1,115 @@ +import request from '@/common/system/request'; + +/** + * 申请成为代理商接口 + * @param {Object} data 代理商申请数据 + * @returns {Promise} + */ +export const applyAgent = async (data) => { + const res = await request.post("Agent/ApplyAgent", data); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取代理商排行 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getAgentRanking = async (params) => { + const res = await request.post("Agent/GetAgentRanking", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 根据查询条件获取分页数据 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getGoodsPageList = async (params) => { + const res = await request.post("Agent/GetGoodsPageList", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取我的订单统计 + * @returns {Promise} + */ +export const getOrderSum = async () => { + const res = await request.post("Agent/GetOrderSum"); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取店铺信息 + * @param {number} id 店铺ID + * @returns {Promise} + */ +export const getStoreInfo = async (id) => { + const res = await request.post("Agent/GetStoreInfo", { id }); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取我的下级用户数量 + * @returns {Promise} + */ +export const getTeamSum = async () => { + const res = await request.post("Agent/GetTeamSum"); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 查询用户是否可以成为代理商 + * @returns {Promise} + */ +export const info = async () => { + const res = await request.post("Agent/Info"); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 我推广的订单 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const myOrder = async (params) => { + const res = await request.post("Agent/MyOrder", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 店铺设置 + * @param {Object} data 店铺设置数据 + * @returns {Promise} + */ +export const setStore = async (data) => { + const res = await request.post("Agent/SetStore", data); + if (res.code == 0) { + return res.data; + } + return null; +} \ No newline at end of file diff --git a/common/server/interface/article.js b/common/server/interface/article.js new file mode 100644 index 0000000..3a0820a --- /dev/null +++ b/common/server/interface/article.js @@ -0,0 +1,40 @@ +import request from '@/common/system/request'; + +/** + * 获取文章列表 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getArticleList = async (params) => { + const res = await request.post("Article/GetArticleList", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取单个文章内容 + * @param {number} id 文章ID + * @returns {Promise} + */ +export const getArticleDetail = async (id) => { + const res = await request.post("Article/GetArticleDetail", { id }); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取通知列表 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const noticeList = async (params) => { + const res = await request.post("Article/NoticeList", params); + if (res.code == 0) { + return res.data; + } + return null; +} \ No newline at end of file diff --git a/common/server/interface/cart.js b/common/server/interface/cart.js new file mode 100644 index 0000000..066b956 --- /dev/null +++ b/common/server/interface/cart.js @@ -0,0 +1,66 @@ +import request from '@/common/system/request'; + +/** + * 添加单个货品到购物车 + * @param {Object} data 包含商品信息的数据 + * @returns {Promise} + */ +export const addCart = async (data) => { + const res = await request.post("Cart/AddCart", data); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 删除购物车商品 + * @param {number} id 购物车ID + * @returns {Promise} + */ +export const doDelete = async (id) => { + const res = await request.post("Cart/DoDelete", { id }); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取购物车列表 + * @param {Object} params 参数 + * @returns {Promise} + */ +export const getList = async (params) => { + const res = await request.post("Cart/GetList", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 设置购物车商品数量 + * @param {Object} data 设置数量参数 + * @returns {Promise} + */ +export const setCartNum = async (data) => { + const res = await request.post("Cart/SetCartNum", data); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 根据提交的数据判断哪些购物券可以使用 + * @param {Object} data 优惠券判断参数 + * @returns {Promise} + */ +export const getCartAvailableCoupon = async (data) => { + const res = await request.post("Cart/GetCartAvailableCoupon", data); + if (res.code == 0) { + return res.data; + } + return null; +} \ No newline at end of file diff --git a/common/server/interface/common.js b/common/server/interface/common.js new file mode 100644 index 0000000..17131d1 --- /dev/null +++ b/common/server/interface/common.js @@ -0,0 +1,74 @@ +import request from '@/common/system/request'; + +/** + * 获取层级分配后的区域信息 + * @returns {Promise} + */ +export const getAreas = async () => { + const res = await request.post("Common/GetAreas"); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 返回配置数据文件V2.0 + * @returns {Promise} + */ +export const getConfigV2 = async () => { + const res = await request.post("Common/GetConfigV2"); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 返回配置数据文件V3.0 + * @returns {Promise} + */ +export const getConfigV3 = async () => { + const res = await request.get("Common/GetConfigV3"); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取商城关键词说明列表 + * @returns {Promise} + */ +export const getServiceDescription = async () => { + const res = await request.post("Common/GetServiceDescription"); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 接口测试反馈 + * @returns {Promise} + */ +export const interFaceTest = async () => { + const res = await request.post("Common/InterFaceTest"); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 上传附件通用接口 + * @param {FormData} formData 上传的表单数据 + * @returns {Promise} + */ +export const uploadImages = async (formData) => { + const res = await request.post("Common/UploadImages", formData); + if (res.code == 0) { + return res.data; + } + return null; +} \ No newline at end of file diff --git a/common/server/interface/coupon.js b/common/server/interface/coupon.js new file mode 100644 index 0000000..bd06af1 --- /dev/null +++ b/common/server/interface/coupon.js @@ -0,0 +1,66 @@ +import request from '@/common/system/request'; + +/** + * 获取可领取的优惠券 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const couponList = async (params) => { + const res = await request.post("Coupon/CouponList", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取优惠券详情 + * @param {number} id 优惠券ID + * @returns {Promise} + */ +export const couponDetail = async (id) => { + const res = await request.post("Coupon/CouponDetail", { id }); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 用户领取优惠券 + * @param {number} id 优惠券ID + * @returns {Promise} + */ +export const getCoupon = async (id) => { + const res = await request.post("Coupon/GetCoupon", { id }); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 用户输入code领取优惠券 + * @param {Object} data 包含code的数据 + * @returns {Promise} + */ +export const getCouponKey = async (data) => { + const res = await request.post("Coupon/GetCouponKey", data); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取用户已领取的优惠券 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const userCoupon = async (params) => { + const res = await request.post("Coupon/UserCoupon", params); + if (res.code == 0) { + return res.data; + } + return null; +} \ No newline at end of file diff --git a/common/server/interface/distribution.js b/common/server/interface/distribution.js new file mode 100644 index 0000000..a65e5c0 --- /dev/null +++ b/common/server/interface/distribution.js @@ -0,0 +1,102 @@ +import request from '@/common/system/request'; + +/** + * 申请成为分销商接口 + * @param {Object} data 分销商申请数据 + * @returns {Promise} + */ +export const applyDistribution = async (data) => { + const res = await request.post("Distribution/ApplyDistribution", data); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取分销商排行 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getDistributionRanking = async (params) => { + const res = await request.post("Distribution/GetDistributionRanking", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取我的订单统计 + * @returns {Promise} + */ +export const getOrderSum = async () => { + const res = await request.post("Distribution/GetOrderSum"); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取店铺信息 + * @param {number} id 店铺ID + * @returns {Promise} + */ +export const getStoreInfo = async (id) => { + const res = await request.post("Distribution/GetStoreInfo", { id }); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取我的下级用户数量 + * @returns {Promise} + */ +export const getTeamSum = async () => { + const res = await request.post("Distribution/GetTeamSum"); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 查询用户是否可以成为分销商 + * @returns {Promise} + */ +export const info = async () => { + const res = await request.post("Distribution/Info"); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 我推广的订单 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const myOrder = async (params) => { + const res = await request.post("Distribution/MyOrder", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 店铺设置 + * @param {Object} data 设置数据 + * @returns {Promise} + */ +export const setStore = async (data) => { + const res = await request.post("Distribution/SetStore", data); + if (res.code == 0) { + return res.data; + } + return null; +} \ No newline at end of file diff --git a/common/server/interface/form.js b/common/server/interface/form.js new file mode 100644 index 0000000..8c3c071 --- /dev/null +++ b/common/server/interface/form.js @@ -0,0 +1,27 @@ +import request from '@/common/system/request'; + +/** + * 万能表单/提交表单 + * @param {Object} data 表单数据 + * @returns {Promise} + */ +export const addSubmit = async (data) => { + const res = await request.post("Form/AddSubmit", data); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 万能表单/获取活动商品详情 + * @param {Object} data 查询参数 + * @returns {Promise} + */ +export const getFormDetial = async (data) => { + const res = await request.post("Form/GetFormDetial", data); + if (res.code == 0) { + return res.data; + } + return null; +} \ No newline at end of file diff --git a/common/server/interface/good.js b/common/server/interface/good.js new file mode 100644 index 0000000..0a91bb9 --- /dev/null +++ b/common/server/interface/good.js @@ -0,0 +1,141 @@ +import request from '@/common/system/request'; + +/** + * 获取所有分类 + * @returns + */ +export const getAllCategories = async () => { + const res = await request.get("Good/GetAllCategories"); + if (res.code == 0) { + return res.data; + } + return null; +} + + +/** + * 获取商品评价列表分页数据 + * @returns {} + */ +export const getGoodsComment = async (otherData, id, page, limit, order, where) => { + const res = await request.post("Good/GetGoodsComment", { + "otherData": otherData, + "id": id, + "page": page, + "limit": limit, + "order": order, + "where": where + }); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取商品详情 + * @param {number} id 商品ID + * @returns {Promise} + */ +export const getDetial = async (id) => { + const res = await request.get("Good/GetDetial", { params: { id } }); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 根据Token获取商品详情 + * @param {number} id 商品ID + * @returns {Promise} + */ +export const getDetialByToken = async (id) => { + const res = await request.post("Good/GetDetialByToken", { id }); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 根据查询条件获取分页数据 + * @param {number} page 页码 + * @param {number} limit 每页数量 + * @param {string} order 排序 + * @param {string} where 条件 + * @returns {Promise} + */ +export const getGoodsPageList = async (page, limit, order, where) => { + const res = await request.get("Good/GetGoodsPageList", { + params: { + page, + limit, + order, + where + } + }); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取单个商品参数 + * @param {number} id 商品ID + * @param {Object} data 附加数据 + * @returns {Promise} + */ +export const getGoodsParams = async (id, data = {}) => { + const res = await request.get("Good/GetGoodsParams", { + params: { + id, + data + } + }); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取随机推荐商品 + * @param {number} id 商品ID + * @param {Object} data 附加数据 + * @returns {Promise} + */ +export const getGoodsRecommendList = async (id, data = {}) => { + const res = await request.get("Good/GetGoodsRecommendList", { + params: { + id, + data + } + }); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取单个货品信息 + * @param {number} id 货品ID + * @param {string} type 类型 + * @param {number} groupId 分组ID + * @returns {Promise} + */ +export const getProductInfo = async (id, type, groupId) => { + const res = await request.get("Good/GetProductInfo", { + params: { + id, + type, + groupId + } + }); + if (res.code == 0) { + return res.data; + } + return null; +} diff --git a/common/server/interface/group.js b/common/server/interface/group.js new file mode 100644 index 0000000..6677b44 --- /dev/null +++ b/common/server/interface/group.js @@ -0,0 +1,27 @@ +import request from '@/common/system/request'; + +/** + * 获取秒杀团购详情 + * @param {Object} data 查询参数 + * @returns {Promise} + */ +export const getGoodsDetial = async (data) => { + const res = await request.post("Group/GetGoodsDetial", data); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取秒杀团购列表 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getList = async (params) => { + const res = await request.post("Group/GetList", params); + if (res.code == 0) { + return res.data; + } + return null; +} \ No newline at end of file diff --git a/common/server/interface/notice.js b/common/server/interface/notice.js new file mode 100644 index 0000000..36e8b94 --- /dev/null +++ b/common/server/interface/notice.js @@ -0,0 +1,27 @@ +import request from '@/common/system/request'; + +/** + * 获取单个公告内容 + * @param {number} id 公告ID + * @returns {Promise} + */ +export const noticeInfo = async (id) => { + const res = await request.getOrCache("Notice/NoticeInfo", { id }); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取公告列表 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const noticeList = async (params) => { + const res = await request.post("Notice/NoticeList", params); + if (res.code == 0) { + return res.data; + } + return null; +} \ No newline at end of file diff --git a/common/server/interface/order.js b/common/server/interface/order.js new file mode 100644 index 0000000..d9d6c97 --- /dev/null +++ b/common/server/interface/order.js @@ -0,0 +1,131 @@ +import request from '@/common/system/request'; + +/** + * 创建订单 + * @param {Object} data 订单数据 + * @returns {Promise} + */ +export const createOrder = async (data) => { + const res = await request.post("Order/CreateOrder", data); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取个人订单列表 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getOrderList = async (params) => { + const res = await request.post("Order/GetOrderList", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取订单不同状态的数量 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getOrderStatusNum = async (params) => { + const res = await request.post("Order/GetOrderStatusNum", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 订单详情 + * @param {string} id 订单ID + * @returns {Promise} + */ +export const orderDetails = async (id) => { + const res = await request.post("Order/OrderDetails", { id }); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 取消订单 + * @param {string} id 订单ID + * @returns {Promise} + */ +export const cancelOrder = async (id) => { + const res = await request.post("Order/CancelOrder", { id }); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 删除订单 + * @param {string} id 订单ID + * @returns {Promise} + */ +export const deleteOrder = async (id) => { + const res = await request.post("Order/DeleteOrder", { id }); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 确认签收订单 + * @param {string} id 订单ID + * @returns {Promise} + */ +export const orderConfirm = async (id) => { + const res = await request.post("Order/OrderConfirm", { id }); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 添加售后单 + * @param {Object} data 售后单数据 + * @returns {Promise} + */ +export const addAftersales = async (data) => { + const res = await request.post("Order/AddAftersales", data); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取售后单列表 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const aftersalesList = async (params) => { + const res = await request.post("Order/AftersalesList", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取售后单详情 + * @param {string} id 售后单ID + * @returns {Promise} + */ +export const aftersalesinfo = async (id) => { + const res = await request.post("Order/Aftersalesinfo", { id }); + if (res.code == 0) { + return res.data; + } + return null; +} \ No newline at end of file diff --git a/common/server/interface/page.js b/common/server/interface/page.js new file mode 100644 index 0000000..961e31d --- /dev/null +++ b/common/server/interface/page.js @@ -0,0 +1,27 @@ +import request from '@/common/system/request'; + +/** + * 获取页面布局数据 + * @param {Object} data 查询参数 + * @returns {Promise} + */ +export const getPageConfig = async (data) => { + const res = await request.post("Page/GetPageConfig", data); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取用户购买记录 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getRecod = async (params) => { + const res = await request.post("Page/GetRecod", params); + if (res.code == 0) { + return res.data; + } + return null; +} \ No newline at end of file diff --git a/common/server/interface/payments.js b/common/server/interface/payments.js new file mode 100644 index 0000000..98900b3 --- /dev/null +++ b/common/server/interface/payments.js @@ -0,0 +1,27 @@ +import request from '@/common/system/request'; + +/** + * 支付确认页面取信息 + * @param {Object} params 支付参数 + * @returns {Promise} + */ +export const checkPay = async (params) => { + const res = await request.post("Payments/CheckPay", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取支付单详情 + * @param {string} id 支付单ID + * @returns {Promise} + */ +export const getInfo = async (id) => { + const res = await request.post("Payments/GetInfo", { id }); + if (res.code == 0) { + return res.data; + } + return null; +} \ No newline at end of file diff --git a/common/server/interface/pintuan.js b/common/server/interface/pintuan.js new file mode 100644 index 0000000..3ae92ef --- /dev/null +++ b/common/server/interface/pintuan.js @@ -0,0 +1,53 @@ +import request from '@/common/system/request'; + +/** + * 获取拼团商品信息 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getGoodsInfo = async (params) => { + const res = await request.post("PinTuan/GetGoodsInfo", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取拼团列表 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getList = async (params) => { + const res = await request.post("PinTuan/GetList", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取拼团团队 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getPinTuanTeam = async (params) => { + const res = await request.post("PinTuan/GetPinTuanTeam", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取拼团产品信息 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getProductInfo = async (params) => { + const res = await request.post("PinTuan/GetProductInfo", params); + if (res.code == 0) { + return res.data; + } + return null; +} \ No newline at end of file diff --git a/common/server/interface/service.js b/common/server/interface/service.js new file mode 100644 index 0000000..3efffb3 --- /dev/null +++ b/common/server/interface/service.js @@ -0,0 +1,92 @@ +import request from '@/common/system/request'; + +/** + * 添加服务订单 + * @param {Object} data 服务订单数据 + * @returns {Promise} + */ +export const addServiceOrder = async (data) => { + const res = await request.post("Service/AddServiceOrder", data); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取服务详情 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getDetails = async (params) => { + const res = await request.post("Service/GetDetails", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取服务分页列表 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getPageList = async (params) => { + const res = await request.post("Service/GetPageList", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取票务信息 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getTicketInfo = async (params) => { + const res = await request.post("Service/GetTicketInfo", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 删除日志 + * @param {Object} params 删除参数 + * @returns {Promise} + */ +export const logDelete = async (params) => { + const res = await request.post("Service/LogDelete", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取验证分页列表 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const verificationPageList = async (params) => { + const res = await request.post("Service/VerificationPageList", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 验证票据 + * @param {Object} params 验证参数 + * @returns {Promise} + */ +export const verificationTicket = async (params) => { + const res = await request.post("Service/VerificationTicket", params); + if (res.code == 0) { + return res.data; + } + return null; +} \ No newline at end of file diff --git a/common/server/interface/store.js b/common/server/interface/store.js new file mode 100644 index 0000000..dc42c4c --- /dev/null +++ b/common/server/interface/store.js @@ -0,0 +1,166 @@ +import request from '@/common/system/request'; + +/** + * 获取默认商店 + * @returns {Promise} + */ +export const getDefaultStore = async () => { + const res = await request.post("Store/GetDefaultStore"); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取商家订单分页 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getOrderPageByMerchant = async (params) => { + const res = await request.post("Store/GetOrderPageByMerchant", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取商家订单搜索分页 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getOrderPageByMerchantSearch = async (params) => { + const res = await request.post("Store/GetOrderPageByMerchantSearch", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取推荐关键词 + * @returns {Promise} + */ +export const getRecommendKeys = async () => { + const res = await request.post("Store/GetRecommendKeys"); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 根据ID获取商店 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getStoreById = async (params) => { + const res = await request.post("Store/GetStoreById", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 根据用户ID获取商店 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getStoreByUserId = async (params) => { + const res = await request.post("Store/GetStoreByUserId", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取商店列表 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const getStoreList = async (params) => { + const res = await request.post("Store/GetStoreList", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取商店开关 + * @returns {Promise} + */ +export const getStoreSwitch = async () => { + const res = await request.post("Store/GetStoreSwitch"); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 是否店员 + * @returns {Promise} + */ +export const isClerk = async () => { + const res = await request.post("Store/IsClerk"); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 装载 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const lading = async (params) => { + const res = await request.post("Store/Lading", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 删除装载 + * @param {Object} params 删除参数 + * @returns {Promise} + */ +export const ladingDelete = async (params) => { + const res = await request.post("Store/LadingDelete", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取装载信息 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const ladingInfo = async (params) => { + const res = await request.post("Store/LadingInfo", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取商店装载列表 + * @param {Object} params 查询参数 + * @returns {Promise} + */ +export const storeLadingList = async (params) => { + const res = await request.post("Store/StoreLadingList", params); + if (res.code == 0) { + return res.data; + } + return null; +} \ No newline at end of file diff --git a/common/server/interface/user.js b/common/server/interface/user.js new file mode 100644 index 0000000..6f95273 --- /dev/null +++ b/common/server/interface/user.js @@ -0,0 +1,63 @@ +import request from '@/common/system/request'; + +/** + * 查询用户是否可以成为分销商 + * @returns {Promise} + */ +export const getDistributionInfo = async () => { + const res = await request.post("Distribution/Info"); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 申请成为分销商接口 + * @param {Object} data 分销商申请数据 + * @returns {Promise} + */ +export const applyDistribution = async (data) => { + const res = await request.post("Distribution/ApplyDistribution", data); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取分销商排行 + * @param {Object} params 分页参数 + * @returns {Promise} + */ +export const getDistributionRanking = async (params) => { + const res = await request.post("Distribution/GetDistributionRanking", params); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取我的订单统计 + * @returns {Promise} + */ +export const getOrderSum = async () => { + const res = await request.post("Distribution/GetOrderSum"); + if (res.code == 0) { + return res.data; + } + return null; +} + +/** + * 获取我的下级用户数量 + * @returns {Promise} + */ +export const getTeamSum = async () => { + const res = await request.post("Distribution/GetTeamSum"); + if (res.code == 0) { + return res.data; + } + return null; +} \ No newline at end of file diff --git a/common/server/swagger.json b/common/server/swagger.json new file mode 100644 index 0000000..7c10d4b --- /dev/null +++ b/common/server/swagger.json @@ -0,0 +1,9855 @@ +{ + "openapi": "3.0.1", + "info": { + "title": "核心商城系统接口端 接口文档", + "description": "核心商城系统接口端 HTTP API V2", + "contact": { + "name": "核心商城系统接口端", + "url": "https://CoreCms.Net", + "email": "JianWeie@163.com" + }, + "version": "V2" + }, + "paths": { + "/api/Advert/GetAdvertList": { + "get": { + "tags": [ + "Advert" + ], + "summary": "获取广告列表", + "parameters": [ + { + "name": "code", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Advert/GetPositionList": { + "post": { + "tags": [ + "Advert" + ], + "summary": "获取广告位置信息", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/WxAdvert" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WxAdvert" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WxAdvert" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/WxAdvert" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Agent/ApplyAgent": { + "post": { + "tags": [ + "Agent" + ], + "summary": "申请成为代理商接口 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMAgentApply" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMAgentApply" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMAgentApply" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMAgentApply" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Agent/GetAgentRanking": { + "post": { + "tags": [ + "Agent" + ], + "summary": "获取代理商排行 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Agent/GetGoodsPageList": { + "post": { + "tags": [ + "Agent" + ], + "summary": "根据查询条件获取分页数据", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByWhereOrder" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByWhereOrder" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByWhereOrder" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByWhereOrder" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Agent/GetOrderSum": { + "post": { + "tags": [ + "Agent" + ], + "summary": "获取我的订单统计 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Agent/GetStoreInfo": { + "post": { + "tags": [ + "Agent" + ], + "summary": "获取店铺信息", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Agent/GetTeamSum": { + "post": { + "tags": [ + "Agent" + ], + "summary": "获取我的下级用户数量 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Agent/Info": { + "post": { + "tags": [ + "Agent" + ], + "summary": "查询用户是否可以成为代理商 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Agent/MyOrder": { + "post": { + "tags": [ + "Agent" + ], + "summary": "我推广的订单 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Agent/SetStore": { + "post": { + "tags": [ + "Agent" + ], + "summary": "店铺设置 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMSetAgentStorePost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMSetAgentStorePost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMSetAgentStorePost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMSetAgentStorePost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Article/GetArticleDetail": { + "post": { + "tags": [ + "Article" + ], + "summary": "获取单个文章内容", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Article/GetArticleList": { + "post": { + "tags": [ + "Article" + ], + "summary": "获取文章列表", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Article/NoticeList": { + "post": { + "tags": [ + "Article" + ], + "summary": "获取通知列表", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Cart/AddCart": { + "post": { + "tags": [ + "Cart" + ], + "summary": "添加单个货品到购物车 (Auth)", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMCartAdd" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMCartAdd" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMCartAdd" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMCartAdd" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Cart/DoDelete": { + "post": { + "tags": [ + "Cart" + ], + "summary": "获取购物车列表 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Cart/GetCartAvailableCoupon": { + "post": { + "tags": [ + "Cart" + ], + "summary": "根据提交的数据判断哪些购物券可以使用 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMCouponForUserCouponPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMCouponForUserCouponPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMCouponForUserCouponPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMCouponForUserCouponPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Cart/GetList": { + "post": { + "tags": [ + "Cart" + ], + "summary": "获取购物车列表 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMCartGetList" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMCartGetList" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMCartGetList" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMCartGetList" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Cart/SetCartNum": { + "post": { + "tags": [ + "Cart" + ], + "summary": "设置购物车商品数量 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMSetCartNum" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMSetCartNum" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMSetCartNum" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMSetCartNum" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Common/GetAreas": { + "post": { + "tags": [ + "Common" + ], + "summary": "获取层级分配后的区域信息", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Common/GetConfigV2": { + "post": { + "tags": [ + "Common" + ], + "summary": "返回配置数据文件V2.0", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Common/GetConfigV3": { + "get": { + "tags": [ + "Common" + ], + "summary": "返回配置数据文件V3.0", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Common/GetServiceDescription": { + "post": { + "tags": [ + "Common" + ], + "summary": "获取商城关键词说明列表", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Common/InterFaceTest": { + "post": { + "tags": [ + "Common" + ], + "summary": "接口测试反馈", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Common/UploadImages": { + "post": { + "tags": [ + "Common" + ], + "summary": "上传附件通用接口 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Coupon/CouponDetail": { + "post": { + "tags": [ + "Coupon" + ], + "summary": "获取优惠券 详情 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Coupon/CouponList": { + "post": { + "tags": [ + "Coupon" + ], + "summary": "获取 可领取的优惠券", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMCouponForUserCouponPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMCouponForUserCouponPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMCouponForUserCouponPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMCouponForUserCouponPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Coupon/GetCoupon": { + "post": { + "tags": [ + "Coupon" + ], + "summary": "用户领取优惠券 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Coupon/GetCouponKey": { + "post": { + "tags": [ + "Coupon" + ], + "summary": "用户输入code领取优惠券 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMCouponForGetCouponKeyPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMCouponForGetCouponKeyPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMCouponForGetCouponKeyPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMCouponForGetCouponKeyPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Coupon/UserCoupon": { + "post": { + "tags": [ + "Coupon" + ], + "summary": "获取用户已领取的优惠券 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMCouponForUserCouponPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMCouponForUserCouponPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMCouponForUserCouponPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMCouponForUserCouponPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Distribution/ApplyDistribution": { + "post": { + "tags": [ + "Distribution" + ], + "summary": "申请成为分销商接口 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMDistributionApply" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMDistributionApply" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMDistributionApply" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMDistributionApply" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Distribution/GetDistributionRanking": { + "post": { + "tags": [ + "Distribution" + ], + "summary": "获取分销商排行 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Distribution/GetOrderSum": { + "post": { + "tags": [ + "Distribution" + ], + "summary": "获取我的订单统计 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Distribution/GetStoreInfo": { + "post": { + "tags": [ + "Distribution" + ], + "summary": "获取店铺信息", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Distribution/GetTeamSum": { + "post": { + "tags": [ + "Distribution" + ], + "summary": "获取我的下级用户数量 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Distribution/Info": { + "post": { + "tags": [ + "Distribution" + ], + "summary": "查询用户是否可以成为分销商 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Distribution/MyOrder": { + "post": { + "tags": [ + "Distribution" + ], + "summary": "我推广的订单 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Distribution/SetStore": { + "post": { + "tags": [ + "Distribution" + ], + "summary": "店铺设置 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMSetDistributionStorePost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMSetDistributionStorePost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMSetDistributionStorePost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMSetDistributionStorePost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Form/AddSubmit": { + "post": { + "tags": [ + "Form" + ], + "summary": "万能表单/提交表单", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FmAddSubmit" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FmAddSubmit" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FmAddSubmit" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FmAddSubmit" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Form/GetFormDetial": { + "post": { + "tags": [ + "Form" + ], + "summary": "万能表单/获取活动商品详情", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FmGetForm" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FmGetForm" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FmGetForm" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FmGetForm" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Good/GetAllCategories": { + "get": { + "tags": [ + "Good" + ], + "summary": "获取所有商品分类栏目数据", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Good/GetDetial": { + "get": { + "tags": [ + "Good" + ], + "summary": "获取商品详情", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Good/GetDetialByToken": { + "post": { + "tags": [ + "Good" + ], + "summary": "根据Token获取商品详情 (Auth)", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Good/GetGoodsComment": { + "post": { + "tags": [ + "Good" + ], + "summary": "获取商品评价列表分页数据", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Good/GetGoodsPageList": { + "get": { + "tags": [ + "Good" + ], + "summary": "根据查询条件获取分页数据", + "parameters": [ + { + "name": "page", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "limit", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "order", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "where", + "in": "query", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Good/GetGoodsParams": { + "get": { + "tags": [ + "Good" + ], + "summary": "获取单个商品参数", + "parameters": [ + { + "name": "id", + "in": "query", + "required": true, + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "data", + "in": "query", + "schema": { } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Good/GetGoodsRecommendList": { + "get": { + "tags": [ + "Good" + ], + "summary": "获取随机推荐商品", + "parameters": [ + { + "name": "id", + "in": "query", + "required": true, + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "data", + "in": "query", + "schema": { } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Good/GetProductInfo": { + "get": { + "tags": [ + "Good" + ], + "summary": "获取单个货品信息", + "parameters": [ + { + "name": "id", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "type", + "in": "query", + "schema": { + "type": "string" + } + }, + { + "name": "groupId", + "in": "query", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Group/GetGoodsDetial": { + "post": { + "tags": [ + "Group" + ], + "summary": "获取秒杀团购详情", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMGetGoodsDetial" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMGetGoodsDetial" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMGetGoodsDetial" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMGetGoodsDetial" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Group/GetList": { + "post": { + "tags": [ + "Group" + ], + "summary": "获取秒杀团购列表", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMGroupGetListPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMGroupGetListPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMGroupGetListPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMGroupGetListPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Notice/NoticeInfo": { + "get": { + "tags": [ + "Notice" + ], + "summary": "获取单个公告内容", + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "schema": { + "type": "integer", + "format": "int32" + } + } + ], + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Notice/NoticeList": { + "post": { + "tags": [ + "Notice" + ], + "summary": "列表", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Order/AddAftersales": { + "post": { + "tags": [ + "Order" + ], + "summary": "添加售后单 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/ToAddBillAfterSalesPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/ToAddBillAfterSalesPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/ToAddBillAfterSalesPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/ToAddBillAfterSalesPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Order/Aftersalesinfo": { + "post": { + "tags": [ + "Order" + ], + "summary": "获取售后单列表 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Order/AftersalesList": { + "post": { + "tags": [ + "Order" + ], + "summary": "获取售后单列表 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByStringId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByStringId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByStringId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByStringId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Order/CancelOrder": { + "post": { + "tags": [ + "Order" + ], + "summary": "取消订单 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Order/CreateOrder": { + "post": { + "tags": [ + "Order" + ], + "summary": "创建订单 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/CreateOrder" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateOrder" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/CreateOrder" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/CreateOrder" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Order/DeleteOrder": { + "post": { + "tags": [ + "Order" + ], + "summary": "删除订单 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Order/GetOrderList": { + "post": { + "tags": [ + "Order" + ], + "summary": "获取个人订单列表 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/GetOrderListPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetOrderListPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetOrderListPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/GetOrderListPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Order/GetOrderStatusNum": { + "post": { + "tags": [ + "Order" + ], + "summary": "获取订单不同状态的数量 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/GetOrderStatusNumPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetOrderStatusNumPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetOrderStatusNumPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/GetOrderStatusNumPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Order/GetShip": { + "post": { + "tags": [ + "Order" + ], + "summary": "获取配送方式列表 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Order/GetTaxCode": { + "post": { + "tags": [ + "Order" + ], + "summary": "发票模糊查询 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/GetTaxCodePost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTaxCodePost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetTaxCodePost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/GetTaxCodePost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Order/LogisticsByApi": { + "post": { + "tags": [ + "Order" + ], + "summary": "前台物流查询接口 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMApiLogisticsByApiPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMApiLogisticsByApiPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMApiLogisticsByApiPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMApiLogisticsByApiPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Order/OrderConfirm": { + "post": { + "tags": [ + "Order" + ], + "summary": "确认签收订单 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Order/OrderDetails": { + "post": { + "tags": [ + "Order" + ], + "summary": "订单预览 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Order/SendReship": { + "post": { + "tags": [ + "Order" + ], + "summary": "提交售后发货快递信息 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMBillReshipForSendReshipPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMBillReshipForSendReshipPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMBillReshipForSendReshipPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMBillReshipForSendReshipPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Page/GetPageConfig": { + "post": { + "tags": [ + "Page" + ], + "summary": "获取页面布局数据", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMWxPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMWxPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMWxPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMWxPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Page/GetRecod": { + "post": { + "tags": [ + "Page" + ], + "summary": "获取用户购买记录", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMGetRecodPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMGetRecodPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMGetRecodPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMGetRecodPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Payments/CheckPay": { + "post": { + "tags": [ + "Payments" + ], + "summary": "支付确认页面取信息 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/CheckPayPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/CheckPayPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/CheckPayPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/CheckPayPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Payments/GetInfo": { + "post": { + "tags": [ + "Payments" + ], + "summary": "获取支付单详情 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Payments/GetList": { + "post": { + "tags": [ + "Payments" + ], + "summary": "获取支付方式列表", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/PinTuan/GetGoodsInfo": { + "post": { + "tags": [ + "PinTuan" + ], + "summary": "获取拼团商品信息", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/PinTuan/GetList": { + "post": { + "tags": [ + "PinTuan" + ], + "summary": "拼团列表", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/PinTuan/GetPinTuanTeam": { + "post": { + "tags": [ + "PinTuan" + ], + "summary": "根据订单id取拼团信息,用在订单详情页", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMGetPinTuanTeamPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMGetPinTuanTeamPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMGetPinTuanTeamPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMGetPinTuanTeamPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/PinTuan/GetProductInfo": { + "post": { + "tags": [ + "PinTuan" + ], + "summary": "获取货品信息", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMGetProductInfo" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMGetProductInfo" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMGetProductInfo" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMGetProductInfo" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Service/AddServiceOrder": { + "post": { + "tags": [ + "Service" + ], + "summary": "取得服务卡列表信息 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Service/GetDetails": { + "post": { + "tags": [ + "Service" + ], + "summary": "获取服务卡详情", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Service/GetPageList": { + "post": { + "tags": [ + "Service" + ], + "summary": "取得服务卡列表信息", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Service/GetTicketInfo": { + "post": { + "tags": [ + "Service" + ], + "summary": "获取单个提货单详情 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Service/LogDelete": { + "post": { + "tags": [ + "Service" + ], + "summary": "软删除服务券核销单数据 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Service/VerificationPageList": { + "post": { + "tags": [ + "Service" + ], + "summary": "店铺核销的服务券列表 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Service/VerificationTicket": { + "post": { + "tags": [ + "Service" + ], + "summary": "核销服务券 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Store/GetDefaultStore": { + "post": { + "tags": [ + "Store" + ], + "summary": "获取默认的门店", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Store/GetOrderPageByMerchant": { + "post": { + "tags": [ + "Store" + ], + "summary": "获取个人订单列表 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/GetOrderPageByMerchantPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetOrderPageByMerchantPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetOrderPageByMerchantPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/GetOrderPageByMerchantPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Store/GetOrderPageByMerchantSearch": { + "post": { + "tags": [ + "Store" + ], + "summary": "搜索订单 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/GetOrderPageByMerchantSearcgPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetOrderPageByMerchantSearcgPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetOrderPageByMerchantSearcgPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/GetOrderPageByMerchantSearcgPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Store/GetRecommendKeys": { + "post": { + "tags": [ + "Store" + ], + "summary": "获取推荐关键词", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Store/GetStoreById": { + "post": { + "tags": [ + "Store" + ], + "summary": "根据序列获取门店数据", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Store/GetStoreByUserId": { + "post": { + "tags": [ + "Store" + ], + "summary": "根据用户序列获取门店数据 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Store/GetStoreList": { + "post": { + "tags": [ + "Store" + ], + "summary": "获取门店列表数据", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMGetStoreQueryPageByCoordinate" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMGetStoreQueryPageByCoordinate" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMGetStoreQueryPageByCoordinate" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMGetStoreQueryPageByCoordinate" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Store/GetStoreSwitch": { + "post": { + "tags": [ + "Store" + ], + "summary": "判断是否开启门店自提", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/Store/IsClerk": { + "post": { + "tags": [ + "Store" + ], + "summary": "判断访问用户是否是店员 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Store/Lading": { + "post": { + "tags": [ + "Store" + ], + "summary": "核销订单 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Store/LadingDelete": { + "post": { + "tags": [ + "Store" + ], + "summary": "删除提货单数据 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Store/LadingInfo": { + "post": { + "tags": [ + "Store" + ], + "summary": "获取单个提货单详情 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/Store/StoreLadingList": { + "post": { + "tags": [ + "Store" + ], + "summary": "店铺提货单列表 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/AddBankCards": { + "post": { + "tags": [ + "User" + ], + "summary": "添加银行卡 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/CoreCmsUserBankCard" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/CoreCmsUserBankCard" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/CoreCmsUserBankCard" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/CoreCmsUserBankCard" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/AddGoodsBrowsing": { + "post": { + "tags": [ + "User" + ], + "summary": "添加商品浏览足迹 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/Cash": { + "post": { + "tags": [ + "User" + ], + "summary": "提现申请 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/CashList": { + "post": { + "tags": [ + "User" + ], + "summary": "提现记录列表 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/ChangeAvatar": { + "post": { + "tags": [ + "User" + ], + "summary": "更换头像 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/DecodeEncryptedData": { + "post": { + "tags": [ + "User" + ], + "summary": "核验数据并获取用户详细资料", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMWxLoginDecodeEncryptedData" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMWxLoginDecodeEncryptedData" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMWxLoginDecodeEncryptedData" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMWxLoginDecodeEncryptedData" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/User/DecryptPhoneNumber": { + "post": { + "tags": [ + "User" + ], + "summary": "微信小程序授权拉取手机号码", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMWxLoginDecryptPhoneNumber" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMWxLoginDecryptPhoneNumber" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMWxLoginDecryptPhoneNumber" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMWxLoginDecryptPhoneNumber" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/User/DelGoodsBrowsing": { + "post": { + "tags": [ + "User" + ], + "summary": "删除商品浏览足迹 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/DeShare": { + "post": { + "tags": [ + "User" + ], + "summary": "统一分享解码", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMDeShare" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMDeShare" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMDeShare" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMDeShare" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/User/EditInfo": { + "post": { + "tags": [ + "User" + ], + "summary": "编辑用户信息 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/EditInfoPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/EditInfoPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/EditInfoPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/EditInfoPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/EditPwd": { + "post": { + "tags": [ + "User" + ], + "summary": "修改用户密码 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/EditPwdPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/EditPwdPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/EditPwdPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/EditPwdPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/ForgetPwd": { + "post": { + "tags": [ + "User" + ], + "summary": "用户找回密码 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMForgetPwdPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMForgetPwdPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMForgetPwdPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMForgetPwdPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/GetAreaId": { + "post": { + "tags": [ + "User" + ], + "summary": "获取区域ID", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/GetAreaIdPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetAreaIdPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetAreaIdPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/GetAreaIdPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/User/GetBankCardInfo": { + "post": { + "tags": [ + "User" + ], + "summary": "获取银行卡信息 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/GetBankCardsOrganization": { + "post": { + "tags": [ + "User" + ], + "summary": "获取银行卡组织信息 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMStringId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/GetCartNumber": { + "post": { + "tags": [ + "User" + ], + "summary": "获取购物车商品数量 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/GetDefaultBankCard": { + "post": { + "tags": [ + "User" + ], + "summary": "获取用户默认银行卡信息 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/GetMyBankcardsList": { + "post": { + "tags": [ + "User" + ], + "summary": "我的银行卡列表 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/GetMyChildSum": { + "post": { + "tags": [ + "User" + ], + "summary": "获取我的下级用户数量 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/GetMyInvite": { + "post": { + "tags": [ + "User" + ], + "summary": "获取我的上级邀请人 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/GetServicesPageList": { + "post": { + "tags": [ + "User" + ], + "summary": "取得服务卡列表信息 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/GetServicesTickets": { + "post": { + "tags": [ + "User" + ], + "summary": "取得服务卡列表信息 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByStringId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByStringId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByStringId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByStringId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/GetShipDetail": { + "post": { + "tags": [ + "User" + ], + "summary": "获取用户单个地址详情 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/GetUserDefaultShip": { + "post": { + "tags": [ + "User" + ], + "summary": "获取用户获取用户默认收货地址 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/GetUserInfo": { + "post": { + "tags": [ + "User" + ], + "summary": "获取用户信息 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/GetUserPoint": { + "post": { + "tags": [ + "User" + ], + "summary": "判断用户下单可以使用多少积分 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/GetUserPointPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetUserPointPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/GetUserPointPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/GetUserPointPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/GetUserShip": { + "post": { + "tags": [ + "User" + ], + "summary": "获取用户的收货地址列表 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/Goodsbrowsing": { + "post": { + "tags": [ + "User" + ], + "summary": "取得商品浏览足迹 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/GoodsCollection": { + "post": { + "tags": [ + "User" + ], + "summary": "添加商品收藏(关注) (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/GoodsCollectionCreateOrDelete": { + "post": { + "tags": [ + "User" + ], + "summary": "商品取消/添加收藏 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/GoodsCollectionList": { + "post": { + "tags": [ + "User" + ], + "summary": "取得商品收藏记录(关注) (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/IsPoint": { + "post": { + "tags": [ + "User" + ], + "summary": "判断是否开启积分", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/User/IsSign": { + "post": { + "tags": [ + "User" + ], + "summary": "判断是否签到 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/LogOut": { + "post": { + "tags": [ + "User" + ], + "summary": "注销登录", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/User/MyInvite": { + "post": { + "tags": [ + "User" + ], + "summary": "邀请好友(获取我的要求相关信息) (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/OnLogin": { + "post": { + "tags": [ + "User" + ], + "summary": "wx.login登陆成功之后发送的请求", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMWxPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMWxPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMWxPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMWxPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/User/OrderEvaluate": { + "post": { + "tags": [ + "User" + ], + "summary": "订单评价 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/OrderEvaluatePost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/OrderEvaluatePost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/OrderEvaluatePost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/OrderEvaluatePost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/Pay": { + "post": { + "tags": [ + "User" + ], + "summary": "支付 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/PayPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/PayPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/PayPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/PayPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/Recommend": { + "post": { + "tags": [ + "User" + ], + "summary": "获取用户推荐列表 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/Removebankcard": { + "post": { + "tags": [ + "User" + ], + "summary": "删除银行卡信息 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/RemoveShip": { + "post": { + "tags": [ + "User" + ], + "summary": "收货地址删除 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/SaveUserShip": { + "post": { + "tags": [ + "User" + ], + "summary": "保存用户地址 (Auth)", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/SaveUserShipPost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/SaveUserShipPost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/SaveUserShipPost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/SaveUserShipPost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/SendSms": { + "post": { + "tags": [ + "User" + ], + "summary": "用户短信发送", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMWxSendSMS" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMWxSendSMS" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMWxSendSMS" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMWxSendSMS" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/User/SetDefaultBankCard": { + "post": { + "tags": [ + "User" + ], + "summary": "设置默认银行卡 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/SetDefShip": { + "post": { + "tags": [ + "User" + ], + "summary": "设置默认地址 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/SetMyInvite": { + "post": { + "tags": [ + "User" + ], + "summary": "设置我的上级邀请人 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/Share": { + "post": { + "tags": [ + "User" + ], + "summary": "统一分享url处理\r\n新的分享,不管是二维码,还是地址,都走这个\r\npage\t场景值\t\t1店铺首页,2商品详情页,3拼团详情页,4邀请好友(店铺页面,params里需要传store),5文章页面,6参团页面,7自定义页面,8智能表单,9团购,10秒杀,11代理\r\nurl:前端地址\r\nparams:参数,根据场景值不一样而内容不一样\r\n1\r\n2 goodsId:商品ID\r\n3 goodsId:商品ID,teamId:拼团ID\r\n4 store:店铺code\r\n5 articleId:文章ID,articleType:文章类型\r\n6 goodsId:商品ID,groupId:参团ID,teamId:拼团ID\r\n7 pageCode:自定义页面code\r\n8 id:智能表单ID\r\n9 goodsId:商品ID,groupId:团购秒杀ID\r\n type\t类型,1url,2二维码,3海报\r\n token\t可以保存推荐人的信息\r\n client\t终端,1普通h5,2微信小程序,3微信公众号(h5),4头条系小程序,5pc,6阿里小程序\r\n10 store:店铺code", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMShare" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMShare" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMShare" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMShare" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/User/ShareCode": { + "post": { + "tags": [ + "User" + ], + "summary": "获取用户邀请码 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/Sign": { + "post": { + "tags": [ + "User" + ], + "summary": "用户签到 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/SmsLogin": { + "post": { + "tags": [ + "User" + ], + "summary": "手机短信验证码登陆,同时兼有手机短信注册的功能,还有第三方账户绑定的功能", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMWxAccountCreate" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMWxAccountCreate" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMWxAccountCreate" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMWxAccountCreate" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + } + } + }, + "/api/User/SmsLogin2": { + "post": { + "tags": [ + "User" + ], + "summary": "用户短信注册并返回jwt token(弃用)", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMWxAccountCreate" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMWxAccountCreate" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMWxAccountCreate" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMWxAccountCreate" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + } + }, + "deprecated": true + } + }, + "/api/User/SyncWeChatInfo": { + "post": { + "tags": [ + "User" + ], + "summary": "同步微信用户数据 (Auth)", + "requestBody": { + "description": "", + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMWxSync" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMWxSync" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMWxSync" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMWxSync" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/UserBalance": { + "post": { + "tags": [ + "User" + ], + "summary": "获取我的余额明细列表 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMGetBalancePost" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMGetBalancePost" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMGetBalancePost" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMGetBalancePost" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/UserInvoiceList": { + "post": { + "tags": [ + "User" + ], + "summary": "我的发票列表 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/User/UserPointLog": { + "post": { + "tags": [ + "User" + ], + "summary": "我的积分列表 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/FMPageByIntId" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/WeChatAppletsMessage/CloseTip": { + "post": { + "tags": [ + "WeChatAppletsMessage" + ], + "summary": "用户取消订阅 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/WeChatAppletsMessage/IsTip": { + "post": { + "tags": [ + "WeChatAppletsMessage" + ], + "summary": "获取用户是否订阅 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/WeChatAppletsMessage/SetTip": { + "post": { + "tags": [ + "WeChatAppletsMessage" + ], + "summary": "设置订阅信息 (Auth)", + "requestBody": { + "content": { + "application/json-patch+json": { + "schema": { + "$ref": "#/components/schemas/SetWeChatAppletsMessageTip" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetWeChatAppletsMessageTip" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/SetWeChatAppletsMessageTip" + } + }, + "application/*+json": { + "schema": { + "$ref": "#/components/schemas/SetWeChatAppletsMessageTip" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + }, + "/api/WeChatAppletsMessage/Tmpl": { + "post": { + "tags": [ + "WeChatAppletsMessage" + ], + "summary": "获取订阅模板 (Auth)", + "responses": { + "200": { + "description": "Success", + "content": { + "text/plain": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + }, + "text/json": { + "schema": { + "$ref": "#/components/schemas/WebApiCallBack" + } + } + } + }, + "401": { + "description": "Unauthorized" + }, + "403": { + "description": "Forbidden" + } + }, + "security": [ + { + "oauth2": [ ] + } + ] + } + } + }, + "components": { + "schemas": { + "CheckPayPost": { + "type": "object", + "properties": { + "ids": { + "type": "string", + "nullable": true + }, + "params": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/JToken" + }, + "nullable": true + }, + "paymentType": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "CoreCmsUserBankCard": { + "required": [ + "bankAreaId", + "cardType", + "createTime", + "id", + "isdefault", + "userId" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "userId": { + "type": "integer", + "format": "int32" + }, + "bankName": { + "maxLength": 60, + "minLength": 0, + "type": "string", + "nullable": true + }, + "bankCode": { + "maxLength": 12, + "minLength": 0, + "type": "string", + "nullable": true + }, + "bankAreaId": { + "type": "integer", + "format": "int32" + }, + "accountBank": { + "maxLength": 255, + "minLength": 0, + "type": "string", + "nullable": true + }, + "accountName": { + "maxLength": 60, + "minLength": 0, + "type": "string", + "nullable": true + }, + "cardNumber": { + "maxLength": 30, + "minLength": 0, + "type": "string", + "nullable": true + }, + "cardType": { + "type": "integer", + "format": "int32" + }, + "isdefault": { + "type": "boolean" + }, + "createTime": { + "type": "string", + "format": "date-time" + }, + "updateTime": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "bankAreaName": { + "type": "string", + "nullable": true + }, + "cardTypeName": { + "type": "string", + "nullable": true + }, + "bankLogo": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "CreateOrder": { + "type": "object", + "properties": { + "areaId": { + "type": "integer", + "format": "int32" + }, + "cartIds": { + "type": "string", + "nullable": true + }, + "couponCode": { + "type": "string", + "nullable": true + }, + "memo": { + "type": "string", + "nullable": true + }, + "point": { + "type": "integer", + "format": "int32" + }, + "receiptType": { + "type": "integer", + "format": "int32" + }, + "source": { + "type": "integer", + "format": "int32" + }, + "taxCode": { + "type": "string", + "nullable": true + }, + "taxName": { + "type": "string", + "nullable": true + }, + "taxType": { + "type": "integer", + "format": "int32" + }, + "ushipId": { + "type": "integer", + "format": "int32" + }, + "storeId": { + "type": "integer", + "format": "int32" + }, + "orderType": { + "type": "integer", + "format": "int32" + }, + "ladingName": { + "type": "string", + "nullable": true + }, + "ladingMobile": { + "type": "string", + "nullable": true + }, + "objectId": { + "type": "integer", + "format": "int32" + }, + "teamId": { + "type": "integer", + "format": "int32" + }, + "scene": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "EditInfoPost": { + "type": "object", + "properties": { + "birthday": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "nickname": { + "type": "string", + "nullable": true + }, + "sex": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "EditPwdPost": { + "type": "object", + "properties": { + "newpwd": { + "type": "string", + "nullable": true + }, + "repwd": { + "type": "string", + "nullable": true + }, + "pwd": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMAgentApply": { + "type": "object", + "properties": { + "agreement": { + "type": "string", + "nullable": true + }, + "mobile": { + "type": "string", + "nullable": true + }, + "name": { + "type": "string", + "nullable": true + }, + "qq": { + "type": "string", + "nullable": true + }, + "weixin": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMApiLogisticsByApiPost": { + "type": "object", + "properties": { + "code": { + "type": "string", + "nullable": true + }, + "no": { + "type": "string", + "nullable": true + }, + "mobile": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMBillReshipForSendReshipPost": { + "type": "object", + "properties": { + "logiCode": { + "type": "string", + "nullable": true + }, + "logiNo": { + "type": "string", + "nullable": true + }, + "reshipId": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMCartAdd": { + "type": "object", + "properties": { + "nums": { + "type": "integer", + "format": "int32" + }, + "productId": { + "type": "integer", + "format": "int32" + }, + "type": { + "type": "integer", + "format": "int32" + }, + "cartType": { + "type": "integer", + "format": "int32" + }, + "objectId": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "FMCartGetList": { + "type": "object", + "properties": { + "userId": { + "type": "integer", + "format": "int32" + }, + "ids": { + "type": "string", + "nullable": true + }, + "type": { + "type": "integer", + "format": "int32" + }, + "areaId": { + "type": "integer", + "format": "int32" + }, + "point": { + "type": "integer", + "format": "int32" + }, + "couponCode": { + "type": "string", + "nullable": true + }, + "receiptType": { + "type": "integer", + "format": "int32" + }, + "objectId": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "FMCouponForGetCouponKeyPost": { + "type": "object", + "properties": { + "key": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMCouponForUserCouponPost": { + "type": "object", + "properties": { + "page": { + "type": "integer", + "format": "int32" + }, + "limit": { + "type": "integer", + "format": "int32" + }, + "display": { + "type": "string", + "nullable": true + }, + "ids": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMDeShare": { + "type": "object", + "properties": { + "code": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMDistributionApply": { + "type": "object", + "properties": { + "agreement": { + "type": "string", + "nullable": true + }, + "mobile": { + "type": "string", + "nullable": true + }, + "name": { + "type": "string", + "nullable": true + }, + "qq": { + "type": "string", + "nullable": true + }, + "weixin": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMForgetPwdPost": { + "type": "object", + "properties": { + "mobile": { + "type": "string", + "nullable": true + }, + "code": { + "type": "string", + "nullable": true + }, + "newpwd": { + "type": "string", + "nullable": true + }, + "repwd": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMGetBalancePost": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "page": { + "type": "integer", + "format": "int32" + }, + "limit": { + "type": "integer", + "format": "int32" + }, + "propsDate": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMGetGoodsDetial": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "groupId": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "FMGetPinTuanTeamPost": { + "type": "object", + "properties": { + "orderId": { + "type": "string", + "nullable": true + }, + "teamId": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "FMGetProductInfo": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "type": { + "type": "string", + "nullable": true + }, + "groupId": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "FMGetRecodPost": { + "type": "object", + "properties": { + "type": { + "type": "string", + "nullable": true + }, + "value": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "FMGetStoreQueryPageByCoordinate": { + "type": "object", + "properties": { + "longitude": { + "type": "number", + "format": "double" + }, + "latitude": { + "type": "number", + "format": "double" + }, + "key": { + "type": "string", + "nullable": true + }, + "page": { + "type": "integer", + "format": "int32" + }, + "limit": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "FMGroupGetListPost": { + "type": "object", + "properties": { + "type": { + "type": "integer", + "format": "int32" + }, + "page": { + "type": "integer", + "format": "int32" + }, + "limit": { + "type": "integer", + "format": "int32" + }, + "status": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "FMIntId": { + "required": [ + "id" + ], + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "data": { + "nullable": true + } + }, + "additionalProperties": false + }, + "FMPageByIntId": { + "type": "object", + "properties": { + "otherData": { + "nullable": true + }, + "id": { + "type": "integer", + "format": "int32" + }, + "page": { + "type": "integer", + "format": "int32" + }, + "limit": { + "type": "integer", + "format": "int32" + }, + "order": { + "type": "string", + "nullable": true + }, + "where": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMPageByStringId": { + "type": "object", + "properties": { + "id": { + "type": "string", + "nullable": true + }, + "page": { + "type": "integer", + "format": "int32" + }, + "limit": { + "type": "integer", + "format": "int32" + }, + "order": { + "type": "string", + "nullable": true + }, + "where": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMPageByWhereOrder": { + "type": "object", + "properties": { + "page": { + "type": "integer", + "format": "int32" + }, + "limit": { + "type": "integer", + "format": "int32" + }, + "order": { + "type": "string", + "nullable": true + }, + "where": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMSetAgentStorePost": { + "type": "object", + "properties": { + "storeBanner": { + "type": "string", + "nullable": true + }, + "storeDesc": { + "type": "string", + "nullable": true + }, + "storeLogo": { + "type": "string", + "nullable": true + }, + "storeName": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMSetCartNum": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "nums": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "FMSetDistributionStorePost": { + "type": "object", + "properties": { + "storeBanner": { + "type": "string", + "nullable": true + }, + "storeDesc": { + "type": "string", + "nullable": true + }, + "storeLogo": { + "type": "string", + "nullable": true + }, + "storeName": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMShare": { + "type": "object", + "properties": { + "page": { + "type": "integer", + "format": "int32" + }, + "url": { + "type": "string", + "nullable": true + }, + "params": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/JToken" + }, + "nullable": true + }, + "type": { + "type": "integer", + "format": "int32" + }, + "client": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "FMStringId": { + "type": "object", + "properties": { + "id": { + "type": "string", + "nullable": true + }, + "data": { + "nullable": true + } + }, + "additionalProperties": false + }, + "FMWxAccountCreate": { + "type": "object", + "properties": { + "password": { + "type": "string", + "nullable": true + }, + "nickname": { + "type": "string", + "nullable": true + }, + "avatar": { + "type": "string", + "nullable": true + }, + "code": { + "type": "string", + "nullable": true + }, + "mobile": { + "type": "string", + "nullable": true + }, + "sessionAuthId": { + "type": "string", + "nullable": true + }, + "platform": { + "type": "integer", + "format": "int32" + }, + "invitecode": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "FMWxLoginDecodeEncryptedData": { + "type": "object", + "properties": { + "encryptedData": { + "type": "string", + "nullable": true + }, + "iv": { + "type": "string", + "nullable": true + }, + "signature": { + "type": "string", + "nullable": true + }, + "sessionAuthId": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMWxLoginDecryptPhoneNumber": { + "type": "object", + "properties": { + "encryptedData": { + "type": "string", + "nullable": true + }, + "iv": { + "type": "string", + "nullable": true + }, + "sessionAuthId": { + "type": "string", + "nullable": true + }, + "invitecode": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "FMWxPost": { + "type": "object", + "properties": { + "code": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMWxSendSMS": { + "type": "object", + "properties": { + "code": { + "type": "string", + "nullable": true + }, + "mobile": { + "type": "string", + "nullable": true + }, + "method": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FMWxSync": { + "type": "object", + "properties": { + "avatarUrl": { + "type": "string", + "nullable": true + }, + "city": { + "type": "string", + "nullable": true + }, + "country": { + "type": "string", + "nullable": true + }, + "gender": { + "type": "integer", + "format": "int32" + }, + "language": { + "type": "string", + "nullable": true + }, + "nickName": { + "type": "string", + "nullable": true + }, + "province": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FmAddSubmit": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "token": { + "type": "string", + "nullable": true + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FmAddSubmitItems" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "FmAddSubmitItems": { + "type": "object", + "properties": { + "key": { + "type": "integer", + "format": "int32" + }, + "value": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "FmGetForm": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "token": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "GetAreaIdPost": { + "type": "object", + "properties": { + "cityName": { + "type": "string", + "nullable": true + }, + "countyName": { + "type": "string", + "nullable": true + }, + "provinceName": { + "type": "string", + "nullable": true + }, + "postalCode": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "GetOrderListPost": { + "type": "object", + "properties": { + "limit": { + "type": "integer", + "format": "int32" + }, + "page": { + "type": "integer", + "format": "int32" + }, + "status": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "GetOrderPageByMerchantPost": { + "type": "object", + "properties": { + "dateType": { + "type": "string", + "nullable": true + }, + "date": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true + }, + "limit": { + "type": "integer", + "format": "int32" + }, + "page": { + "type": "integer", + "format": "int32" + }, + "status": { + "type": "integer", + "format": "int32" + }, + "receiptType": { + "type": "integer", + "format": "int32" + }, + "storeId": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "GetOrderPageByMerchantSearcgPost": { + "type": "object", + "properties": { + "keyword": { + "type": "string", + "nullable": true + }, + "limit": { + "type": "integer", + "format": "int32" + }, + "page": { + "type": "integer", + "format": "int32" + }, + "status": { + "type": "integer", + "format": "int32" + }, + "receiptType": { + "type": "integer", + "format": "int32" + }, + "storeId": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "GetOrderStatusNumPost": { + "type": "object", + "properties": { + "ids": { + "type": "string", + "nullable": true + }, + "isAfterSale": { + "type": "boolean" + } + }, + "additionalProperties": false + }, + "GetTaxCodePost": { + "type": "object", + "properties": { + "name": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "GetUserPointPost": { + "type": "object", + "properties": { + "orderMoney": { + "type": "number", + "format": "double" + } + }, + "additionalProperties": false + }, + "JToken": { + "type": "array", + "items": { + "$ref": "#/components/schemas/JToken" + } + }, + "OrderEvaluatePost": { + "type": "object", + "properties": { + "orderId": { + "type": "string", + "nullable": true + }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OrderEvaluatePostItems" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "OrderEvaluatePostItems": { + "type": "object", + "properties": { + "images": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true + }, + "orderItemId": { + "type": "integer", + "format": "int32" + }, + "score": { + "type": "integer", + "format": "int32" + }, + "textarea": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "PayPost": { + "type": "object", + "properties": { + "ids": { + "type": "string", + "nullable": true + }, + "payment_code": { + "type": "string", + "nullable": true + }, + "payment_type": { + "type": "integer", + "format": "int32" + }, + "params": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/JToken" + }, + "nullable": true + } + }, + "additionalProperties": false + }, + "SaveUserShipPost": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int32" + }, + "address": { + "type": "string", + "nullable": true + }, + "areaId": { + "type": "integer", + "format": "int32" + }, + "isDefault": { + "type": "integer", + "format": "int32" + }, + "mobile": { + "type": "string", + "nullable": true + }, + "name": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "SetWeChatAppletsMessageTip": { + "type": "object", + "properties": { + "templateId": { + "type": "string", + "nullable": true + }, + "status": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + }, + "ToAddBillAfterSalesPost": { + "type": "object", + "properties": { + "orderId": { + "type": "string", + "nullable": true + }, + "type": { + "type": "integer", + "format": "int32" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/JToken" + }, + "nullable": true + }, + "images": { + "type": "array", + "items": { + "type": "string" + }, + "nullable": true + }, + "reason": { + "type": "string", + "nullable": true + }, + "refund": { + "type": "number", + "format": "double" + } + }, + "additionalProperties": false + }, + "WebApiCallBack": { + "type": "object", + "properties": { + "methodDescription": { + "type": "string", + "nullable": true + }, + "otherData": { + "nullable": true + }, + "status": { + "type": "boolean" + }, + "msg": { + "type": "string", + "nullable": true + }, + "data": { + "nullable": true + }, + "code": { + "type": "integer", + "format": "int32" + } + }, + "additionalProperties": false + }, + "WxAdvert": { + "type": "object", + "properties": { + "codes": { + "type": "string", + "nullable": true + } + }, + "additionalProperties": false + } + }, + "securitySchemes": { + "oauth2": { + "type": "apiKey", + "description": "JWT授权(数据将在请求头中进行传输) 直接在下框中输入Bearer {token}(注意两者之间是一个空格)\"", + "name": "Authorization", + "in": "header" + } + } + } +} \ No newline at end of file diff --git a/common/system/cacheService.js b/common/system/cacheService.js new file mode 100644 index 0000000..2d5c4ca --- /dev/null +++ b/common/system/cacheService.js @@ -0,0 +1,66 @@ +/** + * 设置缓存,持久化到本地 + * @param {String} key 缓存key + * @param {Object} value 缓存数据 + */ +export const setCache = (key, value) => { + uni.setStorageSync(key, value); +} + +/** + * 获取缓存 + * @param {String} key 缓存key + * @returns {Object} 缓存数据 + */ +export const getCache = (key) => { + return uni.getStorageSync(key); +} + +/** + * 删除缓存 + * @param {String} key 缓存key + */ +export const removeCache = (key) => { + uni.removeStorageSync(key); +} + +/** + * 本地缓存 + */ +let localCache = {}; + +/** + * 设置缓存,非持久化 + * @param {String} key 缓存key + * @param {Object} value 缓存数据 + * @param {Number} time 缓存时间,秒 + */ +export const setLocalStorage = (key, value, time = 0) => { + localCache[key] = { + value: value, + expireTime: time > 0 ? Date.now() + time * 1000 : 0, + createTime: Date.now() + } +} + +/** + * 获取缓存,非持久化 + * @param {String} key 缓存key + * @returns {Object} 缓存数据 + */ +export const getLocalStorage = (key) => { + if (localCache[key]) { + if (localCache[key].expireTime > 0 && localCache[key].expireTime > Date.now()) { + return localCache[key].value; + } + } + return null; +} + +/** + * 删除缓存,非持久化 + * @param {String} key 缓存key + */ +export const removeLocalStorage = (key) => { + delete localCache[key]; +} \ No newline at end of file diff --git a/common/system/request.js b/common/system/request.js new file mode 100644 index 0000000..02bc89d --- /dev/null +++ b/common/system/request.js @@ -0,0 +1,204 @@ +/** + * 网络请求工具类 + * 封装统一的网络请求方法 + */ + +import EnvConfig from '@/common/env.js'; +import md5 from 'js-md5'; +import { getLocalStorage, setLocalStorage } from './cacheService'; +import qs from 'qs'; +class request { + /** + * 生成唯一的nonce值 + * @returns {String} nonce值 + */ + static generateNonce() { + return md5(Date.now() + Math.random().toString(36).substring(2, 15)); + } + + /** + * 创建签名 + * @param {Object} data 请求数据 + * @param {String} host 主机名 + * @returns {Object} 带签名的数据和参数字符串 + * @private + */ + static _createSignature(data, host) { + // 添加时间戳 + data.timestamp = Math.floor(Date.now() / 1000); + // 添加nonce随机字符串 + data.nonce = request.generateNonce(); + + // 按照键名对参数进行排序 + const sortedParams = {}; + Object.keys(data).sort().forEach(key => { + sortedParams[key] = data[key]; + }); + + // 组合参数为字符串 + let signStr = ''; + for (const key in sortedParams) { + if (typeof sortedParams[key] === 'object') { + signStr += key + '=' + JSON.stringify(sortedParams[key]) + '&'; + } else { + signStr += key + '=' + sortedParams[key] + '&'; + } + } + + // 获取时间戳,组合为密钥 + const timestamp = data.timestamp; + const appSecret = host + timestamp; + + // 添加密钥并去除最后的& + signStr = signStr.substring(0, signStr.length - 1) + appSecret; + + // 使用MD5生成签名 + const sign = md5(signStr); + data.sign = sign; + + return { data, signStr }; + } + + /** + * 构建请求URL + * @param {String} url 请求路径 + * @returns {Object} 包含请求URL和主机名的对象 + * @private + */ + static _buildRequestUrl(url) { + let requestUrl = ''; + + if (url.startsWith('http://') || url.startsWith('https://')) { + // 如果是完整的URL,直接使用 + requestUrl = url; + } else { + // 否则拼接基础URL和相对路径 + // 确保基础URL以/结尾,而请求路径不以/开头 + const apiBaseUrl = EnvConfig.apiBaseUrl; + const baseUrlWithSlash = apiBaseUrl.endsWith('/') ? apiBaseUrl : apiBaseUrl + '/'; + let routeMap = url; + const path = routeMap.startsWith('/') ? routeMap.substring(1) : routeMap; + requestUrl = baseUrlWithSlash + path; + } + + // 使用正则表达式从URL中提取主机名 + const hostRegex = /^(?:https?:\/\/)?([^\/]+)/i; + const matches = requestUrl.match(hostRegex); + const host = matches && matches[1] ? matches[1] : 'localhost'; + + return { requestUrl, host }; + } + + /** + * 发送请求 + * @param {String} url 请求地址 + * @param {Object} fromData 请求数据 + * @param {String} method 请求方式 + * @param {Boolean} showLoading 是否显示加载提示 + * @returns {Promise} 返回请求Promise + */ + static request(url, fromData = {}, method = 'POST', showLoading = false) { + return new Promise((resolve, reject) => { + // 使用传入的method而不是重新声明 + const requestMethod = method.toUpperCase(); + const token = uni.getStorageSync('token'); + let data = { ...fromData }; // 创建数据的深拷贝,避免修改原数据 + + // 构建请求URL和提取主机名 + const { requestUrl, host } = request._buildRequestUrl(url); + + // 显示加载提示 + if (showLoading) { + uni.showLoading({ + title: '正在加载中...', + mask: true + }); + } + + // 创建签名并准备请求数据和头信息 + const { data: signedData } = request._createSignature(data, host); + data = signedData; + // 根据请求方法设置不同的headers + const header = { + Authorization: 'Bearer ' + token, + 'content-type': 'application/json' + }; + + const startDate = Date.now(); + + // 发起网络请求 + uni.request({ + url: requestUrl, + method: requestMethod, + header: header, + data: data, + timeout: 30000, // 设置30秒超时 + success: res => { + const endDate = Date.now(); + console.log(requestUrl, "请求消耗时间", endDate - startDate); + resolve(res); + }, + fail: e => { + console.error('网络请求失败:', e); + uni.showToast({ + title: e.errMsg || '发送请求失败,请稍后再试!', + icon: 'none' + }); + reject(e); + }, + complete: () => { + if (showLoading) { + uni.hideLoading(); + } + } + }); + }); + } + + /** + * 发送GET请求 + * @param {String} url 请求地址 + * @param {Object} data 请求参数 + * @param {Boolean} showLoading 是否显示加载提示 + * @returns {Promise} 返回请求Promise + */ + static get(url, data = {}, showLoading = false) { + return request.request(url, data, 'GET', showLoading); + } + + /** + * 发送POST请求 + * @param {String} url 请求地址 + * @param {Object} data 请求参数 + * @param {Boolean} showLoading 是否显示加载提示 + * @returns {Promise} 返回请求Promise + */ + static post(url, data = {}, showLoading = false) { + return request.request(url, data, 'POST', showLoading); + } + + /** + * 发送get请求,如果缓存存在,则返回缓存数据,否则发送请求,并缓存数据 + * @param {String} url 请求地址 + * @param {Object} data 请求参数 + * @param {Number} time 缓存时间,秒 + * @param {Boolean} showLoading 是否显示加载提示 + * @returns {Promise} 返回请求Promise + */ + static async getOrCache(url, data = {}, time = 300, showLoading = false) { + const cacheKey = 'cache_' + url + '_' + qs.stringify(data); + // console.log('getOrCache', cacheKey, '查询缓存'); + const cacheData = getLocalStorage(cacheKey); + if (cacheData) { + console.log('getOrCache', cacheKey, '缓存命中'); + return cacheData; + } + + const res = await request.request(url, data, 'GET', showLoading); + setLocalStorage(cacheKey, res, time); + return res; + } + +} + +export default request; \ No newline at end of file diff --git a/common/system/router.js b/common/system/router.js new file mode 100644 index 0000000..c3c35bd --- /dev/null +++ b/common/system/router.js @@ -0,0 +1,33 @@ +export const navigateTo = (url) => { + uni.navigateTo({ + url: url, + fail: (err) => { + console.log('err', err); + + uni.switchTab({ + url: url + }); + + } + }); +} + +/** + * 跳转登录页面 + * @param {String} page 跳转页面 + */ +export const navigateToAccountLogin = (page = "") => { + if (page == "") { + const _page = getCurrentPages()[0]; + page = _page.route; + } + // navigateTo(`/pages/me/account-login?page=${encodeURIComponent(page)}`); +} + +/** + * 跳转协议页面 + * @param {String} type 协议类型 + */ +export const navigateToAgreement = (type) => { + // navigateTo(`/pages/other/agreement?type=${type}`); +}; \ No newline at end of file diff --git a/common/system/system.js b/common/system/system.js new file mode 100644 index 0000000..3f8e249 --- /dev/null +++ b/common/system/system.js @@ -0,0 +1,38 @@ +import { getHomePage } from '@/common/server/home' +import { getConfig } from '@/common/server/config'; +/** + * 应用初始化函数,带有超时控制 + * @param {number} timeoutMs - 超时时间(毫秒) + * @returns {Promise} - 返回Promise,true表示初始化成功,false表示失败 + */ +export const appInit = async (timeoutMs = 5000) => { + try { + //获取系统配置 + const getConfigTask = getConfig(); + //获取首页关键数据 + const homeTask = getHomePage(); + + // 2. 创建一个会在指定时间后拒绝的Promise用于超时控制 + const timeoutPromise = new Promise((_, reject) => + setTimeout(() => + // 当超时触发时,拒绝Promise并返回超时错误 + reject(new Error(`初始化获取超时 (${timeoutMs}ms)`)), + timeoutMs + ) + ); + // 3. 使用Promise.race让首页获取数据和超时Promise"赛跑" + // 哪个先完成(成功或失败)就采用哪个的结果 + await Promise.race([ + // 使用Promise.all包装是为了保持一致性 + Promise.all([getConfigTask, homeTask]), + timeoutPromise + ]); + // 4. 如果没有超时全部获取成功,返回true + return true; + } catch (error) { + // 5. 错误处理(可能是超时错误或首页获取失败) + console.error('初始化任务失败:', error); + // 6. 返回false表示初始化失败 + return false; + } +} \ No newline at end of file diff --git a/common/utils.js b/common/utils.js index 4fcfad5..299f28e 100644 --- a/common/utils.js +++ b/common/utils.js @@ -109,3 +109,20 @@ export function hideLoading() { }); }); } + + +let os = ''; +/** + * + */ +export function getOS() { + if (os != '') { + return os; + } + // #ifdef APP-PLUS + const systemInfo = uni.getSystemInfoSync(); + return systemInfo.platform === 'ios' ? 'ios' : 'android'; + // #endif + + return 'mp'; +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index fbfc878..603508e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "@dcloudio/uni-ui": "^1.5.7", "crypto-js": "^4.2.0", "js-md5": "^0.8.3", + "lodash": "^4.17.21", "qs": "^6.14.0" }, "devDependencies": { @@ -685,6 +686,12 @@ "url": "https://github.com/sponsors/antfu" } }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "license": "MIT" + }, "node_modules/magic-string": { "version": "0.30.17", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", diff --git a/package.json b/package.json index ba670df..5d15541 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "@dcloudio/uni-ui": "^1.5.7", "crypto-js": "^4.2.0", "js-md5": "^0.8.3", + "lodash": "^4.17.21", "qs": "^6.14.0" }, "devDependencies": { diff --git a/pages.json b/pages.json index ab7a75f..3f0b147 100644 --- a/pages.json +++ b/pages.json @@ -1,18 +1,17 @@ { "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - + { + "path": "pages/index/index", + "style": { + "navigationStyle": "custom" + } + }, { "path": "pages/home/home-page", "style": { "navigationStyle": "custom", "navigationBarTitleText": "" } - }, { - "path": "pages/index/index", - "style": { - "navigationStyle": "custom", - "navigationBarTitleText": "" - } }, { "path": "pages/bags/bags-page", @@ -78,7 +77,6 @@ "backgroundColor": "#F8F8F8" }, "uniIdRouter": {}, - "tabBar": { "color": "#FFFDF1", "selectedColor": "#333333", diff --git a/pages/index/index.vue b/pages/index/index.vue index d9d5dc9..90376dd 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,32 +1,49 @@ - diff --git a/static/bg.png b/static/bg.png new file mode 100644 index 0000000..a5b63fc Binary files /dev/null and b/static/bg.png differ diff --git a/vite.config.js b/vite.config.js index 4fcb354..9e8ed87 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,101 +1,92 @@ import { - defineConfig + defineConfig } from 'vite'; import uni from "@dcloudio/vite-plugin-uni"; import AutoImport from 'unplugin-auto-import/vite'; import Components from 'unplugin-vue-components/vite'; export default defineConfig({ - build: { - minify: 'terser', - // assetsInlineLimit: 0, // 禁止将图片转成 import - terserOptions: { - compress: { - drop_console: true, - }, - }, - }, - plugins: [ - uni(), - { - name: 'transform-assets', - enforce: 'pre', // 在 Vue 插件之前执行 - transform(code, id) { + build: { + minify: 'terser', + // assetsInlineLimit: 0, // 禁止将图片转成 import + terserOptions: { + compress: { + drop_console: true, + }, + }, + }, + plugins: [ + uni(), + { + name: 'transform-assets', + enforce: 'pre', // 在 Vue 插件之前执行 + transform(code, id) { - if (/\.(vue|js|ts|css|scss|json)$/.test(id)) { - let count = 0 - const replacedCode = code.replace( - /@@:([^\s"'()<>]+?\.(png|jpe?g|gif|svg|webp))/g, - (match, path) => { - count++ - return `https://guyu-1308826010.cos.ap-shanghai.myqcloud.com/${path}` - } - ); - // code.replace( - // /@\/?([^\s"'()]+)/g, - // (match) => { - // count++ - // return 'https://guyu-1308826010.cos.ap-shanghai.myqcloud.com/' + match - // .replace(/^http:\/\/@\/?/, '') - // } - // ) - if (count > 0) { - console.log(id, `本次替换了 ${count} 个图片地址`) - } - // console.log(id, fcode) - return { - code: replacedCode, - map: null - } - } - }, - }, - // 自动导入 Vue 相关 API(如 ref, reactive) - AutoImport({ - imports: ['vue', - { - '@dcloudio/uni-app': [ - 'onLoad', // 页面加载时触发 - 'onShow', // 页面显示时触发 - 'onHide', // 页面隐藏时触发 - 'onUnload', // 页面卸载时触发 - ], - }, - { - '@/common/utils': [ - 'showToast', // 明确列出方法名(推荐) - 'sleep', - ], - } - // , - // { - // '@/common/yds': [ - // ['yds'], // 从 '@/common/index' 导入 yds 对象 - // ], - // } - ], - }), - // 自动导入组件 - Components({ - dirs: [ - // 'components/guyu-container', - // 'components/uni-nav-bar', - // 'components/uni-popup', - // 'components/uni-transition' - ], // 指定组件目录 - extensions: ['vue'], - dts: true, // 生成类型声明文件(可选) - // resolvers: [ - // (name) => { - // if (name === 'uni-popup') { // 匹配 kebab-case 名称 - // return { - // importName: 'uni-popup', // 组件文件实际导出的名称 - // path: '@/components/uni-popup/components/uni-popup/uni-popup.vue', // 文件路径 - // kebabCase: true - // } - // } - // } - // ] - }), - ] + if (/\.(vue|js|ts|css|scss|json)$/.test(id)) { + let count = 0 + const replacedCode = code.replace( + /@@:([^\s"'()<>]+?\.(png|jpe?g|gif|svg|webp))/g, + (match, path) => { + count++ + return `https://guyu-1308826010.cos.ap-shanghai.myqcloud.com/${path}` + } + ); + if (count > 0) { + console.log(id, `本次替换了 ${count} 个图片地址`) + } + // console.log(id) + return { + code: replacedCode, + map: null + } + } + }, + }, + // 自动导入 Vue 相关 API(如 ref, reactive) + AutoImport({ + imports: ['vue', + { + '@dcloudio/uni-app': [ + 'onLoad', // 页面加载时触发 + 'onShow', // 页面显示时触发 + 'onHide', // 页面隐藏时触发 + 'onUnload', // 页面卸载时触发 + ], + }, + { + '@/common/utils': [ + 'showToast', // 明确列出方法名(推荐) + 'sleep', + ], + }, + { + '@/common/gy': [ + ['gy'], // 从 '@/common/index' 导入 yds 对象 + ], + } + ], + }), + // 自动导入组件 + Components({ + dirs: [ + // 'components/guyu-container', + // 'components/uni-nav-bar', + // 'components/uni-popup', + // 'components/uni-transition' + ], // 指定组件目录 + extensions: ['vue'], + dts: true, // 生成类型声明文件(可选) + // resolvers: [ + // (name) => { + // if (name === 'uni-popup') { // 匹配 kebab-case 名称 + // return { + // importName: 'uni-popup', // 组件文件实际导出的名称 + // path: '@/components/uni-popup/components/uni-popup/uni-popup.vue', // 文件路径 + // kebabCase: true + // } + // } + // } + // ] + }), + ] }); \ No newline at end of file