Skip to content

Commit

Permalink
只有站点拥有者才能修改时间
Browse files Browse the repository at this point in the history
  • Loading branch information
TreasureJade committed Dec 21, 2019
1 parent 938a82f commit 812a2aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.swpu.uchain.blog.controller;

import com.swpu.uchain.blog.accessctro.RoleContro;
import com.swpu.uchain.blog.accessctro.RoleControl;
import com.swpu.uchain.blog.enums.RoleEnum;
import com.swpu.uchain.blog.service.VisitorService;
import com.swpu.uchain.blog.util.ResultVOUtil;
Expand Down Expand Up @@ -29,7 +29,7 @@ public Object getMsg() {
return visitorService.getIndexMsg();
}

@RoleContro(role = RoleEnum.ADMIN)
@RoleControl(role = RoleEnum.ADMIN)
@ApiOperation("/更新底部网站更新时间")
@PostMapping("/updateTime")
public Object updateTime(String date) {
Expand Down

0 comments on commit 812a2aa

Please sign in to comment.