<file_sep>app.name=${weixin.app.name}
app.author=${weixin.app.author}
slow.method.time=${weixin.slow.method.time}
cache.open=${weixin.cache.open}
redis.prefix=${weixin.redis.prefix}
<file_sep>package com.kangyonggan.app.weixin.mapper;

import com.kangyonggan.app.weixin.model.vo.Book;
import org.springframework.stereotype.Repository;

@Repository
public interface BookMapper extends MyMapper<Book> {
}<file_sep>app.name=${weixin.app.name}
app.author=${weixin.app.author}
app.ba.no=${weixin.app.ba.no}
app.button.save=提交
app.button.cancel=取消
app.button.close=关闭

<file_sep>DROP DATABASE IF EXISTS weixin;

CREATE DATABASE weixin
  DEFAULT CHARACTER SET utf8
  COLLATE utf8_general_ci;

USE weixin;

-- ----------------------------
--  Table structure for book
-- ----------------------------
DROP TABLE
IF EXISTS book;

CREATE TABLE book
(
  id                BIGINT(20) PRIMARY KEY AUTO_INCREMENT NOT NULL
  COMMENT '主键, 自增',
  name              VARCHAR(64)                           NOT NULL
  COMMENT '书名',
  author            VARCHAR(32)                           NOT NULL
  COMMENT '作者',
  intro             VARCHAR(512)                          NOT NULL
  COMMENT '简介',
  picture           VARCHAR(256)                          NOT NULL                    DEFAULT ''
  COMMENT '首图',
  url               INTEGER                               NOT NULL
  COMMENT '地址',
  new_chapter_url   INTEGER                               NOT NULL                    DEFAULT 0
  COMMENT '最新章节URL',
  new_chapter_title VARCHAR(128)                          NOT NULL                    DEFAULT ''
  COMMENT '最新章节名称',
  type              VARCHAR(32)                           NOT NULL                    DEFAULT ''
  COMMENT '类型',
  is_finished       TINYINT                               NOT NULL                    DEFAULT 0
  COMMENT '是否完结:{0:未完结, 1:已完结}',
  is_deleted        TINYINT                               NOT NULL                    DEFAULT 0
  COMMENT '逻辑删除:{0:未删除, 1:已删除}',
  created_time      TIMESTAMP                             NOT NULL                    DEFAULT CURRENT_TIMESTAMP
  COMMENT '创建时间',
  updated_time      TIMESTAMP                             NOT NULL                    DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
  COMMENT '更新时间'
)
  COMMENT '书籍表';
CREATE UNIQUE INDEX id_UNIQUE
  ON book (id);
CREATE UNIQUE INDEX url_UNIQUE
  ON book (url);
CREATE INDEX author_ix
  ON book (author);
<file_sep>app.name=${weixin.app.name.en}
app.author=${weixin.app.author.en}
app.ba.no=${weixin.app.ba.no}
app.button.save=Submit
app.button.cancel=Cancel
app.button.close=Close

