diff --git a/pom.xml b/pom.xml
index 7f3882c..911b12b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -208,10 +208,10 @@
+ * 前端控制器 + *
+ * + * @author DengMin + * @since 2022-02-18 + */ +@RestController +@Api(tags = "微信") +@RequestMapping("/wechat") +public class AccessTokenController { + + @Autowired + private RestTemplateConfig restTemplateConfig; + + @Autowired + private WechatConfig wechatConfig; + + @Autowired + private AccessTokenMapper accessTokenMapper; + + @PostMapping("/getJsapiTicket") + @ApiOperation("通过token请求获得jsapi_ticket {url}") + public ResponseVO getJsapiTicket(@RequestBody SignVO signVO) { + + List+ * Mapper 接口 + *
+ * + * @author DengMin + * @since 2022-02-18 + */ + @Repository +public interface AccessTokenMapper extends BaseMapper+ * + *
+ * + * @author DengMin + * @since 2022-02-18 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@TableName("access_token") +public class AccessTokenDO extends BaseModel { + + private static final long serialVersionUID = 1L; + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + private String accessToken; + + +} diff --git a/src/main/java/com/subsidy/model/ClassDictDO.java b/src/main/java/com/subsidy/model/ClassDictDO.java index 75f9fd3..1f82aa6 100644 --- a/src/main/java/com/subsidy/model/ClassDictDO.java +++ b/src/main/java/com/subsidy/model/ClassDictDO.java @@ -73,5 +73,10 @@ public class ClassDictDO extends BaseModel { */ private String openStatus; + /** + * 测试规则 + */ + private Integer testRule; + } diff --git a/src/main/java/com/subsidy/model/ClassNoticeDO.java b/src/main/java/com/subsidy/model/ClassNoticeDO.java index abd5943..8f48268 100644 --- a/src/main/java/com/subsidy/model/ClassNoticeDO.java +++ b/src/main/java/com/subsidy/model/ClassNoticeDO.java @@ -37,11 +37,6 @@ public class ClassNoticeDO extends BaseModel { private String noticeType; /** - * 是否自动通知 - */ - private Integer isAuto; - - /** * 通知时间 */ private String noticeTime; diff --git a/src/main/java/com/subsidy/model/CourseDictDO.java b/src/main/java/com/subsidy/model/CourseDictDO.java index 0cf012d..7bdecd5 100644 --- a/src/main/java/com/subsidy/model/CourseDictDO.java +++ b/src/main/java/com/subsidy/model/CourseDictDO.java @@ -39,19 +39,19 @@ public class CourseDictDO extends BaseModel { private String courseName; /** - * 类目id - */ - private Long categoryId; - - /** * 课程类型 */ private String courseType; /** - * 课程来源 + * 课程封面 */ - private String courseSource; + private String coverPage; + + /** + * 课程开放状态 + */ + private Integer openStatus; } diff --git a/src/main/java/com/subsidy/model/CourseFieldMappingDO.java b/src/main/java/com/subsidy/model/CourseFieldMappingDO.java index c05f6b9..bed9f02 100644 --- a/src/main/java/com/subsidy/model/CourseFieldMappingDO.java +++ b/src/main/java/com/subsidy/model/CourseFieldMappingDO.java @@ -27,7 +27,7 @@ public class CourseFieldMappingDO extends BaseModel { private Long courseId; - private Long fieldMapping; + private Long fieldId; } diff --git a/src/main/java/com/subsidy/model/MemberDO.java b/src/main/java/com/subsidy/model/MemberDO.java index 68de3a7..9640093 100644 --- a/src/main/java/com/subsidy/model/MemberDO.java +++ b/src/main/java/com/subsidy/model/MemberDO.java @@ -36,6 +36,11 @@ public class MemberDO extends BaseModel { private String accountName; /** + * 英文名 + */ + private String accountNameEn; + + /** * 姓名 */ private String userName; diff --git a/src/main/java/com/subsidy/mongodb/MongoController.java b/src/main/java/com/subsidy/mongodb/MongoController.java index 74fb71e..ff92950 100644 --- a/src/main/java/com/subsidy/mongodb/MongoController.java +++ b/src/main/java/com/subsidy/mongodb/MongoController.java @@ -1,68 +1,68 @@ -package com.subsidy.mongodb; - -import com.subsidy.util.MongoUtil; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.mongodb.core.MongoTemplate; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -@RestController -@RequestMapping("/mango") -public class MongoController { - - - @Autowired - private MongoTemplate mongoTemplate; - - @Autowired - private MongoUtil mongoUtil; - - @PostMapping("getOne") - public void getAll(){ - ////Query query=new Query(); - ////MongoDO user = mongoTemplate.getDb(query , MongoDO.class); - ////List+ * 服务类 + *
+ * + * @author DengMin + * @since 2022-02-18 + */ +public interface AccessTokenService extends IService
* 视频表 服务类
@@ -19,11 +22,13 @@ public interface VodDictService extends IService
+ * 服务实现类
+ *
@@ -59,6 +66,9 @@ public class ClassDictServiceImpl extends ServiceImpl
@@ -60,14 +62,17 @@ public class SignInRecordServiceImpl extends ServiceImpl