Initial commit: backend code

This commit is contained in:
Agent
2026-03-20 04:59:00 +00:00
commit e7c7f3b174
42 changed files with 2855 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
package com.example.building.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.building.entity.Category;
import org.apache.ibatis.annotations.Mapper;
/**
* 分类Mapper接口
*/
@Mapper
public interface CategoryMapper extends BaseMapper<Category> {
}

View File

@@ -0,0 +1,12 @@
package com.example.building.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.building.entity.Customer;
import org.apache.ibatis.annotations.Mapper;
/**
* 客户Mapper接口
*/
@Mapper
public interface CustomerMapper extends BaseMapper<Customer> {
}

View File

@@ -0,0 +1,12 @@
package com.example.building.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.building.entity.OrderItem;
import org.apache.ibatis.annotations.Mapper;
/**
* 订单明细Mapper接口
*/
@Mapper
public interface OrderItemMapper extends BaseMapper<OrderItem> {
}

View File

@@ -0,0 +1,12 @@
package com.example.building.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.building.entity.Order;
import org.apache.ibatis.annotations.Mapper;
/**
* 订单Mapper接口
*/
@Mapper
public interface OrderMapper extends BaseMapper<Order> {
}

View File

@@ -0,0 +1,12 @@
package com.example.building.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.building.entity.Product;
import org.apache.ibatis.annotations.Mapper;
/**
* 商品Mapper接口
*/
@Mapper
public interface ProductMapper extends BaseMapper<Product> {
}

View File

@@ -0,0 +1,12 @@
package com.example.building.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.building.entity.StockFlow;
import org.apache.ibatis.annotations.Mapper;
/**
* 库存流水Mapper接口
*/
@Mapper
public interface StockFlowMapper extends BaseMapper<StockFlow> {
}

View File

@@ -0,0 +1,12 @@
package com.example.building.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.building.entity.Stock;
import org.apache.ibatis.annotations.Mapper;
/**
* 库存Mapper接口
*/
@Mapper
public interface StockMapper extends BaseMapper<Stock> {
}

View File

@@ -0,0 +1,12 @@
package com.example.building.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.building.entity.User;
import org.apache.ibatis.annotations.Mapper;
/**
* 用户Mapper接口
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {
}