package cn.ysk.cashier.controller.member;

import cn.ysk.cashier.mybatis.service.MemberService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @author tankaikai
 * @since 2024-10-24 16:13
 */
@RestController
@RequestMapping("/api/member")
@Api(tags="会员管理")
public class MemberController {

    @Resource
    private MemberService memberService;

    @PostMapping
    @ApiOperation("保存")
    public ResponseEntity save(@RequestBody Map<String, Object> map) {
        memberService.createMember(map);
        return ResponseEntity.ok().build();
    }
}
