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
4c4717af
Commit
4c4717af
authored
Aug 28, 2024
by
wujipeng
Browse files
查询相关的网址列表
parent
34c3c531
Changes
5
Show whitespace changes
Inline
Side-by-side
src/main/java/com/ruzhoukj/sms/controller/WebsiteAddressController.java
0 → 100644
View file @
4c4717af
package
com.ruzhoukj.sms.controller
;
import
com.ruzhoukj.sms.common.Result
;
import
com.ruzhoukj.sms.service.WebsiteAddressService
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
/**
* @author wujipeng
* @version 1.0
* @create 2024-08-28 17:45
*/
@RestController
@RequestMapping
(
"/websiteAddress"
)
public
class
WebsiteAddressController
{
@Resource
private
WebsiteAddressService
websiteAddressService
;
@ApiOperation
(
"查询网站地址"
)
@GetMapping
(
"/list"
)
public
Result
getWebsiteAddress
()
{
return
Result
.
success
(
websiteAddressService
.
list
());
}
}
src/main/java/com/ruzhoukj/sms/dao/WebsiteAddressDao.java
0 → 100644
View file @
4c4717af
package
com.ruzhoukj.sms.dao
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.ruzhoukj.sms.entity.WebsiteAddressEntity
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* @author wujipeng
* @version 1.0
* @create 2024-08-28 17:28
*/
@Mapper
public
interface
WebsiteAddressDao
extends
BaseMapper
<
WebsiteAddressEntity
>
{
}
src/main/java/com/ruzhoukj/sms/entity/WebsiteAddressEntity.java
0 → 100644
View file @
4c4717af
package
com.ruzhoukj.sms.entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
/**
* @author wujipeng
* @version 1.0
* @create 2024-08-28 17:26
*/
@Data
@TableName
(
value
=
"website_address"
)
public
class
WebsiteAddressEntity
{
@TableId
(
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
String
name
;
private
String
url
;
private
String
picture
;
}
src/main/java/com/ruzhoukj/sms/service/WebsiteAddressService.java
0 → 100644
View file @
4c4717af
package
com.ruzhoukj.sms.service
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.ruzhoukj.sms.entity.WebsiteAddressEntity
;
/**
* @author wujipeng
* @version 1.0
* @create 2024-08-28 17:44
*/
public
interface
WebsiteAddressService
extends
IService
<
WebsiteAddressEntity
>
{
}
src/main/java/com/ruzhoukj/sms/service/impl/WebsiteAddressServiceImpl.java
0 → 100644
View file @
4c4717af
package
com.ruzhoukj.sms.service.impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.ruzhoukj.sms.dao.WebsiteAddressDao
;
import
com.ruzhoukj.sms.entity.WebsiteAddressEntity
;
import
com.ruzhoukj.sms.service.WebsiteAddressService
;
import
org.springframework.stereotype.Service
;
/**
* @author wujipeng
* @version 1.0
* @create 2024-08-28 17:45
*/
@Service
public
class
WebsiteAddressServiceImpl
extends
ServiceImpl
<
WebsiteAddressDao
,
WebsiteAddressEntity
>
implements
WebsiteAddressService
{
}
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