创建实体类

master
陈思豪 2024-07-31 21:11:13 +08:00
parent 729d8d9548
commit e97158962c
9 changed files with 135 additions and 31 deletions

View File

@ -12,16 +12,20 @@
<artifactId>cloud-pay-common</artifactId> <artifactId>cloud-pay-common</artifactId>
<version>1.0.0</version> <version>1.0.0</version>
<dependencies>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-core</artifactId>
</dependency>
</dependencies>
<properties> <properties>
<maven.compiler.source>17</maven.compiler.source> <maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<dependencies>
<dependency>
<groupId>com.muyu</groupId>
<artifactId>cloud-common-core</artifactId>
</dependency>
</dependencies>
</project> </project>

View File

@ -1,7 +0,0 @@
package com.muyu;
public class Main {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}

View File

@ -0,0 +1,46 @@
package com.muyu.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.*;
import lombok.experimental.SuperBuilder;
@SuperBuilder
@Data
@AllArgsConstructor
@NoArgsConstructor
@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

@ -0,0 +1,37 @@
package com.muyu.domain.req;
//import io.swagger.v3.oas.annotations.media.Schema;
//import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@Data
//@Tag(name = "客户列表")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CustomerListReq {
/**
* /
*/
// @Schema(name = "服务/客户名称",type = "String" , description = "客户的名称")
private String appName;
/**
* /
*/
private String appCode;
/**
*
*/
private Integer status;
}

View File

@ -0,0 +1,11 @@
package com.muyu.pay.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/customer")
public class OrderPayCustomerController {
}

View File

@ -1,18 +0,0 @@
package com.muyu.pay.controller;
import com.muyu.common.core.domain.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/nb")
public class PayController {
@GetMapping("/ooo")
public Result<String> Text1(){
return Result.success("aaaa");
}
}

View File

@ -0,0 +1,9 @@
package com.muyu.pay.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.muyu.domain.OrderPayCustomer;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface OrderPayCustomerMapper extends BaseMapper<OrderPayCustomer> {
}

View File

@ -0,0 +1,7 @@
package com.muyu.pay.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.muyu.domain.OrderPayCustomer;
public interface OrderPayCustomerService extends IService<OrderPayCustomer> {
}

View File

@ -0,0 +1,15 @@
package com.muyu.pay.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.muyu.domain.OrderPayCustomer;
import com.muyu.pay.controller.OrderPayCustomerController;
import com.muyu.pay.mapper.OrderPayCustomerMapper;
import com.muyu.pay.service.OrderPayCustomerService;
import org.springframework.stereotype.Service;
@Service
public class OrderPayCustomerServiceImpl extends ServiceImpl<OrderPayCustomerMapper ,OrderPayCustomer>
implements OrderPayCustomerService {
}