Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
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
黄奎
Education
Commits
e943afc0
Commit
e943afc0
authored
Apr 15, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a455126a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
78 deletions
+83
-78
NoticeModule.cs
Edu.Module.User/NoticeModule.cs
+53
-72
UserCenterController.cs
Edu.WebApi/Controllers/User/UserCenterController.cs
+30
-6
No files found.
Edu.Module.User/NoticeModule.cs
View file @
e943afc0
This diff is collapsed.
Click to expand it.
Edu.WebApi/Controllers/User/UserCenterController.cs
View file @
e943afc0
...
@@ -10,6 +10,7 @@ using Edu.Common.API;
...
@@ -10,6 +10,7 @@ using Edu.Common.API;
using
Edu.Common.Enum.User
;
using
Edu.Common.Enum.User
;
using
Edu.Common.Plugin
;
using
Edu.Common.Plugin
;
using
Edu.Model.CacheModel
;
using
Edu.Model.CacheModel
;
using
Edu.Model.Public
;
using
Edu.Model.ViewModel.User
;
using
Edu.Model.ViewModel.User
;
using
Edu.Module.User
;
using
Edu.Module.User
;
using
Edu.WebApi.Filter
;
using
Edu.WebApi.Filter
;
...
@@ -107,7 +108,14 @@ namespace Edu.WebApi.Controllers.User
...
@@ -107,7 +108,14 @@ namespace Edu.WebApi.Controllers.User
[
HttpPost
]
[
HttpPost
]
public
ApiResult
SetNoticeBaseInfo
()
public
ApiResult
SetNoticeBaseInfo
()
{
{
var
demodel
=
JsonHelper
.
DeserializeObject
<
RB_Notice_Base_ViewModel
>(
RequestParm
.
Msg
.
ToString
());
var
demodel
=
new
RB_Notice_Base_ViewModel
()
{
Id
=
base
.
ParmJObj
.
GetInt
(
"Id"
),
Image
=
base
.
ParmJObj
.
GetStringValue
(
"Image"
),
From
=
base
.
ParmJObj
.
GetStringValue
(
"From"
),
NumberRule
=
(
NoticeRuleEnum
)
base
.
ParmJObj
.
GetInt
(
"NumberRule"
),
CopyPeople
=
base
.
ParmJObj
.
GetStringValue
(
"CopyPeople"
),
};
demodel
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
demodel
.
Group_Id
=
base
.
UserInfo
.
Group_Id
;
demodel
.
School_Id
=
base
.
UserInfo
.
School_Id
;
demodel
.
School_Id
=
base
.
UserInfo
.
School_Id
;
demodel
.
CreateBy
=
base
.
UserInfo
.
Id
;
demodel
.
CreateBy
=
base
.
UserInfo
.
Id
;
...
@@ -196,7 +204,26 @@ namespace Edu.WebApi.Controllers.User
...
@@ -196,7 +204,26 @@ namespace Edu.WebApi.Controllers.User
public
ApiResult
SetNoticeInfo
()
public
ApiResult
SetNoticeInfo
()
{
{
UserInfo
userInfo
=
base
.
UserInfo
;
UserInfo
userInfo
=
base
.
UserInfo
;
RB_Notice_ViewModel
demodel
=
JsonHelper
.
DeserializeObject
<
RB_Notice_ViewModel
>(
RequestParm
.
Msg
.
ToString
());
RB_Notice_ViewModel
demodel
=
new
RB_Notice_ViewModel
()
{
Id
=
base
.
ParmJObj
.
GetInt
(
"Id"
),
Content
=
base
.
ParmJObj
.
GetStringValue
(
"Content"
),
CopyPeople
=
base
.
ParmJObj
.
GetStringValue
(
"CopyPeople"
),
From
=
base
.
ParmJObj
.
GetStringValue
(
"From"
),
Is_Top
=
base
.
ParmJObj
.
GetInt
(
"Is_Top"
),
NoticeState
=(
NoticeStateEnum
)
base
.
ParmJObj
.
GetInt
(
"NoticeState"
),
Title
=
base
.
ParmJObj
.
GetStringValue
(
"Title"
),
To
=
base
.
ParmJObj
.
GetStringValue
(
"To"
)
};
try
{
demodel
.
FileList
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
List
<
FileModel
>>(
base
.
ParmJObj
.
GetStringValue
(
"FileList"
));
}
catch
(
Exception
ex
)
{
}
if
(
string
.
IsNullOrEmpty
(
demodel
.
From
))
if
(
string
.
IsNullOrEmpty
(
demodel
.
From
))
{
{
return
ApiResult
.
ParamIsNull
(
"请传递来源"
);
return
ApiResult
.
ParamIsNull
(
"请传递来源"
);
...
@@ -205,10 +232,7 @@ namespace Edu.WebApi.Controllers.User
...
@@ -205,10 +232,7 @@ namespace Edu.WebApi.Controllers.User
{
{
return
ApiResult
.
ParamIsNull
(
"请传递发送部门"
);
return
ApiResult
.
ParamIsNull
(
"请传递发送部门"
);
}
}
if
(
string
.
IsNullOrEmpty
(
demodel
.
CopyPeople
))
{
return
ApiResult
.
ParamIsNull
(
"请选择抄送人"
);
}
if
(
string
.
IsNullOrEmpty
(
demodel
.
Title
))
if
(
string
.
IsNullOrEmpty
(
demodel
.
Title
))
{
{
return
ApiResult
.
ParamIsNull
(
"请输入标题"
);
return
ApiResult
.
ParamIsNull
(
"请输入标题"
);
...
...
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