接口加入商户应用ID ,商户应用私钥信息;

This commit is contained in:
terrfly 2021-06-15 17:47:22 +08:00
parent 43587c2c13
commit bc3a2fa5cd
4 changed files with 11 additions and 1 deletions

View File

@ -160,6 +160,7 @@ CREATE TABLE `t_mch_app` (
`app_name` varchar(64) NOT NULL DEFAULT '' COMMENT '应用名称', `app_name` varchar(64) NOT NULL DEFAULT '' COMMENT '应用名称',
`mch_no` VARCHAR(64) NOT NULL COMMENT '商户号', `mch_no` VARCHAR(64) NOT NULL COMMENT '商户号',
`state` TINYINT(6) NOT NULL DEFAULT 1 COMMENT '应用状态: 0-停用, 1-正常', `state` TINYINT(6) NOT NULL DEFAULT 1 COMMENT '应用状态: 0-停用, 1-正常',
`app_secret` VARCHAR(128) NOT NULL COMMENT '应用私钥',
`remark` varchar(128) DEFAULT NULL COMMENT '备注', `remark` varchar(128) DEFAULT NULL COMMENT '备注',
`created_uid` BIGINT(20) COMMENT '创建者用户ID', `created_uid` BIGINT(20) COMMENT '创建者用户ID',
`created_by` VARCHAR(64) COMMENT '创建者姓名', `created_by` VARCHAR(64) COMMENT '创建者姓名',

View File

@ -53,6 +53,11 @@ public class MchApp extends BaseModel {
*/ */
private Byte state; private Byte state;
/**
* 应用私钥
*/
private String appSecret;
/** /**
* 备注 * 备注
*/ */
@ -78,5 +83,4 @@ public class MchApp extends BaseModel {
*/ */
private Date updatedAt; private Date updatedAt;
} }

View File

@ -42,6 +42,10 @@ public class UnifiedOrderRQ extends AbstractRQ {
@NotBlank(message="商户号不能为空") @NotBlank(message="商户号不能为空")
private String mchNo; private String mchNo;
/** 商户应用ID **/
@NotBlank(message="商户应用ID不能为空")
private String appId;
/** 商户订单号 **/ /** 商户订单号 **/
@NotBlank(message="商户订单号不能为空") @NotBlank(message="商户订单号不能为空")
private String mchOrderNo; private String mchOrderNo;

View File

@ -8,6 +8,7 @@
<result column="app_name" property="appName" /> <result column="app_name" property="appName" />
<result column="mch_no" property="mchNo" /> <result column="mch_no" property="mchNo" />
<result column="state" property="state" /> <result column="state" property="state" />
<result column="app_secret" property="appSecret" />
<result column="remark" property="remark" /> <result column="remark" property="remark" />
<result column="created_uid" property="createdUid" /> <result column="created_uid" property="createdUid" />
<result column="created_by" property="createdBy" /> <result column="created_by" property="createdBy" />