Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
邬吉朋
ops
Commits
6b100d2f
Commit
6b100d2f
authored
Oct 13, 2025
by
wujipeng
Browse files
证书替换接口
parent
fe486409
Changes
5
Show whitespace changes
Inline
Side-by-side
src/main/java/com/ruzhoukj/sms/controller/CertificateController.java
0 → 100644
View file @
6b100d2f
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
src/main/java/com/ruzhoukj/sms/dao/CertificateMapper.java
0 → 100644
View file @
6b100d2f
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
src/main/java/com/ruzhoukj/sms/entity/CertificateEntity.java
0 → 100644
View file @
6b100d2f
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
src/main/java/com/ruzhoukj/sms/service/CertificateService.java
0 → 100644
View file @
6b100d2f
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
>
{
}
src/main/java/com/ruzhoukj/sms/service/impl/CertificateServiceImpl.java
0 → 100644
View file @
6b100d2f
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment