mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-09-14 04:31:38 +08:00
后端:用户登录、退出登录、获取用户状态相关功能完成;引入SessionManager;数据库:user_identity改为group;前端:添加登录页面、后台管理页面框架,axios POST请求Content-Type问题修复,引入md5、sha1 js库;小问题调整
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<result column="username" jdbcType="VARCHAR" property="username" />
|
||||
<result column="encript_pwd" jdbcType="VARCHAR" property="encriptPwd" />
|
||||
<result column="nickname" jdbcType="VARCHAR" property="nickname" />
|
||||
<result column="user_identity" jdbcType="VARCHAR" property="userIdentity" />
|
||||
<result column="group" jdbcType="VARCHAR" property="group" />
|
||||
<result column="avatar" jdbcType="VARCHAR" property="avatar" />
|
||||
<result column="phone" jdbcType="VARCHAR" property="phone" />
|
||||
<result column="weixin_third_party_auth_code" jdbcType="VARCHAR" property="weixinThirdPartyAuthCode" />
|
||||
@@ -21,7 +21,7 @@
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
id, username, encript_pwd, nickname, user_identity, avatar, phone, weixin_third_party_auth_code,
|
||||
id, username, encript_pwd, nickname, `group`, avatar, phone, weixin_third_party_auth_code,
|
||||
qq_third_party_auth_code
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
@@ -48,11 +48,11 @@
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
insert into user_info (id, username, encript_pwd,
|
||||
nickname, user_identity, avatar,
|
||||
nickname, `group`, avatar,
|
||||
phone, weixin_third_party_auth_code, qq_third_party_auth_code
|
||||
)
|
||||
values (#{id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{encriptPwd,jdbcType=VARCHAR},
|
||||
#{nickname,jdbcType=VARCHAR}, #{userIdentity,jdbcType=VARCHAR}, #{avatar,jdbcType=VARCHAR},
|
||||
#{nickname,jdbcType=VARCHAR}, #{group,jdbcType=VARCHAR}, #{avatar,jdbcType=VARCHAR},
|
||||
#{phone,jdbcType=VARCHAR}, #{weixinThirdPartyAuthCode,jdbcType=VARCHAR}, #{qqThirdPartyAuthCode,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
@@ -75,8 +75,8 @@
|
||||
<if test="nickname != null">
|
||||
nickname,
|
||||
</if>
|
||||
<if test="userIdentity != null">
|
||||
user_identity,
|
||||
<if test="group != null">
|
||||
`group`,
|
||||
</if>
|
||||
<if test="avatar != null">
|
||||
avatar,
|
||||
@@ -104,8 +104,8 @@
|
||||
<if test="nickname != null">
|
||||
#{nickname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userIdentity != null">
|
||||
#{userIdentity,jdbcType=VARCHAR},
|
||||
<if test="group != null">
|
||||
#{group,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="avatar != null">
|
||||
#{avatar,jdbcType=VARCHAR},
|
||||
@@ -137,8 +137,8 @@
|
||||
<if test="nickname != null">
|
||||
nickname = #{nickname,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userIdentity != null">
|
||||
user_identity = #{userIdentity,jdbcType=VARCHAR},
|
||||
<if test="group != null">
|
||||
`group` = #{group,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="avatar != null">
|
||||
avatar = #{avatar,jdbcType=VARCHAR},
|
||||
@@ -164,7 +164,7 @@
|
||||
set username = #{username,jdbcType=VARCHAR},
|
||||
encript_pwd = #{encriptPwd,jdbcType=VARCHAR},
|
||||
nickname = #{nickname,jdbcType=VARCHAR},
|
||||
user_identity = #{userIdentity,jdbcType=VARCHAR},
|
||||
`group` = #{group,jdbcType=VARCHAR},
|
||||
avatar = #{avatar,jdbcType=VARCHAR},
|
||||
phone = #{phone,jdbcType=VARCHAR},
|
||||
weixin_third_party_auth_code = #{weixinThirdPartyAuthCode,jdbcType=VARCHAR},
|
||||
|
Reference in New Issue
Block a user