Browse Source

feat: 添加erpid

double.huang 4 years ago
parent
commit
bca7f434d1
4 changed files with 4 additions and 0 deletions
  1. 1 0
      i2bill.api
  2. 1 0
      internal/types/types.go
  3. 1 0
      model/user.sql
  4. 1 0
      model/usermodel.go

+ 1 - 0
i2bill.api

@@ -49,6 +49,7 @@ type authLoginBody {
 type AuthUserInfo {
 	ID       int64  `json:"id"`
 	Mobile   string `json:"mobile"`
+	ErpRoles string `json:"erpRoles"`
 	UserName string `json:"username"`
 	NickName string `json:"nickname"`
 	Gender   int64  `json:"gender"`

+ 1 - 0
internal/types/types.go

@@ -42,6 +42,7 @@ type AuthLoginBody struct {
 type AuthUserInfo struct {
 	ID       int64  `json:"id"`
 	Mobile   string `json:"mobile"`
+	ErpRoles string `json:"erpRoles"`
 	UserName string `json:"username"`
 	NickName string `json:"nickname"`
 	Gender   int64  `json:"gender"`

+ 1 - 0
model/user.sql

@@ -1,6 +1,7 @@
 DROP TABLE IF EXISTS `user`;
 CREATE TABLE `user` (
   `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
+  `erp_id` int(11) unsigned NOT NULL DEFAULT '0',
   `username` varchar(60) NOT NULL DEFAULT '',
   `password` varchar(32) NOT NULL DEFAULT '',
   `gender` tinyint(1) unsigned NOT NULL DEFAULT '0',

+ 1 - 0
model/usermodel.go

@@ -55,6 +55,7 @@ type (
 		LastLoginTime int64  `db:"last_login_time"`
 		Nickname      string `db:"nickname"`
 		Id            int64  `db:"id"`
+		ErpId         int64  `db:"erp_id"`
 		Username      string `db:"username"`
 		Gender        int64  `db:"gender"`
 		UserLevelId   int64  `db:"user_level_id"`