支付控制层,服务层,mapper层初始构建
parent
9dfa9759c0
commit
5674377d38
|
@ -23,7 +23,6 @@
|
|||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-pay-common</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,66 @@
|
|||
package com.muyu.cloud.pay.domain;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.muyu.common.core.web.domain.BaseEntity;
|
||||
import lombok.*;
|
||||
|
||||
/**
|
||||
* @Author:zhangchengzhi
|
||||
* @Package:com.muyu.cloud.pay.domain
|
||||
* @Project:cloud-pay
|
||||
* @name:OrderPayCustomer
|
||||
* @Date:2024/7/30 20:09
|
||||
*/
|
||||
|
||||
@Data
|
||||
//@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName(value = "order_pay_customer",autoResultMap = true)
|
||||
public class OrderPayCustomer extends BaseEntity {
|
||||
|
||||
/**
|
||||
*主键
|
||||
*/
|
||||
@TableId(value = "id" , type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 服务/客户名称
|
||||
*/
|
||||
private String appName;
|
||||
|
||||
/**
|
||||
* 服务/客户编码
|
||||
*/
|
||||
private String appCode;
|
||||
|
||||
/**
|
||||
* 客户描述
|
||||
*/
|
||||
private String appDesc;
|
||||
|
||||
/**
|
||||
* 是否开启
|
||||
*/
|
||||
|
||||
private Integer status;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -22,7 +22,6 @@
|
|||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-pay-common</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
|
|
@ -82,9 +82,12 @@
|
|||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-common-rabbit</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.muyu</groupId>
|
||||
<artifactId>cloud-pay-common</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
package com.muyu.cloud.pay.controller;
|
||||
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Author:zhangchengzhi
|
||||
* @Package:com.muyu.cloud.pay.controller
|
||||
* @Project:cloud-pay
|
||||
* @name:OrderPayCustomerController
|
||||
* @Date:2024/7/30 21:24
|
||||
*/
|
||||
@Log4j2
|
||||
@RestController
|
||||
@RequestMapping("/customer")
|
||||
public class OrderPayCustomerController {
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
package com.muyu.cloud.pay.controller;
|
||||
|
||||
import com.muyu.common.core.domain.Result;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @Author:zhangchengzhi
|
||||
* @Package:com.muyu.cloud.pay.controller
|
||||
* @Project:cloud-pay
|
||||
* @name:TestController
|
||||
* @Date:2024/7/29 17:09
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/test")
|
||||
public class TestController {
|
||||
|
||||
|
||||
|
||||
@PostMapping
|
||||
public Result<String> post(){
|
||||
|
||||
|
||||
|
||||
return Result.success("测试Post成功");
|
||||
}
|
||||
@GetMapping
|
||||
public Result<String> get(){
|
||||
|
||||
return Result.success("测试Get成功");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
package com.muyu.cloud.pay.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.muyu.cloud.pay.domain.OrderPayCustomer;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @Author:zhangchengzhi
|
||||
* @Package:com.muyu.cloud.pay.mapper
|
||||
* @Project:cloud-pay
|
||||
* @name:OrderPayCustomerMapper
|
||||
* @Date:2024/7/30 20:29
|
||||
*/
|
||||
@Mapper
|
||||
public interface OrderPayCustomerMapper extends BaseMapper<OrderPayCustomer> {
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package com.muyu.cloud.pay.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.muyu.cloud.pay.domain.OrderPayCustomer;
|
||||
|
||||
/**
|
||||
* @Author:zhangchengzhi
|
||||
* @Package:com.muyu.cloud.pay.service
|
||||
* @Project:cloud-pay
|
||||
* @name:OrderPayCustomerService
|
||||
* @Date:2024/7/30 20:52
|
||||
*/
|
||||
public interface OrderPayCustomerService extends IService<OrderPayCustomer> {
|
||||
}
|
|
@ -0,0 +1,30 @@
|
|||
package com.muyu.cloud.pay.service.impl;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.muyu.cloud.pay.domain.OrderPayCustomer;
|
||||
import com.muyu.cloud.pay.mapper.OrderPayCustomerMapper;
|
||||
import com.muyu.cloud.pay.service.OrderPayCustomerService;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @Author:zhangchengzhi
|
||||
* @Package:com.muyu.cloud.pay.service.impl
|
||||
* @Project:cloud-pay
|
||||
* @name:OrderPayCustomerServiceimpl
|
||||
* @Date:2024/7/30 20:54
|
||||
*/
|
||||
@Log4j2
|
||||
@Service
|
||||
public class OrderPayCustomerServiceImpl extends ServiceImpl<OrderPayCustomerMapper, OrderPayCustomer> implements OrderPayCustomerService {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue