|
|
@@ -7,6 +7,7 @@ import com.etotem.cfc.entity.GuideApplication;
|
|
|
import com.etotem.cfc.entity.GuideApplicationRecord;
|
|
|
import com.etotem.cfc.entity.GuideInviteCode;
|
|
|
import com.etotem.cfc.entity.GuidePackage;
|
|
|
+import com.etotem.cfc.entity.GuidePackageTemplate;
|
|
|
import com.etotem.cfc.entity.GuideHierarchy;
|
|
|
import com.etotem.cfc.entity.PackageOrder;
|
|
|
import com.etotem.cfc.entity.User;
|
|
|
@@ -15,6 +16,7 @@ import com.etotem.cfc.service.GuideApplicationService;
|
|
|
import com.etotem.cfc.service.GuideHierarchyService;
|
|
|
import com.etotem.cfc.service.GuideInviteCodeService;
|
|
|
import com.etotem.cfc.service.GuidePackageService;
|
|
|
+import com.etotem.cfc.service.GuidePackageTemplateService;
|
|
|
import com.etotem.cfc.service.UserService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
@@ -44,6 +46,9 @@ public class GuideManagementController {
|
|
|
@Resource
|
|
|
private GuidePackageService guidePackageService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private GuidePackageTemplateService guidePackageTemplateService;
|
|
|
+
|
|
|
@Resource
|
|
|
private UserMapper userMapper;
|
|
|
|
|
|
@@ -266,6 +271,12 @@ public class GuideManagementController {
|
|
|
return Result.success(parentGuide);
|
|
|
}
|
|
|
|
|
|
+ @Operation(summary = "获取套餐模板列表")
|
|
|
+ @PostMapping("/package/templates")
|
|
|
+ public Result<List<GuidePackageTemplate>> getGuidePackageTemplates() {
|
|
|
+ return Result.success(guidePackageTemplateService.list());
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 添加成长规划师任务模板
|
|
|
*/
|