parent
d7d013decf
commit
2351154139
@ -1,16 +0,0 @@
|
||||
package com.zh.test_zabbix.auto;
|
||||
|
||||
import com.zh.test_zabbix.model.MediaType;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务类
|
||||
* </p>
|
||||
*
|
||||
* @author zh
|
||||
* @since 2023-11-24
|
||||
*/
|
||||
public interface IMediaTypeService extends IService<MediaType> {
|
||||
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
package com.zh.test_zabbix.auto;
|
||||
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 前端控制器
|
||||
* </p>
|
||||
*
|
||||
* @author zh
|
||||
* @since 2023-11-24
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/media-type")
|
||||
public class MediaTypeController {
|
||||
|
||||
}
|
@ -1,19 +0,0 @@
|
||||
package com.zh.test_zabbix.auto;
|
||||
|
||||
import com.zh.test_zabbix.mapper.MediaTypeMapper;
|
||||
import com.zh.test_zabbix.model.MediaType;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 服务实现类
|
||||
* </p>
|
||||
*
|
||||
* @author zh
|
||||
* @since 2023-11-24
|
||||
*/
|
||||
@Service
|
||||
public class MediaTypeServiceImpl extends ServiceImpl<MediaTypeMapper, MediaType> implements IMediaTypeService {
|
||||
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
package com.zh.test_zabbix.controller;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.zh.test_zabbix.utils.ZabbixApi;
|
||||
import lombok.Data;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/user")
|
||||
public class Login_ {
|
||||
|
||||
@Data
|
||||
static class argLogin{
|
||||
String username;
|
||||
String password;
|
||||
}
|
||||
|
||||
@RequestMapping("/login")
|
||||
public JSONObject login(@RequestBody argLogin arg){
|
||||
JSONObject params = new JSONObject();
|
||||
params.put("username",arg.getUsername());
|
||||
params.put("password",arg.getPassword());
|
||||
JSONObject result = ZabbixApi.login(params);
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue