|
|
@@ -591,6 +591,83 @@ export interface NotifyOrderInfoRequest {
|
|
|
*/
|
|
|
refundTime?: string;
|
|
|
}
|
|
|
+export interface CouponInfoAppVo {
|
|
|
+ /**
|
|
|
+ * id
|
|
|
+ */
|
|
|
+ id?: string;
|
|
|
+ /**
|
|
|
+ * 活动id
|
|
|
+ */
|
|
|
+ activityId?: string;
|
|
|
+ /**
|
|
|
+ * 活动名称
|
|
|
+ */
|
|
|
+ activityName?: string;
|
|
|
+ /**
|
|
|
+ * 优惠类型 1.满减、2.立减
|
|
|
+ */
|
|
|
+ promotionType?: number;
|
|
|
+ /**
|
|
|
+ * 门槛(单位(分)) 满减时的需要达到什么金额
|
|
|
+ */
|
|
|
+ amountMoney?: number;
|
|
|
+ /**
|
|
|
+ * 面额(单位(分)) 优惠的金额
|
|
|
+ */
|
|
|
+ discountMoney?: number;
|
|
|
+ /**
|
|
|
+ * 库存
|
|
|
+ */
|
|
|
+ inventoryTotal?: number;
|
|
|
+ /**
|
|
|
+ * 实际库存
|
|
|
+ */
|
|
|
+ inventoryActual?: number;
|
|
|
+ /**
|
|
|
+ * 含税采购价(元)
|
|
|
+ */
|
|
|
+ purchasePrice?: number;
|
|
|
+ /**
|
|
|
+ * 优惠券开始时间
|
|
|
+ */
|
|
|
+ couponStartTime?: string;
|
|
|
+ /**
|
|
|
+ * 优惠券结束时间
|
|
|
+ */
|
|
|
+ couponEndTime?: string;
|
|
|
+ /**
|
|
|
+ * 有效期,领取后多少天内有效(单位天)
|
|
|
+ */
|
|
|
+ expirationDate?: number;
|
|
|
+ /**
|
|
|
+ * 创建时间
|
|
|
+ */
|
|
|
+ createTime?: string;
|
|
|
+ /**
|
|
|
+ * 更新时间
|
|
|
+ */
|
|
|
+ updateTime?: string;
|
|
|
+ /**
|
|
|
+ * 标识是否有领取数
|
|
|
+ */
|
|
|
+ receiveSign?: boolean;
|
|
|
+ /**
|
|
|
+ * 过期时间
|
|
|
+ */
|
|
|
+ expirationTime?: string;
|
|
|
+}
|
|
|
+export interface ResultListCouponInfoAppVo {
|
|
|
+ /**
|
|
|
+ * 返回状态码
|
|
|
+ */
|
|
|
+ code?: string;
|
|
|
+ /**
|
|
|
+ * 返回数据对象
|
|
|
+ */
|
|
|
+ data?: CouponInfoAppVo[];
|
|
|
+ msg?: string;
|
|
|
+}
|
|
|
export interface CaptchaResult {
|
|
|
/**
|
|
|
* 验证码唯一标识(用于从Redis获取验证码Code)
|
|
|
@@ -830,72 +907,6 @@ export interface ResultAppCouponDetailsVO {
|
|
|
data?: AppCouponDetailsVO;
|
|
|
msg?: string;
|
|
|
}
|
|
|
-export interface CouponInfoAppVo {
|
|
|
- /**
|
|
|
- * id
|
|
|
- */
|
|
|
- id?: string;
|
|
|
- /**
|
|
|
- * 活动id
|
|
|
- */
|
|
|
- activityId?: string;
|
|
|
- /**
|
|
|
- * 活动名称
|
|
|
- */
|
|
|
- activityName?: string;
|
|
|
- /**
|
|
|
- * 优惠类型 1.满减、2.立减
|
|
|
- */
|
|
|
- promotionType?: number;
|
|
|
- /**
|
|
|
- * 门槛(单位(分)) 满减时的需要达到什么金额
|
|
|
- */
|
|
|
- amountMoney?: number;
|
|
|
- /**
|
|
|
- * 面额(单位(分)) 优惠的金额
|
|
|
- */
|
|
|
- discountMoney?: number;
|
|
|
- /**
|
|
|
- * 库存
|
|
|
- */
|
|
|
- inventoryTotal?: number;
|
|
|
- /**
|
|
|
- * 实际库存
|
|
|
- */
|
|
|
- inventoryActual?: number;
|
|
|
- /**
|
|
|
- * 含税采购价(元)
|
|
|
- */
|
|
|
- purchasePrice?: number;
|
|
|
- /**
|
|
|
- * 优惠券开始时间
|
|
|
- */
|
|
|
- couponStartTime?: string;
|
|
|
- /**
|
|
|
- * 优惠券结束时间
|
|
|
- */
|
|
|
- couponEndTime?: string;
|
|
|
- /**
|
|
|
- * 有效期,领取后多少天内有效(单位天)
|
|
|
- */
|
|
|
- expirationDate?: number;
|
|
|
- /**
|
|
|
- * 创建时间
|
|
|
- */
|
|
|
- createTime?: string;
|
|
|
- /**
|
|
|
- * 更新时间
|
|
|
- */
|
|
|
- updateTime?: string;
|
|
|
- /**
|
|
|
- * 标识是否有领取数
|
|
|
- */
|
|
|
- receiveSign?: boolean;
|
|
|
- /**
|
|
|
- * 过期时间
|
|
|
- */
|
|
|
- expirationTime?: string;
|
|
|
-}
|
|
|
export interface DataCouponInfoAppVo {
|
|
|
list?: CouponInfoAppVo[];
|
|
|
total?: number;
|
|
|
@@ -2329,6 +2340,336 @@ declare global {
|
|
|
>(
|
|
|
config: Config
|
|
|
): Alova2Method<ResultCouponExchangePointsVo, 'app.get_smqjh_system_app_api_coupon_exchangepoints', Config>;
|
|
|
+ /**
|
|
|
+ * ---
|
|
|
+ *
|
|
|
+ * [GET] 优惠券活动列表查询
|
|
|
+ *
|
|
|
+ * **path:** /app-api/coupon/page
|
|
|
+ *
|
|
|
+ * ---
|
|
|
+ *
|
|
|
+ * **Query Parameters**
|
|
|
+ * ```ts
|
|
|
+ * type QueryParameters = {
|
|
|
+ * // 页码
|
|
|
+ * pageNum?: number
|
|
|
+ * // 每页记录数
|
|
|
+ * pageSize?: number
|
|
|
+ * }
|
|
|
+ * ```
|
|
|
+ *
|
|
|
+ * ---
|
|
|
+ *
|
|
|
+ * **Response**
|
|
|
+ * ```ts
|
|
|
+ * type Response = {
|
|
|
+ * // 返回状态码
|
|
|
+ * code?: string
|
|
|
+ * data?: {
|
|
|
+ * // [items] start
|
|
|
+ * // [items] end
|
|
|
+ * list?: Array<{
|
|
|
+ * // id
|
|
|
+ * id?: string
|
|
|
+ * // 活动id
|
|
|
+ * activityId?: string
|
|
|
+ * // 活动名称
|
|
|
+ * activityName?: string
|
|
|
+ * // 优惠类型 1.满减、2.立减
|
|
|
+ * promotionType?: number
|
|
|
+ * // 门槛(单位(分)) 满减时的需要达到什么金额
|
|
|
+ * amountMoney?: number
|
|
|
+ * // 面额(单位(分)) 优惠的金额
|
|
|
+ * discountMoney?: number
|
|
|
+ * // 库存
|
|
|
+ * inventoryTotal?: number
|
|
|
+ * // 实际库存
|
|
|
+ * inventoryActual?: number
|
|
|
+ * // 含税采购价(元)
|
|
|
+ * purchasePrice?: number
|
|
|
+ * // 优惠券开始时间
|
|
|
+ * couponStartTime?: string
|
|
|
+ * // 优惠券结束时间
|
|
|
+ * couponEndTime?: string
|
|
|
+ * // 有效期,领取后多少天内有效(单位天)
|
|
|
+ * expirationDate?: number
|
|
|
+ * // 创建时间
|
|
|
+ * createTime?: string
|
|
|
+ * // 更新时间
|
|
|
+ * updateTime?: string
|
|
|
+ * // 标识是否有领取数
|
|
|
+ * receiveSign?: boolean
|
|
|
+ * // 过期时间
|
|
|
+ * expirationTime?: string
|
|
|
+ * }>
|
|
|
+ * total?: number
|
|
|
+ * }
|
|
|
+ * // 返回处理消息
|
|
|
+ * msg?: string
|
|
|
+ * }
|
|
|
+ * ```
|
|
|
+ */
|
|
|
+ get_app_api_coupon_page<
|
|
|
+ Config extends Alova2MethodConfig<PageResultCouponInfoAppVo> & {
|
|
|
+ params: {
|
|
|
+ /**
|
|
|
+ * 页码
|
|
|
+ */
|
|
|
+ pageNum?: number;
|
|
|
+ /**
|
|
|
+ * 每页记录数
|
|
|
+ */
|
|
|
+ pageSize?: number;
|
|
|
+ };
|
|
|
+ }
|
|
|
+ >(
|
|
|
+ config: Config
|
|
|
+ ): Alova2Method<PageResultCouponInfoAppVo, 'app.get_app_api_coupon_page', Config>;
|
|
|
+ /**
|
|
|
+ * ---
|
|
|
+ *
|
|
|
+ * [GET] 查询优惠券详情信息
|
|
|
+ *
|
|
|
+ * **path:** /app-api/coupon/findById
|
|
|
+ *
|
|
|
+ * ---
|
|
|
+ *
|
|
|
+ * **Query Parameters**
|
|
|
+ * ```ts
|
|
|
+ * type QueryParameters = {
|
|
|
+ * couponId: string
|
|
|
+ * }
|
|
|
+ * ```
|
|
|
+ *
|
|
|
+ * ---
|
|
|
+ *
|
|
|
+ * **Response**
|
|
|
+ * ```ts
|
|
|
+ * type Response = {
|
|
|
+ * // 返回状态码
|
|
|
+ * code?: string
|
|
|
+ * data?: {
|
|
|
+ * // id
|
|
|
+ * id?: string
|
|
|
+ * // 活动id
|
|
|
+ * activityId?: string
|
|
|
+ * // 活动名称
|
|
|
+ * activityName?: string
|
|
|
+ * // 优惠类型 1.满减、2.立减
|
|
|
+ * promotionType?: number
|
|
|
+ * // 门槛(单位(分)) 满减时的需要达到什么金额
|
|
|
+ * amountMoney?: number
|
|
|
+ * // 面额(单位(分)) 优惠的金额
|
|
|
+ * discountMoney?: number
|
|
|
+ * // 库存
|
|
|
+ * inventoryTotal?: number
|
|
|
+ * // 实际库存
|
|
|
+ * inventoryActual?: number
|
|
|
+ * // 含税采购价(元)
|
|
|
+ * purchasePrice?: number
|
|
|
+ * // 优惠券开始时间
|
|
|
+ * couponStartTime?: string
|
|
|
+ * // 优惠券结束时间
|
|
|
+ * couponEndTime?: string
|
|
|
+ * // 有效期,领取后多少天内有效(单位天)
|
|
|
+ * expirationDate?: number
|
|
|
+ * // 创建时间
|
|
|
+ * createTime?: string
|
|
|
+ * // 更新时间
|
|
|
+ * updateTime?: string
|
|
|
+ * // 标识是否有领取数
|
|
|
+ * receiveSign?: boolean
|
|
|
+ * // 过期时间
|
|
|
+ * expirationTime?: string
|
|
|
+ * }
|
|
|
+ * msg?: string
|
|
|
+ * }
|
|
|
+ * ```
|
|
|
+ */
|
|
|
+ get_app_api_coupon_findbyid<
|
|
|
+ Config extends Alova2MethodConfig<ResultCouponInfoAppVo> & {
|
|
|
+ params: {
|
|
|
+ couponId: string;
|
|
|
+ };
|
|
|
+ }
|
|
|
+ >(
|
|
|
+ config: Config
|
|
|
+ ): Alova2Method<ResultCouponInfoAppVo, 'app.get_app_api_coupon_findbyid', Config>;
|
|
|
+ /**
|
|
|
+ * ---
|
|
|
+ *
|
|
|
+ * [GET] 兑换明细
|
|
|
+ *
|
|
|
+ * **path:** /app-api/coupon/exchangeInfo
|
|
|
+ *
|
|
|
+ * ---
|
|
|
+ *
|
|
|
+ * **Query Parameters**
|
|
|
+ * ```ts
|
|
|
+ * type QueryParameters = {
|
|
|
+ * couponId: string
|
|
|
+ * }
|
|
|
+ * ```
|
|
|
+ *
|
|
|
+ * ---
|
|
|
+ *
|
|
|
+ * **Response**
|
|
|
+ * ```ts
|
|
|
+ * type Response = {
|
|
|
+ * // 返回状态码
|
|
|
+ * code?: string
|
|
|
+ * data?: {
|
|
|
+ * // id
|
|
|
+ * id?: string
|
|
|
+ * // 活动id
|
|
|
+ * activityId?: string
|
|
|
+ * // 活动名称
|
|
|
+ * activityName?: string
|
|
|
+ * // 优惠类型 1.满减、2.立减
|
|
|
+ * promotionType?: number
|
|
|
+ * // 门槛(单位(分)) 满减时的需要达到什么金额
|
|
|
+ * amountMoney?: number
|
|
|
+ * // 面额(单位(分)) 优惠的金额
|
|
|
+ * discountMoney?: number
|
|
|
+ * // 积分金额
|
|
|
+ * pointsMoney?: number
|
|
|
+ * // 总库存
|
|
|
+ * inventoryTotal?: number
|
|
|
+ * // 实际库存
|
|
|
+ * inventoryActual?: number
|
|
|
+ * // 优惠券开始时间
|
|
|
+ * couponStartTime?: string
|
|
|
+ * // 优惠券结束时间
|
|
|
+ * couponEndTime?: string
|
|
|
+ * // 有效期,领取后多少天内有效(单位天)
|
|
|
+ * expirationDate?: number
|
|
|
+ * }
|
|
|
+ * msg?: string
|
|
|
+ * }
|
|
|
+ * ```
|
|
|
+ */
|
|
|
+ get_app_api_coupon_exchangeinfo<
|
|
|
+ Config extends Alova2MethodConfig<ResultCouponExchangeVo> & {
|
|
|
+ params: {
|
|
|
+ couponId: string;
|
|
|
+ };
|
|
|
+ }
|
|
|
+ >(
|
|
|
+ config: Config
|
|
|
+ ): Alova2Method<ResultCouponExchangeVo, 'app.get_app_api_coupon_exchangeinfo', Config>;
|
|
|
+ /**
|
|
|
+ * ---
|
|
|
+ *
|
|
|
+ * [GET] 使用积分进行兑换
|
|
|
+ *
|
|
|
+ * **path:** /app-api/coupon/exchangePoints
|
|
|
+ *
|
|
|
+ * ---
|
|
|
+ *
|
|
|
+ * **Query Parameters**
|
|
|
+ * ```ts
|
|
|
+ * type QueryParameters = {
|
|
|
+ * couponId: string
|
|
|
+ * }
|
|
|
+ * ```
|
|
|
+ *
|
|
|
+ * ---
|
|
|
+ *
|
|
|
+ * **Response**
|
|
|
+ * ```ts
|
|
|
+ * type Response = {
|
|
|
+ * // 返回状态码
|
|
|
+ * code?: string
|
|
|
+ * data?: {
|
|
|
+ * // 抵扣券id
|
|
|
+ * id?: string
|
|
|
+ * // 活动id
|
|
|
+ * activityId?: string
|
|
|
+ * // 活动名称
|
|
|
+ * activityName?: string
|
|
|
+ * // 门槛(单位(分)) 满减时的需要达到什么金额
|
|
|
+ * amountMoney?: number
|
|
|
+ * // 面额(单位(分)) 优惠的金额
|
|
|
+ * discountMoney?: number
|
|
|
+ * // 第三方的津贴/券id
|
|
|
+ * allowanceId?: string
|
|
|
+ * // 批次id
|
|
|
+ * batchId?: string
|
|
|
+ * // 有效期,领取后多少天内有效(单位天)
|
|
|
+ * expirationDate?: number
|
|
|
+ * }
|
|
|
+ * msg?: string
|
|
|
+ * }
|
|
|
+ * ```
|
|
|
+ */
|
|
|
+ get_app_api_coupon_exchangepoints<
|
|
|
+ Config extends Alova2MethodConfig<ResultCouponExchangePointsVo> & {
|
|
|
+ params: {
|
|
|
+ couponId: string;
|
|
|
+ };
|
|
|
+ }
|
|
|
+ >(
|
|
|
+ config: Config
|
|
|
+ ): Alova2Method<ResultCouponExchangePointsVo, 'app.get_app_api_coupon_exchangepoints', Config>;
|
|
|
+ /**
|
|
|
+ * ---
|
|
|
+ *
|
|
|
+ * [GET] 优惠券活动列表查询
|
|
|
+ *
|
|
|
+ * **path:** /smqjh-system/app-api/coupon/findList
|
|
|
+ *
|
|
|
+ * ---
|
|
|
+ *
|
|
|
+ * **Response**
|
|
|
+ * ```ts
|
|
|
+ * type Response = {
|
|
|
+ * // 返回状态码
|
|
|
+ * code?: string
|
|
|
+ * // 返回数据对象
|
|
|
+ * // [items] start
|
|
|
+ * // [items] end
|
|
|
+ * data?: Array<{
|
|
|
+ * // id
|
|
|
+ * id?: string
|
|
|
+ * // 活动id
|
|
|
+ * activityId?: string
|
|
|
+ * // 活动名称
|
|
|
+ * activityName?: string
|
|
|
+ * // 优惠类型 1.满减、2.立减
|
|
|
+ * promotionType?: number
|
|
|
+ * // 门槛(单位(分)) 满减时的需要达到什么金额
|
|
|
+ * amountMoney?: number
|
|
|
+ * // 面额(单位(分)) 优惠的金额
|
|
|
+ * discountMoney?: number
|
|
|
+ * // 库存
|
|
|
+ * inventoryTotal?: number
|
|
|
+ * // 实际库存
|
|
|
+ * inventoryActual?: number
|
|
|
+ * // 含税采购价(元)
|
|
|
+ * purchasePrice?: number
|
|
|
+ * // 优惠券开始时间
|
|
|
+ * couponStartTime?: string
|
|
|
+ * // 优惠券结束时间
|
|
|
+ * couponEndTime?: string
|
|
|
+ * // 有效期,领取后多少天内有效(单位天)
|
|
|
+ * expirationDate?: number
|
|
|
+ * // 创建时间
|
|
|
+ * createTime?: string
|
|
|
+ * // 更新时间
|
|
|
+ * updateTime?: string
|
|
|
+ * // 标识是否有领取数
|
|
|
+ * receiveSign?: boolean
|
|
|
+ * // 过期时间
|
|
|
+ * expirationTime?: string
|
|
|
+ * }>
|
|
|
+ * msg?: string
|
|
|
+ * }
|
|
|
+ * ```
|
|
|
+ */
|
|
|
+ get_smqjh_system_app_api_coupon_findlist<Config extends Alova2MethodConfig<ResultListCouponInfoAppVo>>(
|
|
|
+ config?: Config
|
|
|
+ ): Alova2Method<ResultListCouponInfoAppVo, 'app.get_smqjh_system_app_api_coupon_findlist', Config>;
|
|
|
};
|
|
|
general: {
|
|
|
/**
|