#
luxiaotao1123
2024-11-09 20aa51767d2bcc0baf30e1eee5ccce05ace9a6fe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.zy.acs.manager.fake;
 
import com.zy.acs.manager.system.service.ConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
/**
 * Created by vincent on 11/9/2024
 */
@Service
public class FakeService {
 
    @Autowired
    private ConfigService configService;
 
    public boolean fakeStartup() {
        return configService.setVal("fakeSign", Boolean.TRUE);
    }
 
    public boolean fakeShutdown() {
        return configService.setVal("fakeSign", Boolean.FALSE);
    }
 
 
}