apps添加私钥
This commit is contained in:
1 parent
051f78b59c
commit
35c7bcc8aa
10 files changed
+152
-79
No files matched your search
@@ -16,6 +16,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="trxBalance" column="trx_balance" />
|
||||
<result property="usdtBalance" column="usdt_balance" />
|
||||
<result property="publicKey" column="public_key" />
|
||||
<result property="privateKey" column="private_key" />
|
||||
<result property="creditLimit" column="credit_limit" />
|
||||
<result property="googleSub" column="google_sub" />
|
||||
<result property="googleEmail" column="google_email" />
|
||||
@@ -25,7 +26,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectAppsVo">
|
||||
select id, user_id, name, description, status, created_at, updated_at, deleted_at, trx_balance, usdt_balance, public_key, credit_limit, google_sub, google_email, google_name, google_picture, dist_token_address from apps
|
||||
select id, user_id, name, description, status, created_at, updated_at, deleted_at, trx_balance, usdt_balance, public_key, private_key, credit_limit, google_sub, google_email, google_name, google_picture, dist_token_address from apps
|
||||
</sql>
|
||||
|
||||
<select id="lockUserById" resultType="Long">
|
||||
@@ -64,9 +65,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
where id = #{id} and deleted_at is null
|
||||
</select>
|
||||
|
||||
<update id="updatePublicKey">
|
||||
<update id="updateKeyPair">
|
||||
update apps
|
||||
set public_key = #{publicKey}, updated_at = #{updatedAt}
|
||||
set public_key = #{publicKey}, private_key = #{privateKey}, updated_at = #{updatedAt}
|
||||
where id = #{id} and deleted_at is null
|
||||
</update>
|
||||
|
||||
@@ -93,6 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="trxBalance != null">trx_balance,</if>
|
||||
<if test="usdtBalance != null">usdt_balance,</if>
|
||||
<if test="publicKey != null">public_key,</if>
|
||||
<if test="privateKey != null">private_key,</if>
|
||||
<if test="creditLimit != null">credit_limit,</if>
|
||||
<if test="googleSub != null">google_sub,</if>
|
||||
<if test="googleEmail != null">google_email,</if>
|
||||
@@ -111,6 +113,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="trxBalance != null">#{trxBalance},</if>
|
||||
<if test="usdtBalance != null">#{usdtBalance},</if>
|
||||
<if test="publicKey != null">#{publicKey},</if>
|
||||
<if test="privateKey != null">#{privateKey},</if>
|
||||
<if test="creditLimit != null">#{creditLimit},</if>
|
||||
<if test="googleSub != null">#{googleSub},</if>
|
||||
<if test="googleEmail != null">#{googleEmail},</if>
|
||||
@@ -133,6 +136,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="trxBalance != null">trx_balance = #{trxBalance},</if>
|
||||
<if test="usdtBalance != null">usdt_balance = #{usdtBalance},</if>
|
||||
<if test="publicKey != null">public_key = #{publicKey},</if>
|
||||
<if test="privateKey != null">private_key = #{privateKey},</if>
|
||||
<if test="creditLimit != null">credit_limit = #{creditLimit},</if>
|
||||
<if test="googleSub != null">google_sub = #{googleSub},</if>
|
||||
<if test="googleEmail != null">google_email = #{googleEmail},</if>
|
||||
|
||||
Reference in new issue
Block a user