mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-01-02 17:16:36 +08:00
[系统用户]实现系统用户的增删改
This commit is contained in:
@@ -13,6 +13,9 @@ type DeleteAction struct {
|
||||
func (this *DeleteAction) RunPost(params struct {
|
||||
LogId int64
|
||||
}) {
|
||||
// 记录日志
|
||||
defer this.CreateLogInfo("删除单个操作日志 %d", params.LogId)
|
||||
|
||||
// 读取配置
|
||||
config, err := configloaders.LoadLogConfig()
|
||||
if err != nil {
|
||||
@@ -23,9 +26,6 @@ func (this *DeleteAction) RunPost(params struct {
|
||||
this.Fail("已设置不能删除")
|
||||
}
|
||||
|
||||
// 记录日志
|
||||
defer this.CreateLogInfo("删除单个操作日志 %d", params.LogId)
|
||||
|
||||
// 执行删除
|
||||
_, err = this.RPC().LogRPC().DeleteLogPermanently(this.AdminContext(), &pb.DeleteLogPermanentlyRequest{LogId: params.LogId})
|
||||
if err != nil {
|
||||
|
||||
@@ -38,6 +38,8 @@ func (this *SettingsAction) RunPost(params struct {
|
||||
Must *actions.Must
|
||||
CSRF *actionutils.CSRF
|
||||
}) {
|
||||
defer this.CreateLogInfo("修改日志相关配置")
|
||||
|
||||
capacity := &shared.SizeCapacity{}
|
||||
err := json.Unmarshal(params.CapacityJSON, capacity)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user