支付控制层,服务层,mapper层初始构建

master
zhang chengzhi 2024-07-30 21:27:00 +08:00
parent 9dfa9759c0
commit 5674377d38
9 changed files with 148 additions and 46 deletions

View File

@ -23,7 +23,6 @@
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-pay-common</artifactId>
<version>1.0.0</version>
</dependency>

View File

@ -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.*;
/**
* @Authorzhangchengzhi
* @Packagecom.muyu.cloud.pay.domain
* @Projectcloud-pay
* @nameOrderPayCustomer
* @Date2024/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;
}

View File

@ -22,7 +22,6 @@
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-pay-common</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>

View File

@ -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>

View File

@ -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;
/**
* @Authorzhangchengzhi
* @Packagecom.muyu.cloud.pay.controller
* @Projectcloud-pay
* @nameOrderPayCustomerController
* @Date2024/7/30 21:24
*/
@Log4j2
@RestController
@RequestMapping("/customer")
public class OrderPayCustomerController {
}

View File

@ -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;
/**
* @Authorzhangchengzhi
* @Packagecom.muyu.cloud.pay.controller
* @Projectcloud-pay
* @nameTestController
* @Date2024/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成功");
}
}

View File

@ -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;
/**
* @Authorzhangchengzhi
* @Packagecom.muyu.cloud.pay.mapper
* @Projectcloud-pay
* @nameOrderPayCustomerMapper
* @Date2024/7/30 20:29
*/
@Mapper
public interface OrderPayCustomerMapper extends BaseMapper<OrderPayCustomer> {
}

View File

@ -0,0 +1,14 @@
package com.muyu.cloud.pay.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.cloud.pay.domain.OrderPayCustomer;
/**
* @Authorzhangchengzhi
* @Packagecom.muyu.cloud.pay.service
* @Projectcloud-pay
* @nameOrderPayCustomerService
* @Date2024/7/30 20:52
*/
public interface OrderPayCustomerService extends IService<OrderPayCustomer> {
}

View File

@ -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;
/**
* @Authorzhangchengzhi
* @Packagecom.muyu.cloud.pay.service.impl
* @Projectcloud-pay
* @nameOrderPayCustomerServiceimpl
* @Date2024/7/30 20:54
*/
@Log4j2
@Service
public class OrderPayCustomerServiceImpl extends ServiceImpl<OrderPayCustomerMapper, OrderPayCustomer> implements OrderPayCustomerService {
}