Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
ts-api-demo
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wmvm
ts-api-demo
Commits
76dbeac4
Commit
76dbeac4
authored
Oct 18, 2024
by
ml
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加字段
parent
d3c8001b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
coinType.service.ts
src/functional/mvc/service/coinType.service.ts
+5
-0
No files found.
src/functional/mvc/service/coinType.service.ts
View file @
76dbeac4
...
...
@@ -67,6 +67,8 @@ export interface AddParam {
describe_url
?:
string
;
weight
?:
number
;
forbid_info
?:
string
;
describe_summary
?:
string
;
...
...
@@ -126,6 +128,9 @@ export async function list(param: ListParam) {
}
export
const
save
=
async
(
param
:
AddParam
,
currentUserId
:
any
,
ip
:
any
)
=>
{
if
(
!
param
.
weight
)
{
param
.
weight
=
0
;
}
param
.
updatedAt
=
new
Date
();
param
.
createdAt
=
new
Date
();
await
coinType
.
prototype
.
create
(
param
);
...
...
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