🐛 学习通列表
This commit is contained in:
@@ -29,7 +29,7 @@ type CourseServiceV1 struct {
|
||||
func (s CourseServiceV1) List(ctx context.Context, req *v1.CourseListReq) *utils.Response[[]*ent.CourseEntity] {
|
||||
user := utils.GetUserInfoFromCtx(ctx)
|
||||
query := db2.Global.CourseEntity.Query().
|
||||
Where(courseentity.HasSysUserWith(sysuser.ID(user.ID))).
|
||||
Where(courseentity.HasSysUserWith(sysuser.ID(user.ID)), courseentity.TypeEQ(courseentity.TypeXxt)).
|
||||
Order(ent.Desc(courseentity.FieldCreateTime))
|
||||
|
||||
if req.Type != "" {
|
||||
|
||||
Reference in New Issue
Block a user