1234567891011121314151617181920212223 |
- package service
- import (
- "context"
- "jylua-api/internal/dao"
- "jylua-api/internal/model"
- )
- type luaApi struct {
- }
- var (
- JyLuaGoApi *luaApi
- )
- // GetAllApi 获取所有api接口
- func (a *luaApi) GetAllApi(ctx context.Context) []*model.JyapiApi {
- var res []*model.JyapiApi
- if err := dao.JyapiApi.Ctx(ctx).Where("status=1").Scan(&res); err != nil {
- return nil
- }
- return res
- }
|