Commit 6b100d2f authored by wujipeng's avatar wujipeng
Browse files

证书替换接口

parent fe486409
package com.ruzhoukj.sms.controller;
import com.ruzhoukj.sms.service.CertificateService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@RequestMapping("/certificate")
@RestController
public class CertificateController {
@Resource
private CertificateService certificateService;
@GetMapping("/replace")
public Boolean replace(@RequestParam("fileName") String fileName) {
return true;
}
}
\ No newline at end of file
package com.ruzhoukj.sms.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruzhoukj.sms.entity.CertificateEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface CertificateMapper extends BaseMapper<CertificateEntity> {
}
\ No newline at end of file
package com.ruzhoukj.sms.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@TableName("certificate")
public class CertificateEntity {
@TableId(type = IdType.AUTO)
private Integer id;
@TableField("file_name")
private String fileName;
@TableField("local_path")
private String localPath;
@TableField("linux_path")
private String linuxPath;
}
\ No newline at end of file
package com.ruzhoukj.sms.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruzhoukj.sms.entity.CertificateEntity;
/**
* @author : wujipeng
* @date : 2025/10/13 10:34
* @Version: 1.0
* @Desc : 描述信息
*/
public interface CertificateService extends IService<CertificateEntity> {
}
package com.ruzhoukj.sms.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruzhoukj.sms.dao.CertificateMapper;
import com.ruzhoukj.sms.entity.CertificateEntity;
import com.ruzhoukj.sms.service.CertificateService;
import org.springframework.stereotype.Service;
/**
* @author : wujipeng
* @date : 2025/10/13 10:34
* @Version: 1.0
* @Desc : 描述信息
*/
@Service
public class CertificateServiceImpl extends ServiceImpl<CertificateMapper, CertificateEntity> implements CertificateService {
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment