Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
7535ff74
Commit
7535ff74
authored
Jul 20, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
354f88c9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
center-manage/app/base/controller/impl/common/attachmentCtl.js
+9
-0
center-manage/app/base/db/models/common/attachment.js
+17
-0
center-manage/app/base/service/impl/auth/userSve.js
+3
-0
No files found.
center-manage/app/base/controller/impl/common/attachmentCtl.js
0 → 100644
View file @
7535ff74
var
system
=
require
(
"../../../system"
)
const
CtlBase
=
require
(
"../../ctl.base"
);
class
AttachmentCtl
extends
CtlBase
{
constructor
()
{
super
(
"common"
,
CtlBase
.
getServiceName
(
AttachmentCtl
));
}
}
module
.
exports
=
AttachmentCtl
;
center-manage/app/base/db/models/common/attachment.js
0 → 100644
View file @
7535ff74
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"attachment"
,
{
name
:
DataTypes
.
STRING
,
urlstr
:
DataTypes
.
STRING
,
description
:
DataTypes
.
STRING
,
},{
paranoid
:
true
,
//假的删除
underscored
:
true
,
version
:
true
,
freezeTableName
:
true
,
//freezeTableName: true,
// define the table's name
tableName
:
'p_attachments'
,
validate
:
{
}
});
}
center-manage/app/base/service/impl/auth/userSve.js
View file @
7535ff74
...
...
@@ -70,6 +70,9 @@ class UserService extends ServiceBase {
if
(
!
p
.
nickName
)
{
p
.
nickName
=
p
.
userName
;
}
//检查是否已经存在同名账号
return
this
.
db
.
transaction
(
async
function
(
t
)
{
//对于租户类型注册,创建一个默认公司,公司名称xxxx的公司
//如果非租户类型,需要按照传递进来的公司companykey,来查询公司,按照companykey缓存到redis
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment